b361怎么样才能让皮肤变白才能不让b561的升级提示出来

& 解决 ERROR ): Access denied for user ‘root’@’localhost’ (using password: YES) 问题
解决 ERROR ): Access denied for user ‘root’@’localhost’ (using password: YES) 问题
解决 ERROR ): Access denied for user ‘root’@’localhost’ (using password: YES) 问题
/ygw_923581/blog/static//
最近新装好的mysql在进入mysql工具时,总是有错误提示:
# mysql -uroot -p
Enter password:
ERROR ): Access denied for user ‘root’@’localhost’ (using password: NO)
使用网上介绍的方法修改root用户的密码:
# mysqladmin -uroot -p password ‘newpassword’
Enter password:
mysqladmin: connect to server at ‘localhost’ failed
error: ‘Access denied for user ‘root’@’localhost’ (using password: YES)’
现在终于被我找到了解决方法,如下(请先测试方法三,谢谢!):
# /etc/init.d/mysql stop
# mysqld_safe –user=mysql –skip-grant-tables –skip-networking &
# mysql -u root mysql
mysql& UPDATE user SET Password=PASSWORD(‘newpassword’) where USER=’root’;
mysql& FLUSH PRIVILEGES;
mysql& quit
# /etc/init.d/mysqld restart
# mysql -uroot -p
Enter password: &输入新设的密码newpassword&
直接使用/etc/f文件中[client]节提供的用户名和密码:
# mysql -udebian-sys-maint -p
Enter password: &输入[client]节的密码&
mysql& UPDATE user SET Password=PASSWORD(‘newpassword’) where USER=’root’;
mysql& FLUSH PRIVILEGES;
mysql& quit
# mysql -uroot -p
Enter password: &输入新设的密码newpassword&
这种方法我没有进行过测试,因为我的root用户默认密码已经被我修改过了,那位有空测试一下,把结果告诉我,谢谢!!
# mysql -uroot -p
Enter password: &输入/etc/f文件中[client]节提供的密码&
至此,困惑多时的问题解决了!
No related posts.
本文的评论功能被关闭了.
赞助服务器运行一天
2017年六月
12131415161718
19202122232425
2627282930
(欢迎收录正常的同类网站交换链接:)phpMyAdmin 是一个以PHP为基础,以Web-Base方式架构在网站主机上的MySQL的数据库管理工具,让管理者可用Web接口管理MySQL数据库。借由此Web接口可以成为一个简易方式输入繁杂SQL语法的较佳途径,尤其要处理大量资料的汇入及汇出更为方便。
出现以下错误情况:phpmyadmin:#1045 无法登录 MySQL 服务器。Access denied for user &root&@&localhost& (using password: YES)
这有可能是由于前面设置mysql密码没有成功,所以导致了我们使用设置的mysql root密码无法登陆服务器。
这时可以尝试使用mysql 默认的root账号的空密码登陆数据库。
如果使用空密码登陆时又出现:空密码登录被禁止 (参见 允许空密码) 的错误。则要修改/phpmyadmin/libraries/config.default.php 文件,找到下面两行
$cfg[&Servers&][$i][&nopassword&] =
$cfg[&Servers&][$i][&AllowNoPassword&] =
将两个false改为true,同时设置 $cfg[&Servers&][$i][&password&] = &;通过这样设置配置文件后phpmyadmin 就会允许以空密码方式登录mysql数据库了。
若重新以空密码方式登录phpmyadmin有时仍无法登陆,请清除cookie或关闭原来的phpmyadmin 登录窗口,重新使用空密码登录。
若这时候仍然显示空密码登陆被禁止,试试随便输入几个字符当作密码看是否能够登陆成功。
登陆mysql服务器之后尽快将mysql密码在phpmyadmin中修改过来。或者在SSH客户端修改mysql密码:cd /usr/local/mysql/bin
然后执行命令:./mysqladmin -u root -p password/passwd。
最后在mysql的user表中删除除root以外所有用户。
Copyright &
All Rights Reserved &&&&&&本文讲的是mysql启动提示 access denied for user root@localhost(using password:YES) 解决办法总结,
关键是看:Access denied for user 'root'@'localhost' (using password: YES)'
从错误中可以看出你的权限是对localhost的访问没有放开。
于是你可以使用如下命令来放
关键是看:Access denied for user 'root'@'localhost' (using password: YES)'
从错误中可以看出你的权限是对localhost的访问没有放开。
于是你可以使用如下命令来放开权限:
1. 管理员登陆系统,停止mysql服务或者结束mysqld-nt进程;
2. 进入命令行,来到mysql的安装目录.假设安装目录为 d:mysql , CMD进入命令行;
3. 运行 D:Program FilesMySQLMySQL Server 5.5binmysqld-nt --skip-grant-tables启动mysql,关闭权限的检查;
4. 运行 D:Program FilesMySQLMySQL Server 5.5binmysqladmin -u root flush-privileges password "newpassword" 重设root密码;
5. 重新启动mysql服务;
命令方式解决
# /data/mysql/bin/mysqladmin -u -p &首先要停止你之前的启动的mysql.如果停止的时候.也出现1045的错误的话那只有kill掉mysql的pid&
# mysqld_safe --user=mysql --skip-grant-tables --skip-networking &
# mysql -u root mysql
mysql& UPDATE user SET Password=PASSWORD('newpassword') where USER='root';
mysql& FLUSH PRIVILEGES;
mysql& quit
# /etc/init.d/mysql restart
# mysql -uroot -p
Enter password: &输入新设的密码newpassword&
解决方法二
首先计入到mysql的客户端命令行。
grant all privileges on *.* to 'root'@'localhost' identified by '你的密码'
执行完这两条命令之后就可以了
以上是云栖社区小编为您精心准备的的内容,在云栖社区的博客、问答、公众号、人物、课程等栏目也有的相关内容,欢迎继续使用右上角搜索按钮进行搜索权限
,以便于您获取更多的相关知识。
为您提供简单高效、处理能力可弹性伸缩的计算服务,帮助您快速构建更稳定、安全的应用,提升运维效率,降低 IT 成本...
RDS是一种稳定可靠、可弹性伸缩的在线数据库服务。支持MySQL、SQL Server、PostgreSQL、高...
云栖社区()为您免费提供相关信息,包括
的信息,还有等
,所有相关内容均不代表云栖社区的意见!mysql Access denied for user ‘root’@’localhost’ (using password: YES)解决方法
投稿:junjie
字体:[ ] 类型:转载 时间:
这篇文章主要介绍了mysql Access denied for user ‘root’@’localhost’ (using password: YES)解决方法,本文给出详细的解决步骤及操作注释,需要的朋友可以参考下
今天在启动mysql时出现以下问题:
[root@www ~]# mysql -u root -p
Enter password:
ERROR ): Access denied for user 'root'@'localhost' (using password: YES)
网上的答案是各种各样的,最终解决问题的方法总结为以下,好多都是没有设置初始密码造成此问题的。
解决方法如下:
[root@www ~]# service mysqld stop
#先关闭mysql服务
Stopping mysqld:
[root@www ~]# mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
[root@www ~]# mysql -u root -p
#关闭服务后又出现如下问题
Enter password:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
[root@www ~]# mysql -u root mysql
#键入此命令进入mysql
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Welcome to the MySQL monitor. C or \g.
Your MySQL connection id is 1
Server version: 5.1.73 Source distribution
Copyright (c) , 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
Type '' or '\h' for help. Type '\c' to clear the current input statement.
mysql& update user set password=password('123') where user='root' and host='localhost';
----&修改root的密码
Query OK, 1 row affected (0.04 sec)
Rows matched: 1 Changed: 1 Warnings: 0
ERROR ): You have an error in your SQL check the manual that corresponds to your MySQL server version for the right syntax to use near 'priviledge' at line 1
Query OK, 0 rows affected (0.00 sec)
[root@www ~]# mysql -u root -p
------&重新进入
Enter password:
Welcome to the MySQL monitor. C or \g.
Your MySQL connection id is 2
Server version: 5.1.73 Source distribution
Copyright (c) , 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
Type '' or '\h' for help. Type '\c' to clear the current input statement.
到此就完了!!
您可能感兴趣的文章:
大家感兴趣的内容
12345678910
最近更新的内容
常用在线小工具

我要回帖

更多关于 怎样才能让腿变长变细 的文章

 

随机推荐