From 3411914680b85a5189c9b50d0d281ed4fbbce6bf Mon Sep 17 00:00:00 2001 From: Matchu Date: Tue, 11 Aug 2020 22:07:56 -0700 Subject: [PATCH] add a convenient `yarn mysql-admin` just for me MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I use this as an easy shortcut to log into the prod database, with credentials that have more permissions than the app currently does 😅 --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 6de9eea..bb081f5 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,8 @@ "test": "react-app-rewired test --env=jsdom", "eject": "react-scripts eject", "setup-mysql-user": "mysql -h impress.openneo.net -u matchu -p < setup-mysql-user.sql", - "mysql": "mysql --host=impress.openneo.net --user=$(dotenv -p IMPRESS_MYSQL_USER) --password=$(dotenv -p IMPRESS_MYSQL_PASSWORD) --database=openneo_impress" + "mysql": "mysql --host=impress.openneo.net --user=$(dotenv -p IMPRESS_MYSQL_USER) --password=$(dotenv -p IMPRESS_MYSQL_PASSWORD) --database=openneo_impress", + "mysql-admin": "mysql --host=impress.openneo.net --user=matchu --password --database=openneo_impress" }, "eslintConfig": { "extends": "react-app"