How to Backup and Restore a MySQL database using mysqldump
## To dump the database "javauser" at server sisifo:
[javauser@sisifo MYSQL]$ mysqldump -u root -padm3FEDORA javauser > sisifo_javauser_dump.sql
[javauser@sisifo MYSQL]$
## Transferring the dump file sisifo_javauser_dump.sql from server sisifo to server thanatos:
[javauser@sisifo MYSQL]$ sftp javauser@thanatos
Connecting to thanatos...
sftp> put sisifo_javauser_dump.sql
Uploading sisifo_javauser_dump.sql to /home/javauser/sisifo_javauser_dump.sql
sisifo_javauser_dump.sql 100% 21MB 21.3MB/s 00:01
sftp> quit
[javauser@sisifo MYSQL]$
## To restore the database "javauser" at server thanatos, using this file sisifo_javauser_dump.sql:
mysql> use javauser;
Database changed
mysql> source sisifo_javauser_dump.sql
Here are quick notes about Linux and related topics, written in a simple and quick way exactly when problems arise and are being resolved. Any suggestion or question is welcome. Please, e-mail me by using eiderdoo at gmail.com.
Subscribe to:
Post Comments (Atom)
About Me
Blog Archive
-
▼
2014
(12)
-
▼
June
(12)
- How to configure a service to be automatically sta...
- How to Backup and Restore a MySQL database using m...
- How to establish a trust relationship for ssh conn...
- How to install Java ( JDK ) on Linux Fedora
- MySQL Error Number 1130 - Host is not allowed to c...
- Linux Fedora - Editing PATH and other variables at...
- How to Install XAMPP in FEDORA LINUX
- "No route to host" when trying do telnet into new ...
- To install a rpm package
- List all packages installed with yum
- "Access denied" when trying to login into a Linux ...
- ssh connect to host port 22 Connection refused
-
▼
June
(12)
No comments:
Post a Comment