1. Benefits of starting multiple mysql instances on a single machine
Make full use of the computing power of a single machine
It can effectively allocate different logics to different mysql databases to improve the parallel processing capability of
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
I. Preparations
To integrate the Linux/Apache/PHP4/FastCGI/Oracle/MySQL environment, you must first prepare the following software packages:
(1) database Perl Interface
1. perl5 Oracle dbi driver: DBD-Oracle-1.03.tar.gz
2. perl5 universal database
Install MySQL:
Note that, as shown in the figure, some options are different from the default ones. At the same time, if you re-install mysql, you should first back up the data directory in the mysql Directory, which is the data directory of all
My website is CentOS6.3 + MySQL5.1.57. After the server is restarted, the following error occurs when you log on to mysql-u root-p:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql. sock' (2)
So I checked the mysql
When managing SQL Server's internal accounts and passwords, it is easy to think that all this is quite safe. But not actually. Here, we list some very dangerous SQL Server passwords.
When managing SQL Server's internal accounts and passwords, it is
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 --
Database index is a Sort data structure in the database management system. It helps you quickly query and update data in database tables. The implementation of indexes usually uses the B tree and Its Variant B + tree.
In addition to data, the
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
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
Version: 5.0.22-community-nt.
1. Create a temporary table folder_tmp for the table folder
Create table folder_tmp as select * from folder group by serverIp, userId, name, path;
After grouping by serverIp, userId, name, and path, the data in front
Unlike automatic database backup, the system administrator must take certain actions to protect data from unauthorized users. If you are using MySQL, you can use some convenient functions to protect the system and greatly reduce the risk of
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
First, set the MySQL master server:
Create a user for the slave server on the master server:
1. grant replication slave on *. * to 192.168.0.1 identified by '2013 ';
# Use this file later than 4.1.
# Grant file on *. * to 192.168.0.1 identified by '1
1. Cause Analysis of Table CorruptionThe following are common causes of mysql table destruction:1. Data Files are damaged due to a sudden power failure on the server.2. Force Shutdown without shutting down the mysql service first.3. The mysqld
Table locking methodThere are mainly a variety of methods to prevent client requests from interfering with each other or mutual interference between servers and maintenance programs. If you close the database, you can ensure that there is no
Steps on Windows
1. log on to windows as an administrator
2. Use windows service management tools or task manager to stop MySQL services
3. Create a single-line text file and save it as c: mysqlpwdhf.txt,
The content is set password for 'root' @
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.