Not for official support
We do not provide technical support in this forum.
If you want to contact our customer support, please use our support form.

You are not logged in.

#1 2009-07-21 02:20

nikhiljchheda
Member

Database Connection Error

Hi All,

I could complete the installation of ShopScript, but on the database access page it give me this error..

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: NO) in C:\EasyPHP\www\includes\database\mysql.php on line 13

Warning: mysql_get_server_info(): supplied argument is not a valid MySQL-Link resource in C:\EasyPHP\www\includes\database\mysql.php on line 14

Kindly advise.

Best regards
Nikhil Chheda

Offline

 

#2 2009-07-21 07:24

scootxr
Member

Re: Database Connection Error

open mysql.php
if theres somthing along the lines of:

//connect to the database
    db_connect(DB_HOST,DB_USER,DB_PASS) or die (db_error());
    db_select_db(DB_NAME) or die (db_error());

make sure it contains all the correct information.
eg.
//connect to the database
    db_connect(root,admin,adminpass) or die (db_error());
    db_select_db(mydatabase) or die (db_error());

might work, not sure as i do not run locally

Offline

 

#3 2012-03-09 02:08

michaelg
Member

Re: Database Connection Error

When I was running install.php, the following warning occured:

Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (46) in /shop-script-free/includes/database/mysql.php on line 13

Warning: mysql_get_server_info() expects parameter 1 to be resource, boolean given in /shop-script-free/includes/database/mysql.php on line 14

I double checked all the connection settings, and could even access the database via phpMyAdmin. What went wrong?

Offline

 

#4 2012-03-11 01:37

rat
Administrator

Re: Database Connection Error

You might have entered incorrect database connection credentials during installation. Or the mysql_connect function is disabled on your server.


Be careful what you wish for — you might get it.

Offline

 

#5 2012-06-26 17:35

Heli
Member

Re: Database Connection Error

where is located includes/database/mysql.php from free version in webasyst shop script version ?

Offline

 

#6 2012-06-27 03:12

rat
Administrator

Re: Database Connection Error

Post this question in the forum section dedicated to WebAsyst, please.


Be careful what you wish for — you might get it.

Offline

 

Board footer

Powered by PunBB