LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Cannot find mysql_config file (https://www.linuxquestions.org/questions/linux-newbie-8/cannot-find-mysql_config-file-509521/)

tekmann33 12-11-2006 06:01 PM

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?

fordeck 12-11-2006 06:34 PM

Check:

Code:

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


Regards,
Fordeck

tekmann33 12-11-2006 06:50 PM

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


All times are GMT -5. The time now is 09:08 AM.