MySQL Notes » History » Version 2
Amber Herold, 01/25/2010 04:39 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]; |