本文主要是介绍试了下新型的360AI搜索,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
360AI搜索 试了下,感觉还是挺不错的。
比如问这个问题:
ERROR 1698 (28000): Access denied for user 'root'@'localhost'
它的回答:
对于ERROR 1698 (28000): Access denied for user 'root'@'localhost'的问题,这通常是由于MySQL密码为空或者密码错误导致的。以下是解决这个问题的几种方法:
1. 使用mysql -udebian-sys-maint -p进入MySQL,这时需要mysql提供给你的密码,输入sudo vim /etc/mysql/debian.cnf password就是密码,进入后重新设置root账号密码UPDATE user SET authentication_string=PASSWORD('你的密码') where USER ='root';退出重启服务后还是报错,但是密码还是改成功了,查看select user,plugin from user错误原因是因为plugin root的字段是auth_socket改掉就行update user set authentication_string =password('你的密码'),plugin=...[1] 。
2. 在Ubuntu终端输入如下命令sudo vim /etc/mysql/mysql.conf.d/mysqld.cnf 进入到mysqld.cnf 配置文件,然后在这个配置文件中的[mysqld]这一块中加入skip-grant-tables这句话。[mysqld]# #* Basic options *-user =root# #* Advanced options#-skip-grant-tables[2] 。
3. 使用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...[3] 。
4. 经常会发现有很多人出现数据库访问被拒绝的问题,这种情况一般多发于新版的(ubuntu18.04)linux系统上,其他的linux也可能会出现这样的问题,比如deepin(超赞的国产Linux系统),Manjaro系统等,问题报错如下:mysql: [Warning] Using a password with the mysql client for security reasons is deprecated and will be removed in a future release. Please consider using a cookie or equivalent instead.[4] 。
5. 之前mysql用着好着,可是今天在启动mysql后输入密码出现了闪退,在任务管理器中发现mysql服务没有启动,当手动启动时提示拒绝访问。mysql数据库中1045错误的解决方法。[5] 。
引文:
[1] https://www.cnblogs.com/py1612919884/p/9327015.html
[2] https://www.linuxidc.com/Linux/2019-08/159900.htm
[3] https://www.cnblogs.com/qq78292959/p/3641972.html
[4] https://blog.csdn.net/James_Nan/article/details/99588119
[5] https://blog.csdn.net/lu1024188315/article/details/78710338
这篇关于试了下新型的360AI搜索的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!