We can use the scp command of Linux (scp cannot be used in Windows), plus mysqldump that comes with mysql, to quickly complete the database migration. Export the local database (music_db) as a sql file (music_db.sql) Use the scp command to send the sql file to the server scp music_db.sql remote login account@server ip:server directory/music_db.sql SSH login server ssh remote login account@remote ip Log in to mysql on the server mysql -uroot -p Create a database with the same name (music_db) in the server's mysql, and then exit mysql
Import the music_db.sql file transferred by the scp command into the database of the same name just created Finish Some students may ask if there is a simpler way. Don’t tell me there is! ! ! Method 2 The premise is that you have used Navicat to connect to the remote server. . . . . For methods to connect to a remote server, see another blog: Remote connection to a server database After connecting to the server, you can see the server database. We can right-click on the local data or server database, and the following will appear: After selecting Data Transfer, you can see the following: Just fill in the local and server related information to be transferred, click Start to display the log information, and wait for the upload to be completed! The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM. You may also be interested in:
|
<<: JavaScript to implement the countdown for sending SMS
>>: Alibaba Cloud Server Tomcat cannot be accessed
The display without the effect picture is just em...
First, let's talk about why we use provide/in...
Idea: Just sort randomly first and then group. 1....
Table of contents Preface 1. Understanding with e...
If you have just come into contact with Linux, th...
Today I saw a blog post about input events, and o...
Table of contents 1. Application Lifecycle 2. Pag...
iOS 1. URL scheme This solution is basically for ...
This article uses examples to illustrate the usag...
Vue implements the palace grid rotation lottery (...
MySQL DATE_ADD(date,INTERVAL expr type) and ADDDA...
<br />When we design web pages, we always en...
Table of contents 1. Docker distributed lnmp imag...
Docker download address: http://get.daocloud.io/#...
[LeetCode] 176. Second Highest Salary Write a SQL...