Vince1907 wrote:May they be assigning a directory to everyone in their own account(web space) to hold their session data?
Another point,you say you can keep your database aynwhere so I can have it on my webspace?But then am I also supposed to setup mysql or is it something provided by the hosting provider and I am just supposed to put the files related to my database to my web space?
How mysql_connect(“localhost”,”username”,”password”) will change in that case?I am a bit confused.
MySQL is a server, just like any other server. When you say "localhost" you're saying "connect to the MySQL server on this machine". Most good hosting packages provide you with a MySQL database, but it may be running on a different machine on the hosting provider's network. Your hosting provider will tell you what address the MySQL server resides at, and you put that address in your code.
Vince1907 wrote:What if I want to use my own database?Is it possible to connect to MySQL server from the address they will tell to me but use a MySQL database from my web space?
Yes, but it's a very bad idea. If your web server is not on the same LAN as your MySQL server, you're going to have serious latency problems. Use the database that your host provides you with. It will be faster and more reliable, and there aren't any advantages to hosting it yourself over letting them host it.
Users browsing this forum: No registered users and 0 guests