Page 1 of 1

Probably a dumb question...

PostPosted: 02. February 2008 20:28
by darkstar01uk
but here goes anyway.
I've installed xampp 1.6.5a on top of PCLinuxOS2007 and it all seems OK. I ran the security script and set passwords etc, including a root password for MySQL.
So now when I bring up the xampp home page on localhost I have to log in, user lampp, and my password. However, how do I enter the password for MySQL? If I try to go into phpMyAdmin I enter username/pw but get an error:
Code: Select all
Cannot log in to the MySQL server
Also the CD collection demo does not work with the message:
Code: Select all
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: NO) in /opt/lampp/htdocs/xampp/cds.php on line 64
Could not connect to database!
Is MySQL running or did you change the password?

How do I get around this? Seems to me I need to enter the MySQL pw somewhere?
Cheers
darkstar

PostPosted: 06. February 2008 14:42
by whatsashig
Find the file mentioned in the error, function call is missing a third parameter - if you stick the password word in here it works, I aint got no idea about php or mysql but my quess is that another function should really be called prior to this one which will retrieve user name and password then call the function on line 64 with that new info.