简体   繁体   中英

How to move a local MySql database on a remote server

I have a question about mysql db. I created the site locally and now want to move it to the server. I have created websites. Doing import and export of the database, but now I have a problem. Previously, I always enjoyed the various panels of access (admin). But now the provider gave me only the name & password of the database and ftp. I do not have any control panel (for example cPanel) and I do not understand how to work with the database now. Thanks for any help

MySQL Workbench has a nice graphical interface for administration of MySQL databases.

I would recommend using a GUI program to access the database and work with it, since it will make the transition much easier if you're used to using a control panel. You can get GUI clients that run as programs on your computer, instead of running on the remote server as cPanel and phpMyAdmin do. This means that they will work regardless of the provider if you have the username and password.

There's many MySQL front-ends out there, but two I would recommend are the official MySQL Workbench if you're running Windows or Linux, and Sequel Pro if you're running Mac (MySQL Workbench can also run on Mac, but I personally prefer Sequel Pro). Both are free.

phpMyAdmin is a tool that you could install on the web server, and if you install it, you could then import the data that you've exported from your local database.

http://www.phpmyadmin.net/home_page/index.php

Alternatively, and I'm guessing the answer to this is "no" but I'll throw it out there anyway, do you have SSH access to the server at all? If so, you could just cat the file and import it straight in to your database.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM