LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-11-2006, 07:01 PM   #1
tekmann33
Member
 
Registered: Nov 2006
Posts: 188

Rep: Reputation: 30
Cannot find mysql_config file


I installed MySQL on a Red Hat 9 machine as part of a soon to be PHP installation with Apache and MySQL support. These are the mysql rpm's that I used:


MySQL-client-5.0.27-0.glibc23.i386.rpm
MySQL-server-5.0.27-0.glibc23.i386.rpm

I am using a Sams Teach Yourself book, "PHP, MySQL, and Apache" as a guide. I installed MySQL and Apache and now I am installing PHP. I downloaded the PHP tarball

php-5.2.0.tar.gz

and unzipped and untarred it.

According to the book, I need to configure PHP to include Mysql and PHP with the following command:

./configure --prefix=/usr/local/php --with-mysqli=/usr/local/mysql/bin/mysql_config --with-apxs2=/usr/local/apache2/bin/apxs


I have the php and apxs directory paths, but not the mysql_config.

I updated my database and searched for mysql_config and came up with nothing:

[root@BriansRH src]# updatedb
[root@BriansRH src]# locate mysql_config
[root@BriansRH src]#


I also tried the find command and couldn't find it:

[root@BriansRH src]# find / -name mysql_config
[root@BriansRH src]#


I query my rpm's to make sure that mysql is installed and confirmed that they are:

[root@BriansRH src]# rpm -qa | grep MySQL
MySQL-server-5.0.27-0.glibc23
MySQL-client-5.0.27-0.glibc23


I have checked other forums concerning this and the only advice that I seem to run accross is that with different rpm installations, especially with Red hat, the mysql_config file is sometimes in a different place...but as you can see, I simply do not have it.

Can anyone point me in the right direction on this?
 
Old 12-11-2006, 07:34 PM   #2
fordeck
Member
 
Registered: Oct 2006
Location: Utah
Posts: 520

Rep: Reputation: 61
Check:

Code:
/usr/bin/mysql_config
I believe this is where it should be.


Regards,
Fordeck
 
Old 12-11-2006, 07:50 PM   #3
tekmann33
Member
 
Registered: Nov 2006
Posts: 188

Original Poster
Rep: Reputation: 30
Nope....

[root@BriansRH src]# ls /usr/bin/mysql_config
ls: /usr/bin/mysql_config: No such file or directory


This is what I have in that directory:

[root@BriansRH src]# ls /usr/bin/mysql*
/usr/bin/mysql /usr/bin/mysqldump /usr/bin/mysql_setpermission
/usr/bin/mysqlaccess /usr/bin/mysqldumpslow /usr/bin/mysqlshow
/usr/bin/mysqladmin /usr/bin/mysql_explain_log /usr/bin/mysql_tableinfo
/usr/bin/mysqlbinlog /usr/bin/mysql_find_rows /usr/bin/mysqltest
/usr/bin/mysqlbug /usr/bin/mysql_fix_extensions /usr/bin/mysql_tzinfo_to_sql
/usr/bin/mysqlcheck /usr/bin/mysql_fix_privilege_tables /usr/bin/mysql_upgrade
/usr/bin/mysql_convert_table_format /usr/bin/mysqlhotcopy /usr/bin/mysql_waitpid
/usr/bin/mysql_create_system_tables /usr/bin/mysqlimport /usr/bin/mysql_zap
/usr/bin/mysqld_multi /usr/bin/mysql_install_db
/usr/bin/mysqld_safe /usr/bin/mysql_secure_installation
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Where can I find the file over mounten file system Wallace740 Linux - Newbie 2 03-30-2005 03:46 AM
Linker problem: can't find a file, but the file exists atlep Programming 5 08-16-2004 07:15 AM
Find File broken, need search utility, where does WineX install, KDE file roller? Ohmn Mandriva 6 07-05-2004 11:34 PM
where can I find grammar file and lex file of GNU c ? thinks Huiming Linux - Software 1 06-11-2004 08:38 AM
Quick question, installing mysql_config shosterman Linux - Newbie 0 01-19-2004 07:50 PM


All times are GMT -5. The time now is 11:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration