Possible, yes.As title mentioned, it is possible to use mysql server (databases) from another hosting provider.
I.e, I want to host my php sites in a hosting and connecting to mysql server on another hosting? if yes, how to do?
why you want to do that? as RDO said it is possible but usually for this kind of things you want it to run locally.... if you use remote sql the load time for your web page will take much more time...As title mentioned, it is possible to use mysql server (databases) from another hosting provider.
I.e, I want to host my php sites in a hosting and connecting to mysql server on another hosting? if yes, how to do?
Yes, you can use it but its depend on your hosting provide , if they allow remote mysql connection or not.As title mentioned, it is possible to use mysql server (databases) from another hosting provider.
I.e, I want to host my php sites in a hosting and connecting to mysql server on another hosting? if yes, how to do?
I will keep this in mind.Possible, yes.
Recommended, no!
Consider the latency between the two hosts. Even a short 50ms latency, can really slow your website down when your loading pages that require multiple database queries!
I just want to swtich to another host for using mysql server, in the case, the current hosting is downed.why you want to do that?
Could you please share me codes or how to do this in details?Yes, you can use it but its depend on your hosting provide , if they allow remote mysql connection or not.
In mysql database configuration file simply change mysql server name from localhost to remote mysql server IP address and you are ready to make connection from php files hosted server to remote mysql database server.
Let me know, if you face any issue.