Page 1 of 1

Importing database to server .

Posted: Fri Oct 10, 2014 7:11 pm
by gautamz07
Ok so i usually practice PHP using Xampp , now , i'd like my PHP script to be tested on a live server . i can upload all my scripts to my server , but what about the database ?? how is that done ? which database will the scripts be interacting with ?? .

Re: Importing database to server .

Posted: Fri Oct 10, 2014 7:54 pm
by Celauran
You can export your dev database and them import it on the live server. What you use to do that is a matter of personal preference. Sequel Pro, HeidiSQL, even phpMyAdmin will do the job. Which database the script interacts with is whichever one you tell it to. You're the one configuring the connection. 'localhost' always refers to the machine the script is running on, but you could connect to an external server just as easily.