Escolar Documentos
Profissional Documentos
Cultura Documentos
WIJAYA
Backup using phpMyAdmin
1. Open phpMyAdmin
SONY S. WIJAYA
4. Click Kirim (Go), then the database will be downloaded.
SONY S. WIJAYA
Restore using phpMyAdmin
1. To restore (import) a database via phpMyAdmin, choose the database that will be where
the data imported to.
2. Then, click on the Import tab
SONY S. WIJAYA
SONY S. WIJAYA
SONY S. WIJAYA
Backup using MySQL Administrator
1. Open MySQL Administrator and fill in the form based on MySQL service server and user
credentials
SONY S. WIJAYA
SONY S. WIJAYA
4. Select which databases that will be backed up. After that, click on the right-pointing
arrow to mark the database for backup. Finally, click on the Execute Backup Now to
start the database backup.
5. Then, choose the location for the backup file. After that, click save. The database
successfully backed up.
SONY S. WIJAYA
Restore using MySQL Administrator
1. Click on the Restore Button
File button.
SONY S. WIJAYA
3. After file loaded, choose the target schema. If the database will be backed up in new
schema, choose New Schema and give it a name. If the database will be backed up in
original schema, choose Original Schema. Finally, click Start Restore.
4. If the restore process success, the new schema from backed up database will appear.
SONY S. WIJAYA
Backup using MySQLDump
1. First of all, open Command Prompt and change directory into bin folder of MySQL
b. Type mysqldump -u root p --all-databases > [directory destination and file name]
SONY S. WIJAYA
4. Backup a specific table
a. Choose a database and the table that will be backed up.
b. In CMD, type
mysqldump -u root p [database name] [table name] > [directory destination and
file name]
SONY S. WIJAYA
Restore using MySQLDump
1. First of all, create new database
2. Then, open Command Prompt and change directory into bin folder of MySQL
3. Type mysql -u root -p [database destination name] < [backup file name and location]
4. After that, enter the password
SONY S. WIJAYA
Backup using MySQL
1.
2.
3.
4.
b. The result will be appearing as a txt file in the database folder. If the .txt file opened,
the records will appear in one line.
SONY S. WIJAYA
c. To export the students table in CSV format with CRLF-terminated lines, write mysql
query:
SELECT * FROM [table name] INTO OUTFILE '[filename.txt]'
FIELDS TERMINATED BY ',' ENCLOSED BY '"'
LINES TERMINATED BY '\r\n';
SONY S. WIJAYA
Restore using MySQL
1. Open the MySQL Client
2. First, use the database