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.
Related Articles
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