Importing database to server .

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
gautamz07
Forum Contributor
Posts: 331
Joined: Wed May 14, 2014 12:18 pm

Importing database to server .

Post 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 ?? .
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: Importing database to server .

Post 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.
Post Reply