Jump to content

No Database connection


Clubby2008

Recommended Posts

I am trying to use PHP mySQL with Dreamweaver. Whenever I try to create a connection I am told Your PHP server doesn't have the MySQL module loaded or you can't use the MySQL_(P) connection functions.

 

I have configured extensions, I have tried this with out Dreamweaver, when you request a DB operation it just ignores all the remaining code. I am following a tutorial in PHP and MySQL Web Development by Luke Welling and Laura Thomson.

 

There must be a trick with the PHP installation I am sure but I cannot find it, getting a bit cheesed off now.

 

Thanks

Julian

Link to comment
https://forums.phpfreaks.com/topic/138593-no-database-connection/
Share on other sites

i believe most Servers/Host do not allow external MySQL connections. If that is the case I would suggest runing a PHP/MYSQL installation on your computer, try XAMMP or EasyPHP both are easy install, low maintanance, great for development/testing/learning enviornments.

I have Appache server running locally with Mysql as suggested in the book I am using, I have followed all the setup notes but there is obviously something wrong still.

 

 

You'll also need PHP installed and setup with Apache. Have you done this yet?

 

Also ensure you have saved your PHP code to file which ends in .php (eg filename.php NOT filename.html). Also to run your PHP code go to http://localhost/filename.php. Do not load the file directly into the browser (eg file:///C:\path\to\file.php) otherwise the PHP code will not work.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.