LinuxQuestions.org
Help answer threads with 0 replies.
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 03-31-2004, 12:17 PM   #1
eduac
Member
 
Registered: Jun 2003
Distribution: Arch - www.archlinux.org
Posts: 186

Rep: Reputation: 30
kernel 2.6.3 crash the php4-mysql


fellas,


I compile the kernel 2.6.3 in my debian distro, and everything is fine, but i cant connect to mysql through php (call to undefined function mysql_connect()). The packages (mysql-server,mysql-client,php4-mysql) have be installed.

Comment: on my kernel 2.4, the mysql_connect work on.

Anyone have a idea to solve this, please?

Last edited by eduac; 03-31-2004 at 02:20 PM.
 
Old 05-07-2004, 09:47 PM   #2
joesmack
LQ Newbie
 
Registered: May 2004
Location: Kingston On
Distribution: Debian Unstable
Posts: 7

Rep: Reputation: 0
Thumbs down same problem

I have the same problem. I updated my kernel from 2.4.17 to 2.6.5. PHP-mysql works fine in 2.4.17 and wont connect at all in 2.6.5.
I have extension=mysql.so in my php.ini file but my phpinfo() has no mysql anywhere on the page except under my ./configure --with-mysql
I can get into mysql through a bash shell, and mysql is running on port 3306 (i did a port scan) but php (and java) wont connect to mysql.
ps aux returns this as a process running
/usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/mysqld.pid --skip-locking --port=3306 --socket=/var/run/mysqld/mysqld.sock

Is it possible that I did not insert some module needed for this connection in version 2.6.5?

JS
 
Old 10-10-2004, 12:52 PM   #3
joesmack
LQ Newbie
 
Registered: May 2004
Location: Kingston On
Distribution: Debian Unstable
Posts: 7

Rep: Reputation: 0
My problem was that I compiled PHP from source and a library definition had been altered in the Debian version of the package. apt-get install php4 [--reinstall] fixed my problem.
 
Old 10-23-2004, 09:42 AM   #4
antonix
LQ Newbie
 
Registered: Oct 2004
Posts: 1

Rep: Reputation: 0
Angry

Hi, using kernel 2.6.8-1, I'm experiencing the same problem. Has anyone found a solution yet?

antonix
 
  


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
PHP4-MySQL TehIan Linux - Software 2 06-30-2005 01:51 PM
php4 mysql, installation, php-pages with mysql info stay empty dnla Linux - Software 2 03-14-2004 02:54 PM
php4 mysql connectivity bm1 Programming 4 02-19-2004 06:23 PM
PHP4 MySQL configuration Gilion Linux - Software 7 02-02-2004 10:03 AM
apache2 prefork + php4 + mysql rymonree Linux - Software 1 09-06-2003 02:03 PM

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

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