/home/haqen

konsol üzerinden mysql dump’ı almak

by admin on May.30, 2008, under veritabanı sistemleri

mysql kullanırken her zaman bir gui aracı kullanmışımdır. ancak geçenlerde konsol ile dump almam icap etti. napacam derken Sarp yardımcı oldu. ben de buraya not edeyim de bi daha sormayım dedim :)

mysqldump -h 192.168.1.2 -u root -p db tablo1 tablo2 tablo3 > db.dump.sql

komut satırı ile db şemasındaki tablo1, tablo2 ve tablo3′ün dump’ını db.dump.sql dosyasına alıyoruz. herhalde hata yoktur bunda çünkü bir daha kullanmaya ihtiyacım olmadı :)

edit: aldığınız dump’ı geri yüklemek için de

mysql -u root -ppassword dbname < db.dump.sql

yazmak yetiyor

No comments for this entry yet...

Leave a Reply

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!