备份数据库

  1. 授权:GRANT PROCESS ON *.* TO 'username'@'localhost';
  2. 导出:mysqldump -u [用户名] -p [密码] [数据库名] > [导出的文件名].sql