1, stop MySQL service execution:
/etc/init.d/mysql stop
Your machine is not necessarily /etc/init.d/mysql, or it may be /etc/init. d/mysqld
2, skip verification and start MySQL
/usr/local/mysql/bin/mysqld_safe --skip-grant-tables >/dev/null 2>&1 &
Note: If the location of mysqld_safe needs to be modified to yours if it is different from the above, if you are not sure, you can use the find command to find it.
3, reset the password, etc. for a while, then execute:
/usr/local/mysql/bin/mysql -u root mysql
After the mysql prompt appears:
update user set Password = Password ('password to be set') where User = 'root';
Enter after carriage return:
flush privileges;
Refresh the MySQL system permissions related tables. Execute again:
exit;
Exit.
4, restart MySQL to kill MySQL process:
killall mysqld
restart MySQL:
/etc/init.d/mysql start
There is no doubt that Red Hat is indeed the choice of many companies considering Linux, but in rece
Under Linux, the IDE device is named after hd. Generally, there are two IDE interf
ifconfig -a View all NIC information of Linuxifconfig eth0 down Turn off eth0 network cardifconfig e
The configuration steps of Telnet service are as follows: First, install telnet package (usually tw
Solve the Linux operating system can not log in
Use sed command to replace file file content under Linux
Linux View Port Status and Close Port Method
Linux administrators must not know the top ten PHP security points
Talking about the learning direction and method of Linux system
Unix Common Commands Detailed Explanation
CentOS/RHEL Minimize installation and install setup configuration tool
Win10 dual system settings default method to start the operating system and wait time
Windows8 does not have minesweeping game how to do
How long does Windows 7 start? System logs at a glance
WinXP thumbnail display exception solution
Introduction to MTD/CFI driver under Linux system
Win8 system update two methods
Briefly describe various methods of Windows7 installation (1)
Win8 how to open the system comes with the recorder program
Win8.1 synchronizes application data between different computers to continue the previous work.