对应下载链接:http://dev.mysql.com/downloads/windows/installer/5.7.html
安装后打开安装目录,我的是C:\Program Files\MySQL\MySQL Server 5.7
修改文件my-default.ini 为 my.ini。
打开my.ini 在sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES 下面加下
[mysqldump] user=root password=你的密码
@echo off set "Ymd=%date:~,4%%date:~5,2%%date:~8,2%" cd C:\Program Files\MySQL\MySQL Server 5.7\bin\ mysqldump -h 127.0.0.1 -P7488 tks > D:\backup\tks_%Ymd%.sql @echo on @pause
Warning: Using a password on the command line interface can be insecure.
mysqldubmp get ERROR 2003 Can't connect to MySQL server on 'localhost' (10061)