summaryrefslogtreecommitdiff
path: root/docs/migrate_to_mysql.md
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2021-03-16 17:04:54 +0100
committerJules Laplace <julescarbon@gmail.com>2021-03-16 17:04:54 +0100
commit901beb4df2c074ba54fedc91dd6e780cebe093d1 (patch)
tree4c628137716c7025726ada9642e3241172f6699f /docs/migrate_to_mysql.md
parent1cfe96ca6ef5c54eadd986c951dade0f56d72440 (diff)
migrate to mysql
Diffstat (limited to 'docs/migrate_to_mysql.md')
-rw-r--r--docs/migrate_to_mysql.md18
1 files changed, 17 insertions, 1 deletions
diff --git a/docs/migrate_to_mysql.md b/docs/migrate_to_mysql.md
index 45fe7de..f414a1e 100644
--- a/docs/migrate_to_mysql.md
+++ b/docs/migrate_to_mysql.md
@@ -1 +1,17 @@
-migrate_to_mysql.md
+# Migrate to MySQL
+
+1. Create a MySQL user and database
+
+```
+CREATE USER 'swimmer'@'localhost' IDENTIFIED BY 'swimmer';
+CREATE DATABASE swimmer;
+GRANT ALL PRIVILEGES ON swimmer.* TO 'swimmer'@'localhost';
+```
+
+2. Set up the `.env` which should disable SQLite.
+
+3. Run `./cli.py db upgrade head`
+
+4. Run `./cli.py admin migrate_to_mysql`
+
+5. Restart the server.