Installing MySQL on Linux defaults to the database's table case sensitivity. The modification is simple, as long as the one MySQL configuration file is available.Mysql> Show tables;+--------------------------------------+| Tables_in_cddl |+----------
Create DATABASE Golden;CREATE TABLE Golden.users (usersid int unsigned NOT NULL Auto_increment primary key,UserName char () NOT NULL,PassWord int unsigned NOT NULL);CREATE table golden.u like golden.users; --Duplicate table structureINSERT INTO
After installing mysql on the server, you generally need to do the following:
1. Start mysql server2. Set the root user and add some Access Users3. Set User Permissions4. Configure non-local connection access5. Back up or migrate data6. Some
In MySQL, transactions are a series of steps in a logical unit of work. Transactions are used to ensure the security of data operations.
Transaction Features:
1. Atomicity (Atomicity)2. Consistency (stability and Consistency)3. Isolation (Isolation)4
Many developers will encounter "MySQL: ERROR 1040: Too connector connections" exceptions.One reason is that the traffic is too high.The MySQL server is not able to resist. In this case, we need to consider increasing the load on distributed reads
Create View SQL code
CREATE VIEW view_name AS SELECT t1.xxx, t2.xxx, t3.xxx FROM (table1 t1 INNER JOIN table2 t2 ON t1.fid = t2.fid) INNER JOIN table3 t3 ON t1.mid = t3.mid;
Three table associations are used here. There is a skill for writing multi-
The customer service team asked me to sort some hotels in Chinese pinyin. I have never touched on it before and asked some experts in the php Group .. You can obtain either of the two answers. Haha ·~The following is an example of msyql. The table
Anyone who has been using MySQL O & M should be clear that online MySQL usually uses source code compilation, because this allows you to select the function to be compiled based on your own needs, although the MySQL source code compilation is quite
ERROR 1665 (HY000)
[Environment description]
Msyql5.6.14
[Error message]
An error is reported when an SQL statement is executed:
ERROR 1665 (HY000): Cannot executestatement: impossible to write to binary log since BINLOG_FORMAT = STATEMENTand
In general, the main causes of Chinese garbled characters in MySQL are as follows:
1. Problems with character set settings of the server itself, such as staying at latin12. table language setup problems (including character and collation)3.
I. THREAD_CACHE
To improve the performance of the connection process created by client requests, MySQL provides a connection pool, namely the Thread_Cache pool, which stores idle connection threads in the connection pool instead of destroying them
The max_connections parameter of MySQL is used to set the maximum number of connections (users. Each user connected to MySQL is counted as a connection. The default value of max_connections is 100. This article describes the detailed functions and
For large websites such as facebook and ebay, if Memcache is not used as the intermediate cache layer, data access cannot be avoided. For general websites, as long as they have independent servers, you can configure Memcache to speed up Website
Table_cache is a very important MySQL performance parameter. It is called table_open_cache in Versions later than 5.1.3. Table_cache is mainly used to set the number of table caches. Since each client connection accesses at least one table, the
Probably those who have played mysql will certainly be familiar with Waiting for table metadata lock. Generally, they are blocked during the alter operation, resulting in the show processlist, the thread status is waiting for metadata lock. This
1.1.1. HA: inconsistent GTID_MODE configurations
[Environment description]
Msyql5.6.14
[Error message]
In the initial state, both the Master and Slave enforce-gtid-consistency and gtid-mode are enabled, and both of them are changed to off. In
1. Uninstall the old MySql version
1. rpm uninstall:
1> check the installation package:
Rpm-qa | grep mysql
2> normal deletion:
Rpm e mysql-5.6.16.rpm
3> force Delete. If you are prompted to have other dependent files when you use the preceding
Environment
CentOS
For Mysql 5.1
Prerequisites
EPEL is installed. For detailed installation steps, see
Http://blog.csdn.net/robinsonmhj/article/details/36184863
Machine list
Machine IP Address
Machine name
192.168.0.135
Db1
1.1.1. ERROR 1665 (HY000)
[Environment description]
Msyql5.6.14
[Error message]
An error is reported when an SQL statement is executed:
ERROR 1665 (HY000): Cannot executestatement: impossible to write to binary log since BINLOG_FORMAT =
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.