Where does apt-get install mysql-server?

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, ...


Go Back   Usenet Forums > Database Forums > MySQL Database

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-16-2007
Ivan
 
Posts: n/a
Default Where does apt-get install mysql-server?

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..

Reply With Quote
  #2 (permalink)  
Old 10-16-2007
lark
 
Posts: n/a
Default Re: Where does apt-get install mysql-server?

== 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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 09:45 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0