Difference between revisions of "Dept. MySQL Server"
Line 19: | Line 19: | ||
Once you have your CS Department '''''MySQL''''' account, you can connect to the '''mysql.cs.jhu.edu''' server with: | Once you have your CS Department '''''MySQL''''' account, you can connect to the '''mysql.cs.jhu.edu''' server with: | ||
− | + | <kbd>mysql -u <var>your-mysql-username</var> -p -h mysql.cs.jhu.edu</kbd> | |
You will be prompted for your MySQL password. | You will be prompted for your MySQL password. | ||
+ | |||
+ | The MySQL server is only accessible from the JHU networks or VPN. | ||
== Changing Your MySQL Password == | == Changing Your MySQL Password == |
Latest revision as of 12:55, 10 September 2024
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.
Please read the following Notes...
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.
The MySQL server is only accessible from the JHU networks or VPN.
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.