Link to home
Start Free TrialLog in
Avatar of enigma1234567890
enigma1234567890Flag for Ireland

asked on

mysql directory for php

I want to compile php and need to state the directory mysql is installed in for the commmand
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql-dir=/var/local/mysql
can someone advise what it is ps -ef returns the following

root      2926     1  0 08:45 pts/1    00:00:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --socket=/var/lib/mysql/mysql.sock --log-error=/var/log/mysqld.log --pid-file=/var/run/mysqld/mysqld.pid --user=mysql
mysql     2976  2926  0 08:45 pts/1    00:00:00 /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/mysqld.pid --skip-external-locking --socket=/var/lib/mysql/mysql.sock
root      3142  2839  0 09:25 pts/1    00:00:00 grep mysqld
Avatar of _kiwi_
_kiwi_
Flag of France image

Hi,

MySql is usually installed under /usr/local/mysql or /usr/local/mysql[-version]

Hope this helps,
Julien
I'm attaching some instructions I wrote while ago for a specific application regarding the installation of PHP/MySql from the source files.
It was written for a RHL, but should work for Fedora, CentOS or any RedHat based system. Hope the details helps you.

php-mysql.doc
Avatar of enigma1234567890

ASKER

still don't know what directory mysql is installed in,,  
Thanks sudaraka for notes very good however as always with linux its completely different in the version I am using
ASKER CERTIFIED SOLUTION
Avatar of _kiwi_
_kiwi_
Flag of France image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
finaly got it working doesnt matter what diretory you use was a 64bit libary issue


this fixed it

./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql --with-libdir=lib64