Need Help with my Wamp
Posted by: ddunn935 (---.lightspeed.stlsmo.sbcglobal.net)
Date: April 02, 2012 03:18PM

PhpMyAdmin won't grant me access and gives me a #1130 error and MySQL keeps asking me for a password although apparently i forgot what i put for it last time. I tried uninstalling, deleting the C:\Wamp folder and installing again but i guess it still keeps the registry files because it gives the same errors for both PhpMyAdmin and MySQL. How do i get a CLEAN install of WAMP so i can just start all over?

Options: ReplyQuote
Re: Need Help with my Wamp
Posted by: RiggsFolly (---.as13285.net)
Date: April 02, 2012 03:24PM

Have a look at this it may help

[forum.wampserver.com]

Options: ReplyQuote
Re: Need Help with my Wamp
Posted by: ddunn935 (---.lightspeed.stlsmo.sbcglobal.net)
Date: April 02, 2012 03:31PM

I changed the testmysql.php file to what you had and it didn't work. It shows a red line on my editor though i guess signifying that the code might be incorrect? Here it is here:

<?php
$link = mysql_connect('hostname', 'root',);
if (!$link) {
die('Could not connect to MySQL: ' . mysql_error());
}
echo 'Connection OK'; mysql_close($link);
?>

Options: ReplyQuote
Re: Need Help with my Wamp
Posted by: RiggsFolly (---.as13285.net)
Date: April 02, 2012 03:38PM

mysql_connect has 3 parameters and does not finish with a comma

Options: ReplyQuote
Re: Need Help with my Wamp
Posted by: ddunn935 (---.lightspeed.stlsmo.sbcglobal.net)
Date: April 02, 2012 03:47PM

Ok is this right?:

<?php
$link = mysql_connect('hostname', 'root', "winking smiley;
if (!$link) {
die('Could not connect to MySQL: ' . mysql_error());
}
echo 'Connection OK'; mysql_close($link);
?>

And when i test the php file in the browser it says:

Parse error: syntax error, unexpected $end in C:\wamp\www\testmysql.php on line 7

Options: ReplyQuote
Re: Need Help with my Wamp
Posted by: RiggsFolly (---.as13285.net)
Date: April 02, 2012 04:13PM

copy and paste



<?php
$link = mysql_connect('localhost','root','');
if (!$link) {
die('Could not connect to MySQL: ' . mysql_error());
}
echo 'Connection OK'; mysql_close($link);
?>

Options: ReplyQuote
Re: Need Help with my Wamp
Posted by: ddunn935 (---.lightspeed.stlsmo.sbcglobal.net)
Date: April 02, 2012 06:05PM

It still doesn't work my friend. Same error

Options: ReplyQuote
Re: Need Help with my Wamp
Posted by: RiggsFolly (---.as13285.net)
Date: April 02, 2012 09:18PM

I am lost now.

try an uninstall and reinstall.

CD into your wamp folder and run >uninstall_services.bat

The delete teh wamp folder completely.

Reinstall and try again from the start of that document.

Options: ReplyQuote


Sorry, only registered users may post in this forum.