Mysql User/pass
Posted by: greeneel (69.57.247.---)
Date: February 26, 2006 09:07PM

Hi,

I installed wamp5 1.4.4 and now learning php from beginner, I am using the e-book Beginning PHP, Apache, MysqlWeb Development.
Theirs a page in there where ive reached that requires creating a database, I follow teh steps exactly and it seems the reason why its not completing is because the mysql has a password or something thats different from whats in my scripts..

My question is: does wamp install mysql with a username and password when wamp is installing?
If not how can i set these up?


Thanks in advance


Options: ReplyQuote
Re: Mysql User/pass
Posted by: CyberSpatium (---.hsd1.or.comcast.net)
Date: February 27, 2006 09:04AM

WAMP comes with the MySQL root account with no password set. So, you need to use mysql_connect function like this:

mysql_connect ('localhost', 'root', '')

Options: ReplyQuote
Re: Mysql User/pass
Posted by: greeneel (69.57.247.---)
Date: February 27, 2006 09:18AM

thx bro

Options: ReplyQuote


Sorry, only registered users may post in this forum.