Navicat premium链接mysql时,出现2003-Can't connect to MySql server on 'localhost'(10061)错误html
(cmd中也是此提醒)mysql
检查安装mysql的目录下是否有mysqld.exe,若是没有,就是没有mysql服务,进入官网https://dev.mysql.com/downloads/mysql/下载适合本身电脑的32位或64位,下载后直接启动。sql
运行上图界面,提示输入密码,数据库
若是是本身闪退,则是密码不错误,若密码不正确,可参考5。若是登录成功,会显示以下信息:服务器
若是不显示mysql,则尝试以下操做:spa
5.5.1 用select user();
查看用户发现.net
5.5.2 用show grants;
查看权限命令行
5.5.3 退出后,切换为root用户,再查看数据库code
退出mysql:net stop mysqlserver
参考连接:
查看mysql用户名和密码:https://jingyan.baidu.com/article/915fc414b8c9b051384b2051.html
修改密码:https://jingyan.baidu.com/article/454316ab4e9e65f7a7c03ad1.html
Access denied for user 'root'@'localhost' (using password:NO):http://www.javashuo.com/article/p-hyvkrsaq-v.html
Access denied for user 'root'@'localhost' (using password:NO):http://www.javashuo.com/article/p-sjtiixvv-en.html(更好)
MySQL-show databases数据库显示不完整:https://blog.csdn.net/l2580258/article/details/71081394(重要参考文档)