In my installation of MySQL (SuSE 9.3 Pro), in /etc/init.d/mysql, the file contains this information:
# The following section has been taken from
# the original MySQL init script
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.