Version update, the password field in the original user has been changed to authentication_string Due to version updates, many online tutorials are no longer applicable, and even the official website's documents cannot be operated smoothly. If MySQL is running, kill it first: killall -TERM mysqld. run mysqld_safe --skip-grant-tables & If you do not want to be connected remotely at this time: Use mysql to connect to server change password: update mysql.user set authentication_string=password('123qwe') where user='root' and Host = 'localhost'; *One thing to note is that there is no Password field in the user table under the new version of MySQL database. Instead, the encrypted user password is stored in the authentication_string field mysql> flush privileges; mysql> quit; The modification is completed. Restart killall -TERM mysqld. mysqld_safe & Then mysql can connect But the operation seems to be incomplete at this time, and you need to alter user... alter user 'root'@'localhost' identified by '123'; The online article says that this is also possible: set password for 'root'@'localhost'=password('123'); cp mysql.server /etc/init.d/mysql chmod +x /etc/init.d/mysql chkconfig --add mysql Summarize The above is the full content of this article. I hope that the content of this article will have certain reference learning value for your study or work. Thank you for your support of 123WORDPRESS.COM. If you want to learn more about this, please check out the following links You may also be interested in:
|
<<: Vue2/vue3 routing permission management method example
>>: VMware Workstation Installation (Linux Kernel) Kylin Graphic Tutorial
Preface Before, I used cache to highlight the rou...
This tag is not part of HTML3.2 and is only suppo...
Background: During the development process, we of...
Introduction to Nginx dynamic and static separati...
Table of contents 1. LVS load balancing 2. Basic ...
Preface It's a cliché. Here I will talk about...
This article example shares the specific code of ...
Why do we say “usually 1em=16px”? The default tex...
Table of contents Initialization of echart app-ba...
Docker image download is stuck or too slow I sear...
reduce method is an array iteration method. Unlik...
Table of contents 1. Digital Operation (1) Genera...
introduce This chapter mainly introduces the proc...
In HTML, common URLs are represented in a variety ...
Table of contents 1. Operation elements 1.1. Chan...