MySQL stops after ~1.5 seconds

Problems with the Windows version of XAMPP, questions, comments, and anything related.

MySQL stops after ~1.5 seconds

Postby alphabetho » 18. June 2009 22:02

I've tried uninstalling and reinstalling, and have checked that Port 3306 is clear. What could the problem be? When I try to look at the CD demo i get:


Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: NO) in C:\xampp\htdocs\xampp\cds.php on line 77
Could not connect to database!
Is MySQL running or did you change the password?



and attempting to open phpMyAdmin gives me:

Error

MySQL said: Documentation
#1045 - Access denied for user 'root'@'localhost' (using password: NO)
Connection for controluser as defined in your configuration failed.
phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server.




thanks for any help!
alphabetho
 
Posts: 4
Joined: 18. June 2009 21:55

Re: MySQL stops after ~1.5 seconds

Postby Wiedmann » 18. June 2009 22:06

Code: Select all
Access denied for user 'root'@'localhost' (using password: NO)

What could the problem be?

Your user "root" have a password, but your script is not using one for the connection.
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: MySQL stops after ~1.5 seconds

Postby alphabetho » 18. June 2009 22:23

I have changed NOTHING from defaults. This is not my script -> it's the demos!
alphabetho
 
Posts: 4
Joined: 18. June 2009 21:55

Re: MySQL stops after ~1.5 seconds

Postby Wiedmann » 18. June 2009 23:14

I have changed NOTHING from defaults.

Maybe not you...

This is not my script -> it's the demos!

Correct. The demos don't work if "root" have a password.

--> restore your backup from the MySQl systgem database, if you don't know the "root" password.
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: MySQL stops after ~1.5 seconds

Postby alphabetho » 19. June 2009 00:33

I don't quite understand - I'm a beginner!

I downloaded XAMPP from http://www.apachefriends.org/en/xampp-windows.html#641.

Interestingly, when I try changing the password under the security tab, it ALWAYS says successful, regardless of the "current" password. Also, when adding directory protection, all seems to work perfectly, but when I access the files remotely I am asked for a user name and password, but entering the correct inputs just puts it into a loop refreshes and asks again.

*edited out dumb comment*



Thanks!!
alphabetho
 
Posts: 4
Joined: 18. June 2009 21:55

Re: MySQL stops after ~1.5 seconds

Postby alphabetho » 19. June 2009 02:13

The problem is that it won't stay running! not with the scripts, (as far as I can tell).
alphabetho
 
Posts: 4
Joined: 18. June 2009 21:55

Re: MySQL stops after ~1.5 seconds

Postby el-quds » 19. June 2009 10:55

:?
U may try to remove the read only attribute from the phpmyadmin directory u might have access denied on the file that needs changing ..u can also try the xamp security permissions ... something around permissions is preventing u from making changes on some pages in phpmyadmin..

another thing try making a new database with root user and no password for some quick installation like a forum or a amagazine a fresh install and see if he can connect to the new database and why if not ?

:|
el-quds
 
Posts: 20
Joined: 12. June 2009 09:11


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 100 guests