Skip to content

Instantly share code, notes, and snippets.

@dannycoates
Last active December 27, 2015 03:08
Show Gist options
  • Save dannycoates/7256708 to your computer and use it in GitHub Desktop.
Save dannycoates/7256708 to your computer and use it in GitHub Desktop.
MySQL instructions for FXA testing

MySQL setup

Install MySQL

Mac

Installation is easy with homebrew. I use mariadb which is a fork of mysql but either should work.

brew install mariadb

Follow the homebrew instructions for starting the server. I usually just do

mysql.server start

Linux

Install MySQL and start it.

Execution

Our test suite assumes the database uses it's default configuration. See config/config.js for the override ENV variables. Now you should be able to run the test suite from the project root directory.

DB_BACKEND=mysql npm test

Or run the local server

DB_BACKEND=mysql npm start

Cleanup

You may want to clear the data from the database periodically. I just drop the database.

mysql -uroot -e"DROP DATABASE picl"
@ckarlof
Copy link

ckarlof commented Oct 31, 2013

these look sweet and work for me.

@ckarlof
Copy link

ckarlof commented Oct 31, 2013

some linux docs would be nice too, maybe @jbonacci can submit a PR for those :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment