Mariadb 修改 root 密码 2022-03-09 约 50 字 预计阅读 1 分钟 文章目录 Tips 参考链接 Tips 1 2 3 4 5 6 7 8 FLUSH PRIVILEGES; -- MySQL 5.7.6 and newer as well as MariaDB 10.1.20 and newer ALTER USER 'root'@'localhost' IDENTIFIED BY 'new_password'; -- MySQL 5.7.5 and older as well as MariaDB 10.1.20 SET PASSWORD FOR 'root'@'localhost' = PASSWORD('new_password'); 参考链接 https://www.digitalocean.com/community/tutorials/how-to-reset-your-mysql-or-mariadb-root-password 文章作者 bwangel 上次更新 2022-03-09 许可协议 本博客所有文章除特别声明外,均采用 CC BY-NC-SA 3.0 CN 许可协议。转载请注明出处