Solved

mysql directory for php

Posted on 2011-03-13
6
280 Views
Last Modified: 2012-05-11
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
0
Comment
Question by:enigma1234567890
  • 2
  • 2
  • 2
6 Comments
 
LVL 3

Expert Comment

by:_kiwi_
ID: 35121165
Hi,

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

Hope this helps,
Julien
0
 
LVL 18

Expert Comment

by:Sudaraka Wijesinghe
ID: 35121204
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
0
 

Author Comment

by:enigma1234567890
ID: 35122737
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
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 3

Accepted Solution

by:
_kiwi_ earned 250 total points
ID: 35122881
Can you try to type "locate mysql_config" in a command prompt and send the result ?

This executable is supposedly in the bin folder of your mysql installation directory.
0
 
LVL 18

Assisted Solution

by:Sudaraka Wijesinghe
Sudaraka Wijesinghe earned 250 total points
ID: 35122909
Maybe these will help you to find the locations
http://dev.mysql.com/doc/refman/5.1/en/linux-installation-rpm.html
http://dev.mysql.com/doc/refman/5.1/en/binary-installation.html
http://dev.mysql.com/doc/refman/5.1/en/source-installation-layout.html

From the ps output you have posted above, it seems you have installed MySQL from binary package or RPM.
0
 

Author Comment

by:enigma1234567890
ID: 35123461
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
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
xampp tool 12 30
unset shopping cart session 15 33
PHP warning 4 30
How do I change the from header when sending a mail 1 18
Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
This article discusses how to create an extensible mechanism for linked drop downs.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

27 Experts available now in Live!

Get 1:1 Help Now