Mysql Login details.
Posted by: Mikey_xd (---.glw-bng-011.adsl.virginmedia.net)
Date: July 21, 2009 10:10AM

Hi. I was wondering what the deafult mysql user details are. As Im making a script and I need to connect to a database but I have no idea what the credentials are for the user.

Options: ReplyQuote
Re: Mysql Login details.
Posted by: yfastud (Moderator)
Date: July 21, 2009 01:44PM


Options: ReplyQuote
Re: Mysql Login details.
Posted by: Mikey_xd (---.glw-bng-011.adsl.virginmedia.net)
Date: July 21, 2009 02:07PM

I don't need to set up a pass. I just need to defult host username and passowrd so I can put it into a php script.

Options: ReplyQuote
Re: Mysql Login details.
Posted by: yfastud (Moderator)
Date: July 21, 2009 02:14PM

you need to setup db before you can implement it in your script, and you can skip setup password if don't want to winking smiley
btw, default user is root and no password and no db either, except main mysql to run mysql itself

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides



Edited 2 time(s). Last edit at 07/21/2009 02:31PM by yfastud.

Options: ReplyQuote
Re: Mysql Login details.
Posted by: Mikey_xd (---.glw-bng-011.adsl.virginmedia.net)
Date: July 21, 2009 03:14PM

Something still isint working. This is my code:
mysql_connect("localhost","root",""winking smiley;
mysql_select_db("main"winking smiley;

and it comes out with this error:
Warning: mysql_connect() [function.mysql-connect]: Connecting to 3.22, 3.23 & 4.0 is not supported. Server is 3.23.52-nt in C:\wamp\www\search\process.php on line 15

Warning: mysql_connect() [function.mysql-connect]: Connecting to 3.22, 3.23 & 4.0 servers is not supported in C:\wamp\www\search\process.php on line 15

Warning: mysql_select_db() [function.mysql-select-db]: Connecting to 3.22, 3.23 & 4.0 is not supported. Server is 3.23.52-nt in C:\wamp\www\search\process.php on line 16

Warning: mysql_select_db() [function.mysql-select-db]: Connecting to 3.22, 3.23 & 4.0 servers is not supported in C:\wamp\www\search\process.php on line 16

Warning: mysql_select_db() [function.mysql-select-db]: A link to the server could not be established in C:\wamp\www\search\process.php on line 16

Options: ReplyQuote
Re: Mysql Login details.
Posted by: yfastud (Moderator)
Date: July 21, 2009 03:45PM

there is no db name "main" if you didn't create it yet sad smiley

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote
Re: Mysql Login details.
Posted by: Mikey_xd (---.glw-bng-011.adsl.virginmedia.net)
Date: July 21, 2009 03:46PM

I have created it.

Options: ReplyQuote


Sorry, only registered users may post in this forum.