#36193 [Bgs]: Can't connect to MySQL
| From: | anishxt at gmail dot com | Date: | Sun, 29 Jan 2006 08:24:09 +0000 |
| Subject: | #36193 [Bgs]: Can't connect to MySQL | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-92590@lists.php.net to get a copy of this message | ||
ID: 36193
User updated by: anishxt at gmail dot com
Reported By: anishxt at gmail dot com
Status: Bogus
Bug Type: MySQL related
Operating System: *
PHP Version: 5.1.2
New Comment:
OoopS! I am very sorry. You was right. It wasn't a bug. I didn't
configure the extension_dir in the php.ini file. And I didn't put the
libmysql.dll into the system32 dir.
Now it is working smoooooooothly! :)
Thank you for spending your time with my problem.
Previous Comments:
------------------------------------------------------------------------
[2006-01-28 21:36:53] helly@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
How about installing ext/mysql or using ext/mysqli?
And RTFM
------------------------------------------------------------------------
[2006-01-28 21:02:05] anishxt at gmail dot com
Description:
------------
I was using the PHP 4.3.4 with MySQL 5.0.15. There was no problem with
PHP when connecting to the MySQL using
mysql_connect(($dbhost, $dbusername, $dbuserpass);
But, after installed the PHP 5.1.2, I can't connect to MySQL using the
same command:
mysql_connect(($dbhost, $dbusername, $dbuserpass);
which would prompt an error:
"Call to undefined function mysql_connect()"
Reproduce code:
---------------
mysql_connect(($dbhost, $dbusername, $dbuserpass);
Expected result:
----------------
Successful connection to MySQL 5.0.15
Actual result:
--------------
Call to undefined function mysql_connect()in line 12
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=36193&edit=1