Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Warning mysql_connect // database.php


Aloga

Recommended Posts

My error is :

 

Warning: mysql_connect(): Acceso negado para usuario: 'ODBC@localhost' (Usando clave: NO) in c:\easyphp1-7\www\catalog\admin\includes\functions\database.php on line 19

Unable to connect to database server!

 

 

I have the osCommerce installed in the computer with the Windows, the catalogue of osCommerce I can see it without problems. But the "Administration Tool" doesn?t leave me to see it, since when I enter the mistake goes out for me previously mentioned.

 

I have the database created with his user and password. I have 2 users created in general, one of user: root and other one: name, that the two have the same characteristics.

 

In the line 19 of the file database.php is the following one:

 

If (USE_PCONNECT == 'false') {

$$link = mysql_pconnect ($server, $usuario, $password);

} Else {

$$link = mysql_connect ($server, $usuario, $password);

}

 

 

I put the user and password that I have assigned to him to the database but it seems that it is not necessary to to be it:S

 

Someone can I solve the problem? This has happened to you there has someone? Do you know the solution?

 

I wait your for response. Thank you!

 

A greeting!

Link to comment
Share on other sites

You do not change the line in database.php there is nothing wrong with it the issue is in the configure.php files the database information is wrong for the password

 

these files

catalog/includes/configure.php

admin/includes/configure.php

 

this codes

define('DB_SERVER', 'localhost');
 define('DB_SERVER_USERNAME', 'ODBC');
 define('DB_SERVER_PASSWORD', '');
 define('DB_DATABASE', 'osCommerce');
 define('USE_PCONNECT', 'false'); // use persistent connections?
 define('STORE_SESSIONS', 'mysql');

check that the correct information has beeen entered and be careful of the use of upper and lower case letters

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...