LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 02-26-2004, 02:28 PM   #1
ivanatora
Member
 
Registered: Sep 2003
Location: Bulgaria
Distribution: Ubuntu 9.10, FreeBSD 7.2
Posts: 459

Rep: Reputation: 31
mysql doesn't work with php


Apache 1.3.27
PHP 4.3.1
MySQL 3.23
-----------
I tried the built-in MySQL tgz, but it didn't work completely. I uninstalled it via pkgtool and downloaded binaries from www.mysql.com . I followed the instructions there and successfully got it running. I can use mysqladmin to create database and mysql to edit it. Everything is ok but I can't make php work with it. (Note: Apache and PHP are from slackware 9.0 distribution CD). I tried phpMyAdmin which have pretty good Documentation and there got:
cannot load MySQL extension,
please check PHP Configuration.
---
Quote:
[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 server (compiled-in), otherwise it needs to be loaded dynamically. Its name is probably mysql.so or 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.
I searched all over the web but didn't find anything that looks like PHP-MySQL package. I have mysql.so in /usr/lib/php/extensions/mysql.so and following in /etc/apache/php.ini:
extension_dir = "/usr/lib/php/extensions/"
So, what's wrong?
 
  


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
Trying to get PHP to work with MySQL walterbyrd Linux - Software 1 03-25-2005 10:58 AM
Apache, MySql, PHP work on 10.0 but not 10.1 fireman949 Slackware 3 02-28-2005 11:36 PM
Apache Mysql Php: mysql with php doesn't work breakerfall Linux - Networking 6 12-27-2003 08:59 PM
Just wanting MySQL to work with php edhan Linux - Newbie 5 09-13-2003 03:48 AM
getting mysql to work with php dsgdevil Linux - General 8 02-09-2003 09:35 PM

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

All times are GMT -5. The time now is 03:43 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
Open Source Consulting | Domain Registration