Difference between revisions of "Dept. MySQL Server"
m (Convert external links to internal links) |
|||
Line 9: | Line 9: | ||
{{messagebox|'''Note 3:''' You cannot ''ssh'' into mysql.cs.jhu.edu. You must connect to the MySQL server using MySQL commands or a MySQL client program, using the MySQL account we would provide you.|warning}} | {{messagebox|'''Note 3:''' You cannot ''ssh'' into mysql.cs.jhu.edu. You must connect to the MySQL server using MySQL commands or a MySQL client program, using the MySQL account we would provide you.|warning}} | ||
− | {{messagebox|'''Note 4:''' When your MySQL account is created, you will receive a database whose name is the same as your MySQL account.|warning}} | + | {{messagebox|'''Note 4:''' When your MySQL account is created, you will receive a database whose name is ''the same as'' your MySQL account.|warning}} |
{{messagebox|'''Note 5:''' Later, if you need an ''additional'' database set up at some point for your MySQL account, send an email to {{mailto|support}} letting us know your MySQL username and the ''proposed name'' of your database.|warning}} | {{messagebox|'''Note 5:''' Later, if you need an ''additional'' database set up at some point for your MySQL account, send an email to {{mailto|support}} letting us know your MySQL username and the ''proposed name'' of your database.|warning}} |
Revision as of 15:20, 12 October 2022
The CS Dept has a MySQL server available. Point your MySQL client to mysql.cs.jhu.edu
You will need a CS MySQL account for access.
Connecting to our MySQL server
Once you have your CS Department MySQL account, you can connect to the mysql.cs.jhu.edu server with:
mysql -u your-mysql-username -p -h mysql.cs.jhu.edu
You will be prompted for your MySQL password.
Changing Your MySQL Password
MySQL passwords are separate from the passwords for our Linux clients; changing your Linux password will not change your MySQL password (and vice versa).
To change your MySQL password, connect to mysql.cs.jhu.edu with a MySQL client, and run the following command:
SET PASSWORD = PASSWORD('your-new-password');
Replace your-new-password with what you want your password to be.
Please be aware that many MySQL clients keep a record of SQL queries. You should clear that record to keep your MySQL password safe. On Linux systems, the command line MySQL client keeps its statement log in ~/.mysql_history; we recommend removing that file after changing your MySQL password. Other clients may store their history in other places.