Backup / restore MySQL din linie de comanda

Pentru a exporta BazaDate intr-un fisier dbdump.sql

mysqldump BazaDate -u user -ppassword > dbdump.sql

Pentru restore BazaDate din dbdump.sql

mysql BazaDate -u user -ppassword < dbdump.sql

Leave a reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>