...

View Full Version : MySQL connection



dweed-Ly
08-07-2006, 08:13 AM
Hi all,

I just install PHP5 and MySQL5. They all work but I can't connect to MySQL via php connection (mysql_connect).

Could you tell me what is the matter?

Thanks for your answer.

Dweedly

Fumigator
08-07-2006, 08:35 AM
I left my crystal ball at the office. Can you give us the error message PHP is giving you at least?

dweed-Ly
08-07-2006, 08:50 AM
First thanks for your answer.

The massage error is :

Fatal error: Call to undefined function mysql_connect()

GJay
08-07-2006, 09:31 AM
you need to install the php mysql extension:
http://php.net/mysql

dweed-Ly
08-07-2006, 10:06 AM
I'm going to check again, but I'm sure I'm already do that.

dweed-Ly
08-15-2006, 11:56 AM
I have checked and do all the necessary steps to connect MySQL server, but I still can't connect to MySQL with my Windows XP Home edition. But with my windows XP professional, I can connect to MySQL server. I don't understand why.

I hope you can help me.

Thanks for your answer.

Dweedly

guelphdad
08-15-2006, 02:25 PM
Check out this article (http://www.ricocheting.com/server/) and make sure you have followed the proper steps for installation. I installed recently using it and had no problems. in the past I've had many difficulties with installation so at least you know you aren't alone in that regard. :)

dweed-Ly
08-23-2006, 08:57 AM
I would like to thank you for your article, it is interesting and it work too, now I can explorer more about MySQL. Maybe I'll have some more questions to ask you.

Dweedly

DELOCH
08-23-2006, 04:54 PM
Until you post your code, we are unable to help you,

but i had a problem in connecting at first because i thought mysql dbs were like mdb databases and were located in an area awaiting for connection.

wrong, they are located at the same place, http://localhost/ with the username 'root'

for you to explore further please install SQLYog from www.sqlyog.com

bcarl314
08-23-2006, 05:12 PM
What does PHP info tell you? Create a file named phpinfo.php that contains...



<?php
phpinfo();
?>


and place it in your webroot. Then go to: http://localhost/phpinfo.php

You should see a block of configuration options under a mysql heading like mysql.connect_timeout etc.

If you don't see that, then you don't have the php libs installed.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum