1. Manually change the password
In some cases, we forget the administrator password. Or the administrator password is maliciously modified after the website is attacked. At this time, we can only reset the administrator password.
The following query
The following script uses the namp scanning tool. Therefore, if the nmap scanning tool is not installed in the system, you must first install the tool.
Script functions:
First, check whether the mysql port exists normally. If the port does not
The error is as follows:
Illegal mix of collations (gbk_chinese_ci, IMPLICIT)
And (gbk_bin, IMPLICIT) for operation '= ',
SQL State: HY000, Error Code: 1267
Error cause:
The database encoding is different from the table creation encoding;
Solution to MySQL password forgetting:
1. Stop the mysql service. // Open the command line window and stop the mysql service: Net stop mysql
2. Start mysql, usually to the installation path of mysql, find the mysqld-nt.exe
Run: mysqld-nt --
This article provides a detailed analysis of 30 common methods for optimizing SQL statement queries in MySQL. For more information, see
1. To optimize the query, try to avoid full table scanning. First, consider creating an index on the columns
For example, in Windows server, the SQL Server database is installed. in linux, the mysql database is installed, and the first version of the Mysql database is released on Linux.
I. mysql Introduction
MySQL is a relational database management system
Author: skate
Time: 2013/04/11
Properly set SQL _mode of mysql
SQL _mode is a variable that is easily ignored. The default value is a null value. In this setting, some illegal operations can be allowed, such as the insertion of some illegal data. In
I suddenly received an alarm from MySQL. I crashed from the database and restarted continuously. I opened the error log and found that a table was broken. If the innodb table is damaged, you cannot use repair table or other commands to repair myisam.
1. View MySQL database servers and database character sets
Show variables like '% char % ';
2. view the character sets supported by currently installed MySQL.
Show charset;
3. Set the encoding:
Modify my. cnf
Vi/etc/my. cnf
Add under
Problem status
Restarting mysql also fails. You can only see information similar to the following:
Forcing close of thread 12232 user: 'root'
Use mysqladmin to easily monitor mysql:
Mysqladmin-uroot-p ******** status-I 1
It is found that Queries per
Mysql version can not be less than 4.1
This is directly translated as: the Mysql database version cannot be lower than 4.1
It seems to be a problem with the database version. Is that true?
According to the observation of the spatial database
We often encounter database backup and restoration in website data maintenance. We generally use the following two methods:
1. Use into outfile and load data infile to import and export backup data
The advantage of this method is that the exported
Log on to the databaseInput in the "command prompt character" window,Enter cd C: mysqlbin and press the Enter key to switch the directory to cd C: mysqlbin.Enter the mysql-uroot-p command and press enter to prompt you to enter the password. If MYSQL
Mysql Master/Slave databases are not synchronized today
First go to the Master database:
Mysql> show processlist; check whether there are too many Sleep processes. It is normal.
Show master status; also normal.
Mysql> show master status;
+ ----------
MySQL is the most popular open-source SQL database management system. It is developed, released, and supported by MySQL AB. MySQL has high execution performance, fast running, and easy to use. Is a very popular database, PHP and MYSQL perfect
After MySQL is installed, a root user and an anonymous user will be automatically created, which is ignored by many users, this is probably because anonymous users are set to be only available locally by default.
However, if MySQL is to be used as
In MySQL database operations, we often write some SQL statements to implement the functions we want. However, it seems difficult for beginners of MySQL databases. This article summarizes six useful SQL statements. Beginners can use the following
MySQL is a cross-platform open-source relational database management system. It is the most cost-effective database we commonly use. It is small in size, fast in size, and low in total cost of ownership, in particular, the open source code feature
First of all, I have not tried the following description only for other Windows systems. Mysql has modified the User Password format since 4.1.1, increasing from 16 bits to 41 BITs, A new verification method is adopted, but the client Protocol
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service