问题描述 重启虚拟机之后,用命令 mysql -u root -p 登录不上 mysql 数据库,页面显示: 但是,用命令 service mysqld status 可以查看状态 解决方案 1.查看 mysql 相关的 pid 命令:ps -ef|grep mysql 2.杀死相关进程 kill -9 2568 kill -9 2454 3.重启 mysql 命令:service mysqld restart 然后一切正常…
安装好Navicat之后远程连接MySQL数据库出现以下报错截图: 出现以上截图怀疑是mysql用户权限不够: GRANT ALL PRIVILEGES ON *.* TO 'root'@'192.168.*.*' IDENTIFIED BY 'yanglt' WITH GRANT OPTION; 如果出现以下问题,一般是防火墙端口没有开放: 如果服务器时windows服务器 那么看参考此链接:怎么解决mysql远程连接报10038的错误_360新知 http://xinzhi.wenda.s…
[root@localhost init.d]# pwd /etc/init.d [root@localhost init.d]# mysql -u root -p Enter password: ERROR (): Access denied for user 'root'@'localhost' (using password: YES) [root@localhost init.d]# mysql -u -p Welcome to the MySQL monitor. Commands e…