MySQL Notes » History » Revision 3
Revision 2 (Amber Herold, 01/25/2010 04:39 PM) → Revision 3/7 (Amber Herold, 03/04/2010 01:24 PM)
h1. MySQL Notes
h2. Get access to our databases
To get access to our databases, you need to ask Christopher (or someone else with the correct privileges) to add you as a user.
Our databases reside on Cronus4 (Appion and Leginon things), ami (websites and tools like Redmine), and Fly (a copy of Cronus4 used for testing).
Once added, you will need to change your password from the default to something all your own on each server that you are added to. Here's how:
At a terminal type:
<pre>
mysql -h cronus4 -u [yourUserName] -p
</pre>
You are prompted to type your default password. Then, change your password with:
<pre>
set password = password("[new password]");
</pre>
h2. Other MySQL commands to try
show databases;
use [name of db]
show tables;
describe [name of table];
h2. To stop a query that is taking too long:
<pre>
mysql> showprocesslist;
mysql> kill [process Id number];
</pre>