1.mysqld: Can't create directory 'D:\mysql\data\' (OS errno 2 - No such file or directory)
把目錄改成反斜杠
2.MySQL登陸報錯
更改my.ini文件:
#sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES 這個有問題,在創建完新用戶登錄時報錯
sql_mode=NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
3.更改root密碼,報無password字段
c:>mysql –uroot
mysql>show databases;
mysql>use mysql;
mysql>UPDATE user SET authentication_string=PASSWORD("123456") WHERE user='root';
mysql>FLUSH PRIVILEGES;
mysql>QUIT