In my installation of MySQL (SuSE 9.3 Pro), in /etc/init.d/mysql, the file contains this information:
Quote:
# The following section has been taken from
# the original MySQL init script
basedir=/usr
datadir=/var/lib/mysql
mysql_daemon_user=mysql
mysql_daemon_group=mysql
pid_file=/var/lib/mysql/mysqld.pid
socket=/var/lib/mysql/mysql.sock
MYADMIN=/usr/bin/mysqladmin
|
You should have a similar file somewhere in /etc. Notice the 'datadir' line. It will tell your where your databases are stored.
Remember, this is on my system. Your system may be set up differently.