Mailing List
Home
MySQL General - General MySQL discussion
MaxDB - Everything about MaxDB, formerly known as SAP DB
MySQL on Win32 - Runing MySQL on Windows 9x/Me/NT/2000/XP
Java Help - Mostly related to the MySQL Connector/J driver
ODBC - ODBC with the MySQL Connector/ODBC driver
Perl - Perl support for MySQL with DBI and DBD::mysql
MySQL++ - Programming with the C++ API to MySQL
Subjects
mysql openssl Question
mysql:it 's a db not a dbms how it 's possible?!
Does the binary log enabling affect the MySQL performances?
Strange behavior, Table Level Permission
FULLTEXT query format question
Preventing Duplicate Entries
Comparing and writing out BLOBS
Executing MySQL Commands From Within C Program
Can 't access mysql after kernel upgrade
Mysql 4 0 Oracle Stored Procedure Trigger Conversion
Downgrade Mysql from 4 to 3 23
MySQL Cluster Software
mysql test 4 1 fails with the gis test
ERROR 2002: Can 't connect to local MySQL server through socket
Getting Identity after INSERT
Update one field with more fields from another table
ERROR 1045: Access denied for user: 'root@localhost ' (Using
password: NO)
mysql have same function mthod as Oracle decode()
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
PHP RPM + 3 binary install of Mysql-4.0.20

PHP RPM + 3 binary install of Mysql-4.0.20

2004-06-06       - By Paul DuBois

 Back
Reply:     1     2  

At 1:54 -0400 6/6/04, Minuk Choi wrote:
>I have redhat9. I removed the RPM install of MySQL, and instead installed 3
>copies of MySQL-4.0.20 BINARY distributions into my /usr/local/ directory,
>under the helpful instructions of Thierno Cisse.
>
>However, it seems like now, the PHP RPM installation cannot find the mysql
>extension. When I try to load up phpMyAdmin-2.5.6(after changing the port
>and socket values to reflect the mysql directory), I get
>
>cannot load MySQL extension,
>please check PHP Configuration.
>Documentation
>
>After prodding around, my guess is that because when I uninstalled the MySQL
>RPM, the MySQL extension was also removed and the PHP RPM installation can
>no longer locate the MySQL directory.
>
>My question is... how do I resolve this; in the case of 1 PHP installation
>and multiple copies of MySQL Binary distribution installations, make PHP
>access the correct MySQL installation??

The general how-to-access-the-correct-server problem is solved like this:

The three different servers must be listening to different TCP/IP
port numbers and Unix socket files. Tell your client to connect to
either the TCP/IP port or socket file corresponding to the server that
you want to access.

However, your problem is more fundamental. By removing MySQL support
for PHP, you now cannot connect to any MySQL server at all. You 'll
need to reinstall that support. I don 't know if you can do that for the
PHP RPM without reinstalling the MySQL RPM; if not, you 'll probably need
to rebuild PHP yourself, with support for MySQL included.

--
Paul DuBois, MySQL Documentation Team
Madison, Wisconsin, USA
MySQL AB, www.mysql.com

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/mysql?unsub=mysql @(protected)