Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 01-02-2004, 08:37 AM   #1
LQ Newbie
Registered: Sep 2003
Posts: 26

Rep: Reputation: 15


For some reason of which I do not know I can not connect to mysql database. Here is the message it returns me when I try to go to

"Fatal error: Call to undefined function: message_die() in /usr/local/apache2/htdocs/db/db.php on line 88"

That directly refers to this in the db.php file:

"message_die(CRITICAL_ERROR, "Could not connect to the database");"

anyone know what im doing wrong here?

Apache 2.0 installed and working correctly.
PHP-Nuke 6.9 installed
MySQL 4.0.13 installed and appears to be working fine.
Here is the output after I launch mysqld

"mysqld: ready for connections.
Version: '4.0.13-log' socket: '/var/run/mysqld/mysqld.sock' port: 3306"

let me know your ideas thanks

Last edited by sam00; 01-02-2004 at 08:42 AM.
Old 01-02-2004, 03:07 PM   #2
Registered: Dec 2003
Location: Layer 7 =D
Distribution: Slackware, LFS, Rock Linux
Posts: 165

Rep: Reputation: 30
message_die is a user-defined function...
maybe you are missing some includes ? or you are calling an script directly that only is a library...
Old 01-09-2004, 04:36 AM   #3
LQ Newbie
Registered: Oct 2003
Location: Aberdeen, Scotland
Distribution: Fedora
Posts: 6

Rep: Reputation: 0
try the built-in php die function

edit line 88 in the db.php file, replacing message_die(..... with

die("Could not connect to the database: ".mysql_error())


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
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
Problems with MySQL on SuSE: Can't Connect (/var/lib/mysql/mysql.sock) neocookie Linux - Software 8 02-07-2008 11:48 PM
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 > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:31 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration