Jump to content

Mysql Username And Password problem


narek
 Share

Recommended Posts

Hello..In the following code i would like to know what i am supposed to type as my username and password ? Or how can i set that values??php$con = mysql_connect("localhost","username","password");if (!$con){die('Could not connect: ' . mysql_error());}?>

Link to comment
Share on other sites

Hello..In the following code i would like to know what i am supposed to type as my username and password ? Or how can i set that values??php$con = mysql_connect("localhost","username","password");if (!$con){die('Could not connect: ' . mysql_error());}?>
Fill in "root" as username and nothing in password, like this -> ""Code:
<?php$con = mysql_connect("localhost","root","");if (!$con){die('Could not connect: ' . mysql_error());}?>

Edited by Gyohdon
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...