Search code examples
mysqldatabasewebwebsite-hosting

What happens when you get a site that uses MySQL online?


I have created a site that uses MySQL and I want to get it online.

My question is:

  • What happens with the database that I created?
  • Will it automatically be saved in the host?
  • Will all the tables etc. remain the same?

Also, I have created an update module which connects to the database to store new data.

What happens in than case?

If anyone knows details about the whole process.

Please let me know!

Thanks in advance!


Solution

  • If you use local database for development, you need to export database from local database and import them into the database of your hosing provider or any other online database.

    If you developed your site using the online database like database provided by the hosting site, there will be data and database as it is.

    In your case the database is stored locally. So every change you make during development will be reflected only if your local database is imported to online database.