Create a gist now

Instantly share code, notes, and snippets.

A quick how-to for setting up a MySQL server for Cheesy Parts

Install MySQL

sudo apt-get install mysql-server

It should ask you for a password - put in whatever (make sure that this goes in to your config/environment.rb file) Start MySQL

sudo service mysql restart

Login to MySQL

mysql -u root -p
Enter password:

Create the database

create database cheesy_parts;

Set user permissions properly on the database

grant usage on cheesy_parts.* to root@localhost;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment