MySQL: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (added to Software category) |
||
Line 19: | Line 19: | ||
Try not to send passwords via plaintext email. |
Try not to send passwords via plaintext email. |
||
[[Category:Software]] |
Revision as of 21:32, 22 November 2009
Creating new MySQL databases
$ mysql -uroot -p Enter password: ****** mysql> CREATE DATABASE someusername; Query OK, 1 row affected (0.00 sec) mysql> GRANT ALL PRIVILEGES ON someusername.* to someusername@localhost IDENTIFIED BY 'longrandompassword'; Query OK, 0 rows affected (0.06 sec)
For random passwords run 'makepasswd --chars 20'. For the administrative password for the cluster see /users/sysadmin/passwords/mysql.
Write a file (usually ~club/mysql) to the club's homedir readable only by them containing the following:
Username: clubuserid Password: longrandompassword Hostname: localhost
Try not to send passwords via plaintext email.