Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

How to Connect Server Database from Localhost

It is very easy to Connect Server Database from localhost. In this tutorial, we will see how to connect server databases from local server.

 To connect to server db mean to use remote MySQL connection, First of all we have to activate remote MySQL from cPanel.

Login to cpanel.

Go to remote MySQL option.

Add wildcard(%) and save.

Now simply we need to change connection parameters in localhost connection file.Then we have to include connection file in all other pages where need MySQL connection.

Example:


The post How to Connect Server Database from Localhost appeared first on PHPCluster.



This post first appeared on Best PHP Programming Blog, Blog For PHP Developers, PHP Tutorial,PHP Blog For Beginners, please read the originial post: here

Share the post

How to Connect Server Database from Localhost

×

Subscribe to Best Php Programming Blog, Blog For Php Developers, Php Tutorial,php Blog For Beginners

Get updates delivered right to your inbox!

Thank you for your subscription

×