问题1:Navicat连接MySQL 10061错误
解决:cmd命令行重新登录mysql服务器
问题2:在cmd命令行输入 mysql -u root -p 登录mysql服务器,返回”Can't connect to MySQL server on localhost (10061)”错误
即,无法连接到“本地主机”(10061)上的MySQL服务器->未安装mysqld服务器
解决:
1)安装mysqld服务器,输入命令:mysqld --install
2)启动服务器了,输入命令:net start mysql
问题3:重新在cmd命令行输入 mysql -u root -p 登录mysql服务器,报TIMESTAMP问题:“TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_ti”
官网参考:https://dev.mysql.com/doc/refman/5.6/en/upgrading-from-previous-series.html
As indicated by the warning, to turn off the nonstandard behaviors, enable the newexplicit_defaults_for_timestamp system variable at server startup.
解决:打开my.ini(可用记事本打开),找到“[mysqld]”设置项,添加代码:
#开启查询缓存
explicit_defaults_for_timestamp=true