1、登陆 mysql -u root -p

2、修改mysql root密码  mysqladmin -u root -p password 

3、mysqldump -u root -p test > test.sql 将test库导出为文件test.sql

4、导入mysql -u root -p test < test.sql 

 

相关文章:

  • 2022-02-08
  • 2022-01-25
  • 2022-03-09
  • 2022-12-23
猜你喜欢
  • 2022-02-25
  • 2021-08-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-19
  • 2021-11-15
相关资源
相似解决方案