This shows you the differences between two versions of the page.
| — | faq:mysql02 [2011/04/30 17:37] (current) – created clemens | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | < | ||
| + | [02] HOW DO I CONNECT TO MY DATABASE? | ||
| + | From any sdf machine, type: | ||
| + | |||
| + | $ mysql -h ol.freeshell.org -u $LOGNAME -p $LOGNAME | ||
| + | |||
| + | - OR - | ||
| + | |||
| + | $ mysql -h sdf-eu.org -u $LOGNAME -p $LOGNAME | ||
| + | |||
| + | A short cut called ' | ||
| + | | ||
| + | |||
| + | You will be prompted for a password, which by default is | ||
| + | your user login. | ||
| + | | ||
| + | may do so like this: | ||
| + | |||
| + | $ mysqladmin -h ol.freeshell.org -u $LOGNAME -p password ' | ||
| + | |||
| + | - OR - | ||
| + | |||
| + | $ mysqladmin -h sdf-eu.org -u $LOGNAME -p password ' | ||
| + | |||
| + | | ||
| + | OLD password). | ||
| + | |||
| + | If that doesn' | ||
| + | |||
| + | If you have forgotten your password, you can reset it back to your | ||
| + | login id (not your login password) by typing ' | ||
| + | |||
| + | | ||
| + | |||
| + | If you have MYSQL access via an SDF class, then you must access a | ||
| + | | ||
| + | / | ||
| + | |||
| + | To access your database: | ||
| + | |||
| + | $ / | ||
| + | |||
| + | To change your password: | ||
| + | |||
| + | $ / | ||
| + | |||
| + | If you still have problems, please contact your instructor. | ||
| + | </ | ||
| + | |||
| + | [[mysql|back]] | ||