linux:bash:script-restore-per-table-ke-database-mysql
This is an old revision of the document!
Error loading plugin box
ParseError: syntax error, unexpected token "{"
More info is available in the error log.
ParseError: syntax error, unexpected token "{"
More info is available in the error log.
Error loading plugin changes
ParseError: syntax error, unexpected token "{"
More info is available in the error log.
ParseError: syntax error, unexpected token "{"
More info is available in the error log.
Contoh Script Restore Database dari Table per Table MySQL
Kadang ya kita perlu restore database mysql tabel per tabel sql file, maka berikut ini adalah contoh scriptnya
nama_table=/table.txt
while read nama_table; do
if [ ! -z "/root/db/$nama_table.sql" ]; then
tfile="/root/db/${nama_table}.sql"
echo $tfile
mysql -u user_mysql --password="paswwd-mysql" nama_db < $tfile
fi
done<$file
isi dari table.txt adalah
nama-table1.sql nama-table2.sql nama-table3.sql
dst…
Layanan
Harga Domain .COM | Harga Domain .ID | Shared Hosting | Email Hosting | MySQL Hosting |linux/bash/script-restore-per-table-ke-database-mysql.1744507588.txt.gz · Last modified: by kbadmin
