Project

General

Profile

MySQL Notes » History » Version 4

Amber Herold, 03/04/2010 01:26 PM

1 1 Amber Herold
h1. MySQL Notes
2
3
h2. Get access to our databases
4
5
To get access to our databases, you need to ask Christopher (or someone else with the correct privileges) to add you as a user.
6 2 Amber Herold
Our databases reside on Cronus4 (Appion and Leginon things), ami (websites and tools like Redmine), and Fly (a copy of Cronus4 used for testing).
7 1 Amber Herold
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:
8
9
At a terminal type:
10
<pre>
11
mysql -h cronus4 -u [yourUserName] -p
12
</pre>
13
14
You are prompted to type your default password. Then, change your password with:
15
<pre>
16
set password = password("[new password]");
17
</pre>
18
19
h2. Other MySQL commands to try
20
21
show databases;
22
use [name of db]
23
show tables;
24
describe [name of table];
25 3 Amber Herold
26
h2. To stop a query that is taking too long:
27
28
<pre>
29
mysql> showprocesslist;
30
31
mysql> kill [process Id number];
32
</pre>
33 4 Amber Herold
34
h2. Mysql bug with nested subqueries
35
36
[[Mysql Nested Subqueries Problem]]