From b48aec3565ceb7af9e83f2887f15c360d500294f Mon Sep 17 00:00:00 2001 From: Francois Marier <francois@mozilla.com> Date: Fri, 13 Jul 2012 17:44:53 +1200 Subject: [PATCH] More verbose instructions for the initial MySQL setup --- docs/TESTING.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/TESTING.md b/docs/TESTING.md index e052624a3..5f0c74624 100644 --- a/docs/TESTING.md +++ b/docs/TESTING.md @@ -35,6 +35,19 @@ create tables. You can then run the mysql suite with, e.g., NODE_ENV=test_mysql MYSQL_USER=browserid MYSQL_PASSWORD=browserid npm test ``` +#### Initial MySQL setup + +The following will create a database user with enough privileges: + + $ mysql -uroot -p + > CREATE USER 'browserid'@'localhost' IDENTIFIED BY 'browserid'; + > GRANT ALL ON *.* TO 'browserid'@'localhost'; + > FLUSH PRIVILEGES; + +If you need to reset the MySQL root password on a Debian system, you'll need to do something like: + + $ sudo dpkg-reconfigure -plow mysql-server-5.5 + ### Test Suites There are two test suites: -- GitLab