forked from pifty/tutes-dump
43 lines
1.3 KiB
Plaintext
Executable File
43 lines
1.3 KiB
Plaintext
Executable File
[02] HOW DO I CONNECT TO MY DATABASE?
|
|
|
|
From any sdf machine, type:
|
|
|
|
$ mysql -h ol.sdf.org -u $LOGNAME -p $LOGNAME
|
|
|
|
- OR -
|
|
|
|
$ mysql -h sdf-eu.org -u $LOGNAME -p $LOGNAME
|
|
|
|
A short cut called 'startsql' has been created for you so you
|
|
don't have to type the command above.
|
|
|
|
$ mysqladmin -h ol.sdf.org -u $LOGNAME -p password 'mynewpass'
|
|
|
|
- OR -
|
|
|
|
$ mysqladmin -h sdf-eu.org -u $LOGNAME -p password 'newpw'
|
|
|
|
(NOTE! its a bit confusing, but you will be prompted for your
|
|
OLD password).
|
|
|
|
If that doesn't work for you, then try 'mypasswd'
|
|
|
|
If you have forgotten your password, you can reset it back to your
|
|
login id (not your login password) by typing 'reset-mysql'
|
|
|
|
***SPECIAL INSTRUCTS FOR SDF CLASSROOMS***
|
|
|
|
If you have MYSQL access via an SDF class, then you must access a
|
|
different database server. You must also use the bins in
|
|
/sys/classroom/bin.
|
|
|
|
To access your database:
|
|
|
|
$ /sys/classroom/bin/mysql -h faeroes -u $LOGNAME -p $LOGNAME
|
|
|
|
To change your password:
|
|
|
|
$ /sys/classroom/bin/mysqladmin -h faeroes -u $LOGNAME -p password 'newpw'
|
|
|
|
If you still have problems, please contact your instructor.
|