小编toy*_*ian的帖子

使用ansible全新安装mariadb后无法设置root密码

问题:
全新安装 mariadb 10.4 后,无法使用 ansible 设置 root 密码。
当 mariadb 从 debian 软件包(不是官方 debian 软件包)安装 mariadb 时,密码为root空,并且可以从 localhost 进行无密码登录。

尽管如此,ansiblemysql_user还是抛出了以下错误:
failed: [XXX] (item=localhost) => {"ansible_loop_var": "item", "changed": false, "item": "localhost", "msg": "unable to connect to database, check login_user and login_password are correct or /root/.my.cnf has the credentials. Exception message: (1698, \"Access denied for user 'root'@'localhost'\")"}

mariadb password debian

2
推荐指数
1
解决办法
3211
查看次数

标签 统计

debian ×1

mariadb ×1

password ×1