Page 1 of 1

problem with XAMPP and CartWeaver 3

PostPosted: 17. October 2007 00:07
by jonathandenwood
Hi Folks I am having some troubles getting XAMPP to work with Cartweaver3
I make a new user in MySQL and give it a password no problem setup Cartweaver give it the username and password let it make a new database as normal then I go to the normal index page and view it I get this warning message


Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\Program Files\xampp\htdocs\cw_test\cw3\CWLibrary\CWDBMySQL.php on line 123

Fatal error: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\Program Files\xampp\htdocs\cw_test\cw3\CWLibrary\CWDBMySQL.php on line 123

I am a bit confused on what the problem is can you give me some advice on this? If you like I can post the code from the CWDBMySql.php if needed.

Take care

Jonathan

PostPosted: 17. October 2007 00:20
by Wiedmann
Code: Select all
Fatal error: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\Program Files\xampp\htdocs\cw_test\cw3\CWLibrary\CWDBMySQL.php on line 123

I am a bit confused on what the problem is can you give me some advice on this?

This script is not using a configured username/password.

PostPosted: 17. October 2007 01:00
by adamjw3
i'm no expert but it sounds like you have put the wrong settings in your database config file or database connection which ever one you have used.

have you tried it with a blank password?

PostPosted: 17. October 2007 01:26
by jonathandenwood
Hi adamjw3 thanks for the reply I think I tried that with no success. However I give it a go this evening.

Take care

Jonathan

PostPosted: 17. October 2007 04:32
by jonathandenwood
Hi Wiedmann, thanks for your reply. Can you give me some more details about your remark that "This script is not using a configured username/password." I don't really understand this remark.

Take care

Jonathan

PostPosted: 17. October 2007 15:05
by Wiedmann
This script is not using a configured username/password."

Well,
jonathandenwood wrote:setup Cartweaver give it the username and password

Here you told us, that you have configured a MySQL username in "Cartweaver".

jonathandenwood wrote:Fatal error: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\Program Files\xampp\htdocs\cw_test\cw3\CWLibrary\CWDBMySQL.php on line 123

But this "Cartweaver" script ("CWDBMySQL.php") don't use the configured username. (a mysql_connect without using a username results in the username "ODBC'@'localhost").