Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Fatal error: Call to undefined function mysql_connect()


organicme

Recommended Posts

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

 

Hi, can anyone help please? :blink:

 

I'm having a problem in setting up my localhost in my new latop. I have the latest apache(2.2.14), php(5.2.12) and mysql installed. W There was an error message before this; however, it was resolved somehow. Now the current error message appeared after migrating my website data(public_html)) to my localhost.

 

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

 

And, I then check database.php on line 19 stating that " $$link = mysql_connect($server, $username, $password);}"

Can anyone help me to explain what;s wrong?

I guess that this may be to do with mysql password and user name. In fact, I was not given one when installing mysql. If this is the cause for fatal error, please advice me where to get the password and user name? Ultimately, I'm seeking solution for this. It would be really appreciated if anyone can share you thought with me. Thanks,indeed. Organicme

Link to comment
Share on other sites

Susan,

 

This is caused because the password needed to access the database is not correct or missing in the configure.php files. If you did not create a password, you will need to find out what it is and enter it in the configure.php files.

 

 

 

Chris

Link to comment
Share on other sites

It's saying that it can't even find the mysql_connect() function. Either MySQL was not correctly installed, or you need to rebuild PHP to include the MySQL library.

Susan,

 

This is caused because the password needed to access the database is not correct or missing in the configure.php files. If you did not create a password, you will need to find out what it is and enter it in the configure.php files.

 

Many thanks, Chris and Mrphil. I am more confidence on what to do for next. Hopefully, it works shortly after my sql is properly re-installed. Thanks. Organicme

 

 

 

Chris

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...