Web Design Forum  

Go Back   Web Design Forum > Web Software > Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 04-20-2012, 09:22 PM   #1
Silver Member
 
Join Date: Feb 2010
Location: Satellite-Town, Lagos, Nigeria, West-Africa.
Posts: 110
Default Trouble Configuring Password for MySQL

Hello friends,
im not that perfect in php yet. However, i encountered a problem: when i connected to database using this-
mysql_connect($localhost, $root, $password); i saw an error message that "access denied" and my [default] password is "yes". Please friends, how do i configure it so it runs without hitches.
goldenwaters is offline   Reply With Quote
Old 04-22-2012, 08:30 PM   #2
New Member
 
Join Date: Aug 2010
Posts: 6
Default

Are you sure that you've set a password?

If this is a default installation, your details will be "localhost", "root", ""

i.e. there is no password by default.

mysql_connect("localhost", "root", "");
WAYNEWEX is offline   Reply With Quote
Old 04-24-2012, 09:57 PM   #3
Silver Member
 
Join Date: Feb 2010
Location: Satellite-Town, Lagos, Nigeria, West-Africa.
Posts: 110
Default

Thanks bro, you are correct. I have found a way out. My password should have been this: $password = ""; and i wrote this: $password = " "; it has been resolved.

Thanks,
Golden Waters
goldenwaters is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 08:52 AM.


Camera Forum - Computer Forum - Web Design Forum

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO 3.6.0 ©2011, Crawlability, Inc.