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
<br />The page uses UTF8 encoding, and the h...
1. After connecting and logging in to MySQL, firs...
As one of the most commonly used and important ut...
MySQL 5.7 installation We are learning MySQL data...
Route Jump this.$router.push('/course'); ...
the term: 1. VM: Virtual Machine step: 1. Downloa...
Before learning awk, we should have learned sed, ...
async function and await keyword in JS function h...
Table of contents 1. Auxiliary functions 2. Examp...
Preface Engineers working in the Linux environmen...
If you're collecting information from your us...
1. First find the Data file on the migration serv...
Table of contents 1. The default focus is on the ...
In this article, we’ll explore how async/await is...
In summary: 1. Consider performance when designin...