远程导出:

mysqldump -P [端口] -h [IP] -u [用户] -p test>d:\test.sql

例如:

mysqldump -P 3306 -h 192.168.1.224 -u root -p test>d:\test.sql

 

远程导入:

mysql -h[IP] -P[端口] -u[用户] -p test<c:\test.sql

例如:

 mysql -h 192.168.1.224 -P 3306 -u root -p test<c:\test.sql

相关文章:

  • 2021-06-18
  • 2022-02-18
  • 2021-09-11
  • 2022-02-19
  • 2021-10-24
  • 2022-01-31
猜你喜欢
  • 2021-12-13
  • 2022-03-05
  • 2022-12-23
  • 2022-12-23
  • 2021-12-13
  • 2021-09-01
相关资源
相似解决方案