LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-27-2006, 06:03 AM   #1
jsteegh
LQ Newbie
 
Registered: Feb 2006
Location: The Netherlands
Distribution: Slackware, SuSe, eeeXubuntu
Posts: 14

Rep: Reputation: 0
problem with mysql mysql.so


Hello,

I've set up my server (running slackware 10.2) and configured everything. Apache is working, php is working and the mysql server is running. But when I installed phpmysql I got the erro which says 'Cannot load mysql extension.' I've checked the php.ini file and it says 'extension=mysql.so' so I believe that's correct. And I searched for mysql.so and it is pressent.

I do not know what is wrong. I've configured my server before without having this problem. The only thing that I did different is that I installed the latest mysql 5 package.

Can someone help me?

Thanks,
Justin
 
Old 12-27-2006, 08:23 AM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
You'll have to recompile php against php5 then. My guess is that php is looking for the mysql-4 version of the dynamic libraries. Try running:
Code:
$ ldd /usr/lib/php/extensions/mysql.so | grep mysql
to see if your php mysql extension library can find the correct version of the mysql client library.
In my case (Slackware 11.0):
Code:
$ ldd /usr/lib/php/extensions/mysql.so | grep mysql
        libmysqlclient.so.15 => /usr/lib/libmysqlclient.so.15 (0xb7e6f000)
Eric
 
Old 12-27-2006, 01:21 PM   #3
jsteegh
LQ Newbie
 
Registered: Feb 2006
Location: The Netherlands
Distribution: Slackware, SuSe, eeeXubuntu
Posts: 14

Original Poster
Rep: Reputation: 0
it says
Code:
libmysqlclient.so.14 => not found
I guess I have to recompile php then. Or could I also fix by using mysql 4?
 
Old 12-27-2006, 02:56 PM   #4
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Quote:
Originally Posted by jsteegh
could I also fix by using mysql 4?
Of course. The original Slackware mysql package is what the php package was compiled against...

Eric
 
  


Reply



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
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. NoviceW Linux - Networking 17 09-17-2014 02:13 PM
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock welery Linux - Software 19 03-06-2014 07:19 AM
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. suziecorbett Linux - Software 8 10-09-2008 01:52 AM
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) sunlinux Linux - Software 1 11-07-2006 12:08 AM
mysql error Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. Dannux Linux - Software 3 03-24-2006 08:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:57 PM.

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
Open Source Consulting | Domain Registration