This is a discussion on Where does apt-get install mysql-server? within the MySQL Database forums, part of the Database Forums category; I am installing a webapp under tomcat and it requires me to identify the path to the MySQL directory. Naturally, ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I am installing a webapp under tomcat and it requires me to identify
the path to the MySQL directory. Naturally, the first thing that came to mind was /etc/mysql however this didn't seem to work. After doing a search as follows: # whereis mysql mysql: /usr/bin/mysql /etc/mysql /usr/X11R6/bin/mysql /usr/bin/X11/ mysql /usr/local/mysql /usr/share/mysql /usr/share/man/man1/mysql.1.gz I really have no idea what the most logical solution would be. All I do know is that none of these options work. I can connect to the database and start/stop it via its initscript, but need to know where in my computer it is installed.. Using 64 bit ubuntu.. |
|
|||
|
== Quote from Ivan (find.ivan@gmail.com)'s article
> I am installing a webapp under tomcat and it requires me to identify > the path to the MySQL directory. > Naturally, the first thing that came to mind was /etc/mysql however > this didn't seem to work. > After doing a search as follows: > # whereis mysql > mysql: /usr/bin/mysql /etc/mysql /usr/X11R6/bin/mysql /usr/bin/X11/ > mysql /usr/local/mysql /usr/share/mysql /usr/share/man/man1/mysql.1.gz > I really have no idea what the most logical solution would be. All I > do know is that none of these options work. > I can connect to the database and start/stop it via its initscript, > but need to know where in my computer it is installed.. > Using 64 bit ubuntu.. this is more an os issue but here you go: ivan, this is not terribly hard. i believe apt-get has an option that tells you exactly where it puts all the files it installs. you may want to also run locate mysql or locate mysql5 or whereis mysql5 some apps install to /opt/local as well. -- POST BY: lark with PHP News Reader |