MEMBERIKAN
HAK AKSES :
mysql>
GRANT ALL PRIVILEGES
->
ON namadatabase.*
->
TO sani@localhost
->
IDENTIFIED BY 'password';
MEMBERITAHU
KE SISTEM MYSQL :
mysql>
FLUSH PRIVILEGES;
BACKUP
DATABASE :
/mysqldump
-u root -p NamaDatabase > /home/siswa/namafile.sql
RESTORE
DATABASE:
- Buat database kosong,ex : dblatihan
- restore → mysql -u root -p dblatihan < lokasi&nama file yang sudah di backup
Tidak ada komentar:
Posting Komentar