IT博客汇
  • 首页
  • 精华
  • 技术
  • 设计
  • 资讯
  • 扯淡
  • 权利声明
  • 登录 注册

    MariaDB 密码认证无效的一个坑

    聂文龙发表于 2017-12-30 08:04:00
    love 0
    MariaDB root 账户默认使用了 UNIX_SOCKET 插件,只允许 root 用户连接,无需密码。 


    可以使用 root 用户连接后创建新用户或者执行: 
    update mysql.user set plugin = '' where User='root'; 
    flush privileges; 
    or 
    update mysql.user set plugin = 'mysql_native_password' where User='root'; 
    flush privileges; @import url(http://www.cppblog.com/CuteSoft_Client/CuteEditor/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css);


    聂文龙 2017-12-30 16:04 发表评论


沪ICP备19023445号-2号
友情链接