mysql的data路径尽量不要设置到其他地方,最好设置在mysql路径下的data目录,不然1067错误是不会消失的!
mysql配置文件内容如下:
[client]port = 3306default-character-set=utf8[mysql]default-character-set=utf8[mysqld]port = 3306character-set-server = utf8default-storage-engine = INNODBkey_buffer = 16 Kmax_allowed_packet = 1 Msort_buffer_size = 64 Kread_buffer_size = 256 Kread_rnd_buffer_size = 256 Knet_buffer_length = 2 Kthread_stack = 64 Kbasedir=D:\Green\mysql- 5.6 . 22 -winx64datadir=D:\Green\mysql- 5.6 . 22 -winx64\datasql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
cmd命令行,mysql服务的安装命令(切记以管理员身份打开命令行窗口):
D:\Green\mysql-5.6.22-winx64\bin>mysqld -install
D:\Green\mysql-5.6.22-winx64\bin>net start mysql D:\Green\mysql-5.6.22-winx64\bin>net stop mysql