connecting database

Reply

Join Date: Jul 2007
Posts: 15
Reputation: gopi kannan is an unknown quantity at this point 
Solved Threads: 1
gopi kannan gopi kannan is offline Offline
Newbie Poster

connecting database

 
0
  #1
Feb 22nd, 2008
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..
Reply With Quote Quick reply to this message  
Join Date: May 2005
Posts: 514
Reputation: techniner is an unknown quantity at this point 
Solved Threads: 19
techniner techniner is offline Offline
Posting Pro

Re: connecting database

 
0
  #2
Feb 22nd, 2008
username is root by default.

  1. mysql_connect("localhost","root","")
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 3,760
Reputation: nav33n is a jewel in the rough nav33n is a jewel in the rough nav33n is a jewel in the rough 
Solved Threads: 332
Moderator
Featured Poster
nav33n's Avatar
nav33n nav33n is offline Offline
Senior Poster

Re: connecting database

 
0
  #3
Feb 22nd, 2008
The default user for the database is root. Try giving ("localhost","root",""). That should work.
Ignorance is definitely not bliss!

*PM asking for help will be ignored*
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 3,760
Reputation: nav33n is a jewel in the rough nav33n is a jewel in the rough nav33n is a jewel in the rough 
Solved Threads: 332
Moderator
Featured Poster
nav33n's Avatar
nav33n nav33n is offline Offline
Senior Poster

Re: connecting database

 
1
  #4
Feb 22nd, 2008
Originally Posted by techniner View Post
username is root by default.

  1. mysql_connect("localhost","root","")
Grr! I got beaten by a few seconds again !
Ignorance is definitely not bliss!

*PM asking for help will be ignored*
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC