This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
mysql_databases [2010/10/13 05:38] walter |
mysql_databases [2012/02/07 18:55] walter [Systems] |
||
---|---|---|---|
Line 2: | Line 2: | ||
Databases can be created on: | Databases can be created on: | ||
* The ACM server, acm.cs.uic.edu | * The ACM server, acm.cs.uic.edu | ||
- | * Sorbis, linux.cs.uic.edu | ||
+ | Databases can be accessed using: | ||
+ | * The mysql command on the command line in a remote or local shell | ||
+ | * Via [[https://acm.cs.uic.edu/phpmyadmin|PHPMyAdmin]] | ||
====== Creating a database ====== | ====== Creating a database ====== | ||
Line 15: | Line 17: | ||
databases are created like this: | databases are created like this: | ||
create database mydatabase; | create database mydatabase; | ||
- | GRANT ALL PRIVILEGES ON mydatabase.* to myuser IDENTIFIED BY 'mypassword' with GRANT OPTION; | + | GRANT ALL PRIVILEGES ON mydatabase.* to 'myuser'@'localhost' IDENTIFIED BY 'mypassword' with GRANT OPTION; |
most of the time myuser is the same as the database name. | most of the time myuser is the same as the database name. |