Page 1 of 1
connecting to MySQL
Posted: Sat Dec 02, 2006 8:40 pm
by Mythic Fr0st
I used easyphp to get MySQL and Apache
when I try and connect it denies me, what stuff do I have to put in?
$con = mysql_connect("localhost","(NAME??)",(Password is here"");
can anyone tell me?
Posted: Sat Dec 02, 2006 8:43 pm
by evilchris2003
remove the brackets around name and password
Posted: Sat Dec 02, 2006 8:48 pm
by Mythic Fr0st
no, I meant them as questions
Name??? like what goes there, a name?
$con = mysql_connect("localhost","(WHATGOESHERE)",(DOESPASSWORD go here?");
oh and considering i havent setup MySQL and I dont think I can, because I downloaded it with Easyphp, so whats the default name & passwords that come?
Posted: Sat Dec 02, 2006 8:50 pm
by evilchris2003
oh sorry
you need
a location (localhost)
and a username (name)
and password to login into the database
these are either given to you by your system administrator or defined by you when you install the database
Posted: Sat Dec 02, 2006 8:53 pm
by Mythic Fr0st
oh and considering i havent setup MySQL and I dont think I can, because I downloaded it with Easyphp, so whats the default name & passwords that come?
I am the admin O_O dont know my own pw...
so, can I use command prompt to get the password & username from admin?
Posted: Sat Dec 02, 2006 8:58 pm
by evilchris2003
i would be inclined to try
admin and password respectively
or admin for both but im sure that even an all in 1 setup (i assume thats what you have) will allow you to define these for yourself
do you have the mysql admin tool switched on because that will tell you your password
look like a traffic light in your Task bar
Posted: Sat Dec 02, 2006 9:06 pm
by William
http://www.easyphp.org/faq.php3#6 - The default username is "root", password is "" and the host is obviously "localhost".

Posted: Sat Dec 02, 2006 9:07 pm
by Mythic Fr0st
Nope, dont have a traffic light, or anything like it, the easyphp, has PhpMyAdmin, im not sure if
(Task bar, you mean where say, msn or yim or icq or internet etc.. is displayed?)
WOO nvm found it, thanks alot for your help!
Posted: Sat Dec 02, 2006 9:09 pm
by evilchris2003
Haha no problem whack [solved] on the front of your topic using the edit button