This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
mysql_management [2018/09/27 14:48] root |
mysql_management [2018/09/27 15:10] (current) root |
||
---|---|---|---|
Line 12: | Line 12: | ||
show databases; | show databases; | ||
create database DATABASENAME; | create database DATABASENAME; | ||
- | create user 'username' | + | create user 'USERNAME' |
- | grant all privileges on tzeng_song_project | + | grant all privileges on DATABASENAME |
</ | </ | ||
+ | |||
+ | To access the new database, the user would then use this command (from the head node): | ||
+ | |||
+ | < | ||
+ | mysql -p -h fs1 -u USERNAME DATABASENAME | ||
+ | </ | ||
+ |