Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

connect.php and wamp


ghost's Avatar
0 0

how do i connect to phpmyadmin using wamp

heres my connect.php

<?php $host = "localhost"; $user = "root"; //what should i put here? $pass = "pass"; //what should i put here too? $db = "tutorials";
?>

i get the could not connect to localhost using password yes and all that crap


ghost's Avatar
0 0

<?php $host = "localhost"; $user = "root"; $pass = "pass"; $db = "tutorials"; mysql_connect($host, $user, $pass) or die(mysql_error()); mysql_select_db($db) or die(mysql_error()); ?>


ghost's Avatar
0 0

Your talking about MySQL, right? Its localhost, then the database password and the database username.


ghost's Avatar
0 0

Use the Username and Password combo that you use to login to PHPMyAdmin. Along with what Scavix said.

Howie


ghost's Avatar
0 0

Username is "root" an there is no password (by default)


ghost's Avatar
0 0

thx i got it forgot to change password through phpmyadmin and config.inc