diff --git a/README.md b/README.md index 2435237..f0fd67e 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ dependencies to install correctly. See the instructions for ### Create your development database Next, create two MySQL databases: `openneo_impress` and `openneo_id`. Then, -create a MySQL user named `impress_2020_dev` with password `impress_2020_dev`, +create a MySQL user named `impress_dev` with password `impress_dev`, with full permissions for both databases. (We're assuming that, on your local machine, your MySQL server isn't connected diff --git a/package.json b/package.json index cd031c9..fe7c918 100644 --- a/package.json +++ b/package.json @@ -71,7 +71,7 @@ "deploy": "ansible-playbook -i deploy/inventory.cfg deploy/playbooks/deploy.yml", "deploy-skip-build": "ansible-playbook -i deploy/inventory.cfg deploy/playbooks/deploy.yml --extra-vars='{\"skip_build\": true}'", "mysql": "mysql --host=$(dotenv -p IMPRESS_MYSQL_HOST) --user=$(dotenv -p IMPRESS_MYSQL_USER) --password=$(dotenv -p IMPRESS_MYSQL_PASSWORD) --database=openneo_impress", - "mysql-dev": "mysql --host=localhost --user=impress_2020_dev --password=impress_2020_dev --database=openneo_impress", + "mysql-dev": "mysql --host=localhost --user=impress_dev --password=impress_dev --database=openneo_impress", "mysql-admin": "mysql --host=$(dotenv -p IMPRESS_MYSQL_HOST) --user=matchu --password --database=openneo_impress", "mysqldump": "mysqldump --host=$(dotenv -p IMPRESS_MYSQL_HOST) --user=$(dotenv -p IMPRESS_MYSQL_USER) --password=$(dotenv -p IMPRESS_MYSQL_PASSWORD)", "setup-mysql": "yarn mysql-admin < scripts/setup-mysql.sql", diff --git a/scripts/db/public-data-from-modeling.sql.gz b/scripts/db/public-data-from-modeling.sql.gz index 1cfd63f..4290231 100644 Binary files a/scripts/db/public-data-from-modeling.sql.gz and b/scripts/db/public-data-from-modeling.sql.gz differ diff --git a/src/server/db.js b/src/server/db.js index 5d3c8a4..fc2a795 100644 --- a/src/server/db.js +++ b/src/server/db.js @@ -13,8 +13,8 @@ const defaultOptions = process.env["DB_ENV"] === "development" ? { host: "localhost", - user: "impress_2020_dev", - password: "impress_2020_dev", + user: "impress_dev", + password: "impress_dev", database: "openneo_impress", } : {