myql 安装后无法登陆
来源:8-1 Mysql安装及链接

qq_煮雨_2
2018-04-21
用mysql -u -p 命令也一样,请教一下这是什么情况?
3回答
-
赵佳子彧
2019-06-17
因为密码有特殊字符所以用户名和密码不能再同一行输入
登录mysql和退出mysql
[xiaokang@localhost ~]$ mysql -u root -p
Enter password:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
[xiaokang@localhost ~]$ mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 14
Server version: 8.0.16
Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> exit
Bye
[xiaokang@localhost ~]$
212019-06-17 -
丶搁浅
2018-04-26
先看看mysql服务有没有起来
ps -ef | grep mysql
如果没起就开启服务
service mysqld start
10 -
编程浪子
2018-04-28
00
相似问题