Get the App
SLTechnology News&Howtos  ›  Database  › 

How to change the administrator password by mysql

Shulou Source: shulou.com Published: 2022-05-31 18:48:32 10月28日 Update

This article mainly explains the "mysql how to change the administrator password", the article explains the content is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "mysql how to change the administrator password" bar!

Mysql modifies the administrator password

Kill the mysql process

Kill `cat / data/mysqldata/3306/ mysql.pid`

Disable connection disable authentication mode to start mysql

Mysqld_safe-defaults-file=/data/mysqldata/3306/my.cnf-skip-grant-tables-skip-networking&

Change the administrator password (this environment has renamed the administrator to system)

Mysql

Update mysql.user set password=password ('xxxxxx') where user='system'

Restart mysql

Mysqladmin shutdown

Mysqld_safe-- defaults-file=/data/mysqldata/3306/my.cnf &

Thank you for your reading, the above is the content of "how to change the administrator password in mysql". After the study of this article, I believe you have a deeper understanding of how to modify the administrator password in mysql, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Tags: Administrators administrators passwords learning content verification that is ideas situations articles methods more environment knowledge knowledge points articles follow process problems practice Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn Shulou Information Shulou Tech Info NVidia Docker