-
Notifications
You must be signed in to change notification settings - Fork 0
Mysql
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. If you want to do so quickly, you can always try LAMP/XAMP on Linux and MAMP on Mac OS X, 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.
For more info (demo server, exercise repository, contributing to cloudcoder, etc): cloudcoder.org
