cent os重置mysql,linux mysql 能登陆不能修改用户(cent os 6.2)解决思路
linux mysql 能登陸不能修改用戶(cent os 6.2)
[root@3mao /]# select user,host,password from mysql.user
bash: syntax error near unexpected token `from'
[root@3mao /]# mysql -u root
Welcome to the MySQL monitor. Commands end with ; or /g.
Your MySQL connection id is 4
Server version: 5.1.61 Source distribution
Copyright (c) 2000, 2011, 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> select user,host,password from mysql.user
->
想列表用戶信息,都不行
------解決方案--------------------
select user,host,password from mysql.user ;
打個分號然后再回車。
------解決方案--------------------
少分號. 要不mysql客戶端不知道語句結(jié)沒結(jié)束.
微信 賞一包辣條吧~
支付寶 賞一聽可樂吧~
總結(jié)
以上是生活随笔為你收集整理的cent os重置mysql,linux mysql 能登陆不能修改用户(cent os 6.2)解决思路的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 引闪器怎么用
- 下一篇: 登录服务器修改数据库吗,如何修改服务器登