How to solve the problem of forgetting the root password in Mysql and forgetting the root password in mysqlMethod 1:MySQL provides command line parameters for skipping access control and starts the MySQL server by running the following
MySql login password forgot and forgot password solution, mysql Login Password
Method 1:
MySQL provides command line parameters for skipping access control and starts the MySQL server by running the following command:
safe_mysqld --skip-grant-tables&
There are a lot of articles on the internet to forget the root password of the MySQL, there are written how to solve, but sometimes feel too disgusting, or a word does not leak copy others, or say not clear, good, do not spit groove, the following
Set Change root passwordNote: How to change the root password, about the root user is the MySQL Super administrator user, it is similar to the root user inside the Linux operating system, to distinguish between the root of MySQL and the system root
MySQL uses binary logs to recover data two ways
If the MySQL server has binary logs enabled, you can use the MySQL tutorial Binlog tool to recover data starting at a specified point in time (for example, from your last backup) until now or another
Several ways to hack the MySQL root password on the Internet: Method One uses phpMyAdmin, which is easiest to modify the user table in the MySQL library, but don't forget to use the password function. Method Two uses Mysqladmin, which is
today we are mainly talking about Linux forgetMySQLPassword processing method, the following provides 5 kinds of Linux forgot MySQL password recovery method Oh.Method One (Enter root permission first):#/etc/init.d/mysql Stop# Mysqld_safe--user=mysql-
1. Full backup and incremental backup 1.1 full-scale backupFull-volume data is all the data in the database, and a full backup is the backup of all the data in the database.Back Up all libraries:mysqldump -uroot -p123456 -S /data/3306/mysql.sock -F -
1, first confirm the server out of security state, that is, no one can arbitrarily connect to MySQL database. Because the MySQL database is completely out of password-protected state during the reset of the root password of MySQL, other users can
Change MySQL promptmysql> prompt \[email protected] \r:\b:\sFind to my database starting withMysql> show databases like ' my% 'Delete all UsersMysql> Delete from Mysql.user;Add User RightsMysql> Grant all privileges on * * to [e-mail protected] '% '
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.