登录mysql:
>mysql -uusername -ppwd
备份mysql:
>mysqldump -uusername -p database > /root/database.sql
登录mysql:
>mysql -uusername -ppwd
备份mysql:
>mysqldump -uusername -p database > /root/database.sql
转载于:https://www.cnblogs.com/dapachong/archive/2012/02/03/2336655.html