Mysql - cloudcoderdotorg/CloudCoder GitHub Wiki

Prev | Next

You need a MySQL server running on the machine where you plan to run CloudCoder server. There are many ways to install MySQL.

On Ubuntu Linux:

sudo apt-get install mysql-server mysql-client

On Mac OS X, you can install MAMP, which will install Apache, PhpMyAdmin, and MySQL.

Once you have MySQL running, you will need to create a MySQL user for the CloudCoder webapp to use. The username cloudcoder is a good choice. To create the user, run the command

mysql --user=root --pass \
--execute="create user 'cloudcoder'@'localhost' identified by 'somepassword'"

Enter the password for the MySQL root user when prompted. Replace somepassword with the password you want to use. (If you chose a different username, replace cloudcoder with that username.)

Next, grant the cloudcoder user account permission to create the database:

mysql --user=root --pass \
--execute="grant all on cloudcoderdb.* to 'cloudcoder'@'localhost'"

Again, replace cloudcoder and cloudcoderdb with the username and database name you chose previously.