1, this way will make the server in an insecure situation, please try to ensure that in a safe environment, because, this way, will allow anyone to arbitrarily connect MySQL database.2, #vim/etc/my.cnfIn the section "Mysqld", add
The root password forgot what to doCopy the other three files from the user table to your MySQL directory!Update the root user password field!The problem is, no password, no login, no updateMYSQLD Server program, there is an option to skip the
With MySQL version 4.1 as the dividing line, two kinds of encryption methodsMysql323 Encryption: (16-bit)Select Old_password (' root '); MySQL self-encrypting function old_password (str)Select Old_password ('root'); +----------------------+|
1. Stop mysqld;/etc/init.d/mysql stop2. Start MySQL with the following command to start without checking permissions;Mysqld--skip-grant-tables &3. Then log in to MySQL using the root user with a blank password;Mysql-u Root4. Change the password of
1. Single InstanceNow stop the database/etc/init.d/mysqld stopUse the following command to log inMysqld_safe--skip-grant-tables--user=mysql &You can now log in using MySQLMysql-urootAnd then you can change the password.Update Mysql.user set Password=
1. Single Instance ScenarioNow stop the database/etc/init.d/mysqld stopStart the database with the following commandMysqld_safe --skip-grant-tables --user=mysql &You can now log in using the MySQL commandMysql-urootAnd then you can change the
Forget the root password of the original myql;First, you must have root access to the operating system. If you do not have the root authority of the system, consider the root system before taking the following steps.Similar to Safe Mode login system,
Previously installed in Ubuntu 12.04 Xampp, set up the MySQL database root password, need to add a database today, found to forget what the password was set before. After some of the struggle, finally understand, note that the following operations
A.
First stop the service/etc/init.d/mysqld stop and add it in/ETC/MY.CNF:Socket=/var/lib/mysql/mysql.sockSkip-grant-tablesUser=mysql
Start MySQL service, enter MySQL login
mysql> use MySQL;Reading table information for completion
If you are evaluating the pressure of a MySQL database, you can use Sysbench to test
The concrete operation out, installs the Sysbench tool first, installs the operation as follows:
Installation Environment
CentOS Release 5.4 (Final)MySQL 5.1.40
It is of great significance to study the encryption and decryption of MySQL database in the course of network attack and defense. Imagine that once you have access to the site's permissions, if you can get the data stored in MySQL, through the
Modify the MySQL password:Copy codeThe Code is as follows:Mysqladmin-u root-p password 123456Mysqladmin-u username-p old password New password
Forget the MySQL password:Copy codeThe Code is as follows:Chown-R mysql: mysql/var/lib/mysql/Etc/init.
Fix it: My actual operation under Windows is as follows1. Close the running MySQL.2. Open the DOS window and go to the Mysql\bin directory.3. Enter mysqld-nt--skip-grant-tables carriage return. If you don't get a hint, that's it. 4. Open a DOS
Mysql Installation
The 2nd Redhat 9 discs provide Mysql RPM packages for easy installation. This RPM package has: mysql-3.23.54a-11.i386.rpmMysql-server-3.23.54a-11.i386.rpmMysql-devel-3.23.54a-11.i386.rpm
During installation, you can use this disc
Mysql's Redhat9 installation of 2nd CDs provides the Mysql RPM package, which is very convenient to install. This RPM package has: mysql-3.23.54a-11.i386.rpmmysql-server-3.23.54a-11.i386.rpmmysql-devel-3.23.54a-11.i386.rpm can be installed with this
Mysql Installation
The 2nd Redhat 9 discs provide Mysql RPM packages for easy installation. This RPM package has: mysql-3.23.54a-11.i386.rpm
Mysql-server-3.23.54a-11.i386.rpm
Mysql-devel-3.23.54a-11.i386.rpm
During installation, you can use this
Sysbench is an easy-to-use stress testing tool that can test the CPU,MEMORY,FILEIO,MYSQL database;Sysbench Installation Method:The sysbench in the default Epel source is version 0.4 and is now in the 1.x version, and the master uses the 1.x
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.