Share mysql database -
I see two servers in a server from the share server, for the sample that a mysql database server is related to shopping Two shopping websites from Hostgator.com and other hosting companies not hosting the hostgator company are the server, my question is that it is possible to enter another company, using the other two databases from the shopping site server to the other company Do it!
If possible, how can we use it! What we call it!
Use:
$ con = new mysqli ("SERVER_IP "," Db_user "," db_pass "," db "); Instead of
$ con = new mysqli ("localhost", ...);
You need to create a user for the database with host% permissions and you need to allow remote access to the database, see here:
< / P>
Hope you wanted this
Comments
Post a Comment