LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-25-2004, 08:17 AM   #1
Fuel
Member
 
Registered: Feb 2002
Location: Sweden, Skeldepth
Distribution: Slackware 10
Posts: 178

Rep: Reputation: 30
MySQL - PHP5 - phpMyAdmin 2.6.0


a slackware 10 box with default apache and php

well.. i upgrade to PHP5 & apache 2 with packages from " linuxpackages " and , now when i enter the phpmyadmin ( phpMyAdmin 2.6.0 ) folder i get


cannot load mysql extension,
please check PHP Configuration
<Documentation>


..and follow the link gives..


[1.20] I receive the error "cannot load MySQL extension, please check PHP Configuration".

To connect to a MySQL server, PHP needs a set of MySQL functions called "MySQL extension". This extension may be part of the PHP distribution (compiled-in), otherwise it needs to be loaded dynamically. Its name is probably mysql.so or php_mysql.dll. phpMyAdmin tried to load the extension but failed.

Usually, the problem is solved by installing a software package called "PHP-MySQL" or something similar


the line in config.inc.php i phpmyadmin:
$cfg['Servers'][$i]['extension'] = 'mysql'; // The php MySQL extension to use ('mysql' or 'mysqli')
cant find info about mysql.so in other files
i am clueless..

Last edited by Fuel; 07-25-2004 at 01:43 PM.
 
Old 07-25-2004, 10:35 AM   #2
Fuel
Member
 
Registered: Feb 2002
Location: Sweden, Skeldepth
Distribution: Slackware 10
Posts: 178

Original Poster
Rep: Reputation: 30
sorry for.. bump
 
Old 07-25-2004, 01:39 PM   #3
Fuel
Member
 
Registered: Feb 2002
Location: Sweden, Skeldepth
Distribution: Slackware 10
Posts: 178

Original Poster
Rep: Reputation: 30
in php.ini

changed

; Directory in which the loadable extensions (modules) reside.
extension_dir = "./"

to

; Directory in which the loadable extensions (modules) reside.
extension_dir = "/usr/lib/php/extensions/"

and added the line

extension=mysql.so

dont know if its the right way but it works
 
  


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
PHP5-MySQL Not Connecting Through Socket oxblood Linux - Software 5 03-15-2010 05:53 PM
php5 and mysql eric_f Slackware 2 10-05-2006 08:19 AM
mysql and phpmyadmin jungleking Linux - Newbie 1 09-17-2005 08:07 AM
configure php5 and mysql issue jiawj Programming 1 08-17-2005 03:34 PM
php5 and MySQL 4.1 under Fedora C2 cidrolin Linux - Software 1 12-26-2004 03:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:39 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