Solved

mysql directory for php

Posted on 2011-03-13
6
290 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

 
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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

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.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

628 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