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
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
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
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 provides a complete set of logging configuration items, but many of them are disabled by default. I wonder why mysql does not have query listening like SQL Server. After searching for information, it is found that Mysql can also implement the
The following mysql error occurs when 5.1.30 is installed under centos5.2:
MySQL manager orserverpidfilecocould not befound! [FAILED]
Starting MySQL. Manager of pid-file quit without updating file. [FAILED] mysql
View error logs
The default
When using MySQL, you must pay attention to security issues. The following are 23 notes for MySQL:
1. If the connection between the client and the server needs to span and pass through an untrusted network, you need to use an SSH tunnel to encrypt
I want to perform Database Synchronization recently. If I find an example online, I will record it and check it again later.
This is an online article.
The following configurations have been successfully configured on the local machine:
Function: A
1. Server StatusServer A: 192.168.1.1Server B: 192.168.1.2
2. Create a synchronization userHost Domain A: 192.168.1.2 User Name A: sync_a Password A: aaaHost Domain B: 192.168.1.1 username B: sync_ B password B: bbbAssign at least the following
Because log files are an important reference for restoring database data, maintenance of log files is also very important. When MySQL is used together with log files, you sometimes want to delete/back up old log files and tell MySQL to start
The customer requested that the mysql-5.1.32 be a gbk versionI downloaded the Binary source code from mysql.com. You don't have to compile and install it yourself. Later, we found the latin1 language ~Search online for a long time, a useful article
There are seven reasons why PHP is better than ASP:
1. speed, speed, and speed
ASP is built on the COM architecture. When Using VBScript to write an ASP script, actually COM objects are used. When sending information to a user's browser, it uses the
When you connect to a MySQL server, you should usually use a password. The password is not transmitted in plain text on the connection. All other information is transmitted as text that can be read by anyone. If you are worried about this, you can
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. How to obtain the latest MySQL version?
To install MySQL, you must first obtain the latest version of MySQL. Although we all know that MySQL can be found in FreeBSD Packages, I suggest you go to the network to find the latest version of MySQL.
Ii.
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
There are several popular backup methods:1. Logical backup:Use the mysqldump tool that comes with mysql to back up data. Back up SQL files.Advantage: it can work with running mysql automatically,During the running period, you can ensure that the
Where condition Query
The Code is as follows:
Select * from news where DATE (adddate)
'2017-04-20 '-INTERVAL 5 DAY and '2017-04-20' + INTERVAL 5 DAY
Select * from news where DATE (adddate) in ('2017-04-20 ', '2017-04-15', '2017-04-25 ')
Use of IF
To put it simply, SQL injection refers to the process of passing SQL code to the application, but it is not inserted as scheduled or expected by application developers, A considerable number of programmers did not judge the legitimacy of user input
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