mariadb设置root初始密码
######################## 免密碼登錄設置#################################
subl /etc/mysql/mysql.conf.d/mysqld.cnf
[mysqld]下面添加skip-grant-tables保存后關閉
再次執行service mysql restart
#########################下面是修改密碼##############################################
必須root用戶登陸終端
MariaDB [(none)]> use mysql;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
MariaDB [mysql]> UPDATE mysql.user SET password = PASSWORD("appleyuchi") WHERE USER = "root";
Query OK, 4 rows affected (0.00 sec)
Rows matched: 4 ?Changed: 4 ?Warnings: 0
MariaDB [mysql]> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.00 sec)
?
Reference:
[1]https://blog.csdn.net/zwj52pk/article/details/78651647
總結
以上是生活随笔為你收集整理的mariadb设置root初始密码的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: kaggle中自己的notebook不见
- 下一篇: param.requires_grad