天天看點

本地mysql傳到伺服器上,如何将本地MYSQL資料庫上移到遠端資料庫伺服器

本地mysql傳到伺服器上,如何将本地MYSQL資料庫上移到遠端資料庫伺服器

I have a local MYSQL DB running under WAMP that I need to move up to my production DB server. New to MySQL and need to know the best way to get this DB moved up.

解決方案

Open up your database in phpMyAdmin and then select Export from the menu. Scroll down and select the Save as file checkbox and then press Go.

Now open up the database in phpMyAdmin on the production server (Note: you will need to create the database first) and then select Import from the menu. Browser to the file you saved and press Go.

If everything goes well you should now have a mirror image of your database on the production server! :)