Solved

mysql directory for php

Posted on 2011-03-13
6
287 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
The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

 
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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

Creating and Managing Databases with phpMyAdmin in cPanel.
In this series, we will discuss common questions received as a database Solutions Engineer at Percona. In this role, we speak with a wide array of MySQL and MongoDB users responsible for both extremely large and complex environments to smaller singl…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

710 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