wamp config problem

hi guys
em trying to config wamp server but i am unable to do so so plz guide me…
em stuck in this problem…plz tell me solution…

Error

MySQL
Cannot connect: invalid settings.
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.

you need to use the wamp mysql user andm password

Is it user = root and empty password ?
Or do you have to add your own to the mysql first

You shouldn’t have to configure anything with wamp unless you’re trying to let the outside world in. Just reinstall it using the default configuration and it should work.

but by default, mysql doesn’t come with a password.

I’m also have some trouble with a config issue with the wamp server will not read the php correctly. I set up the databases as db_name with multiple tables in SQL and set up database.php to connect to mysql. While using this: [php]<?php
$dbhost = ‘localhost’;
$dbuser = ‘root’;
$dbpass = ‘’;

$conn = mysql_connect($dbhost, $dbuser, $dbpass) or die (‘Error…’);

$dbname = ‘db_name’;

mysql_select_db($dbname);
?>[/php]
Why will this not work, should I add a password, I didn’t think this was an issue if I’m not using it over the internet. Any suggestions?

Not the best idea to hijack someone else’s thread with something unrelated, but to answer the question, the code looks correct, make sure the server is online. Click on the wamp icon, on the bottom of the menu there’s an option to put the server online, click on it and make sure it doesn’t stay red or yellow.

Sponsor our Newsletter | Privacy Policy | Terms of Service