iphetamine Posted June 23, 2008 Share Posted June 23, 2008 I've set wamp successfully and could access localhost. I also changed the mysql password using: UPDATE user SET Password=PASSWORD('xxx') WHERE user='root'; and then: FLUSH PRIVILEGES It all worked fine and was able to use the new password in console. But when I open http://localhost/phpmyadmin/ it gave me "MySQL said: #1045 - Access denied for user 'root'@'localhost' (using password: NO)". Any idea guys? Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted June 23, 2008 Share Posted June 23, 2008 You need to edit phpMyAdmins configuration. Look for a file called config.inc.php within phpmyadmins folder. Find the following line: $cfg['Servers'][$i]['auth_type'] = 'config' Change config to http Also add // infront of the $cfg['Servers'][$i]['username'] and $cfg['Servers'][$i]['password'] lines too. Save the config.inc.php file. PHPMyAdmin has now been configured to prompt for a username/password when you access http://localhost/phpmyadmin/ Quote Link to comment Share on other sites More sharing options...
iphetamine Posted June 23, 2008 Author Share Posted June 23, 2008 thanks a lot man, worked great! Quote Link to comment Share on other sites More sharing options...
iphetamine Posted June 29, 2008 Author Share Posted June 29, 2008 Ok, now for some reason wamp 2.0 stopped working. I opened IE and typed http://localhost/ and nothing came out, not even an error, as if there's no internet connection. How come? It just happened like that. ??? ??? Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted June 29, 2008 Share Posted June 29, 2008 Make sure Wamp is running, check the WAMP stats bar icon in the lower right hand of the screen. Quote Link to comment Share on other sites More sharing options...
iphetamine Posted June 29, 2008 Author Share Posted June 29, 2008 Yeah, it's running. I tried stopping all services and starting again, nothing happened. I also tried restarting all services, nothing. Also tried Go Online, still nothing. Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted June 29, 2008 Share Posted June 29, 2008 Strange, does http://127.0.0.1 load anything? If it does then it seems your Windows hosts file is at fault. Quote Link to comment Share on other sites More sharing options...
iphetamine Posted June 29, 2008 Author Share Posted June 29, 2008 It loaded Wamp Server Config with this on top: Notice: Undefined variable: projectContents in D:\wamp\www\index.php on line 194 So what's wrong here, I don't have that many lines?? Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted June 29, 2008 Share Posted June 29, 2008 So http://127.0.0.1 works by http://localhost doesn't? If that the case have at the hosts file (C:\WINDOWS\system32\drivers\etc). Make sure there is the following line in there: 127.0.0.1 localhost If its not added. Save the hosts file. Re-test http://localhost/ Quote Link to comment Share on other sites More sharing options...
iphetamine Posted June 29, 2008 Author Share Posted June 29, 2008 So http://127.0.0.1 works by http://localhost doesn't? If that the case have at the hosts file (C:\WINDOWS\system32\drivers\etc). Make sure there is the following line in there: 127.0.0.1 localhost If its not added. Save the hosts file. Re-test http://localhost/ Yes. and yes, that line IS already in the hosts file. I restarted all services and retested, but still I don't get anything. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.