Need to know where mysql files resides in by default?

Hi, today for some reason my server automatically updated modules for my Webmin admin web interface for my servers.

It updated the modules and for some reason only MySQL it lost the config information where the files are located. So, it tells me that MySQL isn't installed on my system. Yet, when I go on my website. I have parts where it would query the MySQL database and then output some text. I seen those texts so I know my MySQL server is installed and working.

The only thing that happened today was updating the Webmin modules. It just lost the configs to the locations for the binaries to run.

This is the error I get :

Code:
The MySQL startup script (/usr/local/bin/safe_mysqld was not found on your system. Maybe MySQL is not installed, or your module configuration is incorrect.
That's where it's looking for to run the safe_mysqld. I can query my MySQL database and it runs find. I see no errors and I have restarted my server a few times. I looked at the boot startup messages in the terminal and it shows everything is ok.

I assume the config file for the Webmin module lost the locations. That is why I got this error message. I need to know where my MySQL server is installed. I am using FreeBSD 8.1 and I used the default installation location.

I would appreciate it if someone can tell me where the default location is located at. I need to know where safe_mysqld would reside in? Thank you for your time.
 
Apart from what @fonz has already shared I'd like to point your attention to the mysql_config(1) shell script. This provides all the information you need. The other, maybe easier, option is to simply check the MySQL port of the version you installed. The Makefile will show you everything you need to know.
 
Last edited by a moderator:
Back
Top