How to figure out the mysql
location on a server (windows or linux)?
I would like to run
mysql -u USER -p PASS DATABASE < filename.sql
but I need the absolute path to mysql, how do I find out?
How to figure out the mysql
location on a server (windows or linux)?
I would like to run
mysql -u USER -p PASS DATABASE < filename.sql
but I need the absolute path to mysql, how do I find out?
Unix/Linux: which mysql
returns the path to the mysql
executable
I don't know about windows.
which mysql
wont return anything if its not already in the path.
on linux you can use
updatedb
locate mysql
or `find / -name "mysql" -print
Windows just use their crappy search tool