X-osadminの自留地
  • 博客主页 HomePage
  • 技术小絮 Tech
  • 作品发布 Works
  • 软件专题 Softs
    • proxmox
    • openwrt
    • chromebook
    • Zerotier
    • 虚拟化
  • 友情链接 Following

xosadmin

BGPlayer / Codes learner / Love Linux
Posts
75
Comments
0

友情链接 – Friendly Links

  • Add your site here…
xosadmin
5 years ago

[Warning] ‘user’ entry ‘root@xxx’ has both a password and an authentication plugin specified. 的解决方案

如题,在树莓派上安装mariadb 10时遇到了这个错误。具体错误如下:

May 02 10:39:01 xxx mysqld[1148]: 200502 10:39:01 [Note] InnoDB: Waiting for purge to start
May 02 10:39:01 xxx mysqld[1148]: 200502 10:39:01 [Note] InnoDB: Percona XtraDB (http://www.percona.com) 5.6.32-79.0 started; log sequence number 1628926
May 02 10:39:01 xxx mysqld[1148]: 200502 10:39:01 [Note] Plugin ‘FEEDBACK’ is disabled.
May 02 10:39:01 xxx mysqld[1148]: 200502 10:39:01 [Note] Server socket created on IP: ‘127.0.0.1’.
May 02 10:39:01 xxx mysqld[1148]: 200502 10:39:01 [Warning] ‘user’ entry ‘root@localhost’ has both a password and an authentication plugin specified. The password will be ignored.
May 02 10:39:01 xxx mysqld[1148]: 200502 10:39:01 [Note] /usr/sbin/mysqld: ready for connections.
May 02 10:39:01 xxx mysqld[1148]: Version: ‘10.0.28-MariaDB-2+b1’ socket: ‘/var/run/mysqld/mysqld.sock’ port: 3306 Raspbian testing-staging

这个问题是Mysql的部分插件与密码验证冲突,mysql服务器默认抛弃密码验证导致的,并会导致php程序(如phpmyadmin)无法访问该mysql数据库服务器。经过搜索与测试,可行的解决方法为在mysql命令行控制台下运行:

UPDATE mysql.user SET plugin = ” WHERE plugin = ‘unix_socket’;
FLUSH PRIVILEGES;

Enjoy~

  • 作品发布
等 人表示很赞
1,868
0

📮Comments

No Comment.
  • Windows FTP服务器通过PASV模式无法获取目录的解决方法
  • Proxmox日志出现大量lxcfs truncated错误的解决方案
  • Proxmox通过CLI向LXC挂载已有虚拟磁盘的方法
  • LXC上安装Gitlab时sysctl报错的解决方法
  • Proxmox VE通过全盘方式直通硬盘
  • Proxmox为KVM VNC启用剪贴板支持

文章聚合

  • Proxmox日志出现大量lxcfs truncated错误的解决方案
  • Proxmox通过CLI向LXC挂载已有虚拟磁盘的方法
  • Proxmox VE通过全盘方式直通硬盘
  • Proxmox为KVM VNC启用剪贴板支持
  • Proxmox报出RRDC/RRD update error的解决方法
  • 在Debian 12上安装Proxmox VE的方法

Multilangual Translator

Copyright © 2016-2025 X-osadminの自留地. All rights reserved. Designed by nicetheme.
  • 博客主页 HomePage
  • 技术小絮 Tech
  • 作品发布 Works
  • 软件专题 Softs
    • proxmox
    • openwrt
    • chromebook
    • Zerotier
    • 虚拟化
  • 友情链接 Following
Welcome
Forgot password?
Welcome
Forgot password?
Social Login
Login with WeChat QR Code
Unregistered WeChat IDs will be automatically used to create an account.
Scan and Reply with Keywords「登录」Get Verification Code
Social Login
Free registration
Social Login
Reset password
Back to Login