Forum Moderators: open

Message Too Old, No Replies

HELP! Mysqlcc wont connect to mysqlserver on localhost

mysqlcc, mysql, connect

         

diegomh7

4:07 pm on Apr 13, 2006 (gmt 0)

10+ Year Member



Please help guys n girls,

ive instaled apache on my laptop, i then installed php5 and it worked to my surprise then i installed mysql server into the root of the apache server folder on C:\

Problem =

i can run the winmysqladmin and see the test database, but i want to be able to access this database on localhost using php and edit the tables using mysqlcc GUI.

Ive tried to simply connect via the htdocs folder and sticking in a conn.php file but it throws up this error

Fatal error: Call to undefined function mysql_connect() in C:\Program Files\Apache Group\Apache2\htdocs\conn.php on line 10

and when i try to connect using mysqlcc the GUI i get an access denied error for user myusername@localhost using password = yes.

Hmmmm as you can see im pretty new to this area of development and im stressing,

could someone tell me how the hell to connect using mysqlcc to the new database i installed on c drive apache folder,

i also need to know how to create a new databases using mysql. command prompt?

ohhhhhhhh i dunno ill leave this in the trusted hands of the internet masters,

me x

chrisrock79

8:13 pm on Apr 13, 2006 (gmt 0)

10+ Year Member



Hi,
I'm also new to this but if you would care to post your conn.php code I'm sure I should be able to help out.

jatar_k

8:16 pm on Apr 13, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



try this thread from the PHP library [webmasterworld.com]

Troubleshooting Steps for PHP/Apache on windows [webmasterworld.com]

diegomh7

3:06 pm on May 2, 2006 (gmt 0)

10+ Year Member



hi guys im still having troule with this, the other thread was ok but i kinda ended up going around in circles, could you tell me what you need to know to help me a little more on the matter as i still cant connect to the mysql db from my pc localhost apache server on win xp, in an ideal world using msqlcc to edit the database,

please help guys as im getting a right fo%*£Wn headache from it all,

regards,

Diegomh7

chrisrock79

3:48 pm on May 2, 2006 (gmt 0)

10+ Year Member



Your error message says your trying to use an undefined function, in this case 'mysql_connect'. I am going to assume that you didn't include the database name, your username and password.

Post the code you are trying to use (minus the passwords of course) and let us take a look at it.

Take a look at this to see if it helps

[us3.php.net...]