Jump to content

Needing Mysql5.1.65 For Compatibility And Mysql_Connect Fails


yshua

Recommended Posts

Dear Folks:

 

Have some programs needing MySQL version 5.1.65 on Win 7, Apache2.2 server, PHP5.3.8, but the mysql_connect,

 

$mysql = mysql_connect("localhost", "root", “mypassword”);
if (!$mysql) {
die('Could not connect: ' . mysql_error());
}

 

keeps getting following error:

 

Fatal error: Call to undefined function mysql_connect() in C:\Program Files (x86) \Apache Software Foundation\Apache2.2\htdocs\includes\db.php on line 19

 

So my mysql_connect() is failing. Have tried various php.ini entries for Windows such as,

 

extension=msql.dll

,

 

( Am unsure what other Windows extension applies above, but ready to try any)

 

Here are mysql extensions filled out:

 

[MySQL]
mysql.allow_local_infile = On
mysql.allow_persistent = On
mysql.cache_size = 2000
mysql.max_persistent = -1
mysql.max_links = -1
mysql.default_port = 3306
mysql.default_socket =
mysql.default_host = 'localhost'
mysql.default_user = 'root'
mysql.default_password = 'mypassword'
mysql.connect_timeout = 60
mysql.trace_mode = Off

 

What else could be causing the Fatal error? Also, do you have to reinstall any time you change any of those entries?

 

Thanks,

Yshua :confused:

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.