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:

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.