天天看点

本地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! :)