iam using wamp server 2....i did not give any usernmae or password for connecting sqlserver
during the process of installation..now when i tried to connect my database through php script using mysql_connect("localhost","","") iam not getting connected..it displays access denied..
how can i get connected to my database..kindly provide help..

Recommended Answers

All 3 Replies

username is root by default.

mysql_connect("localhost","root","")

The default user for the database is root. Try giving ("localhost","root",""). That should work.

username is root by default.

mysql_connect("localhost","root","")

Grr! I got beaten by a few seconds again ! :P

commented: mote, LOL, jaldi bhaaga karr :P +4
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.