MySQL 5.6 Turn on slow query logSlow_query_log = On#turn on slow query 1 or onLong_query_time= 3#record over time in seconds, default is 10sSlow_query_log_file=/data/mysql/dev-service-node2-slow.log#Specify the log file location, can be empty, the
Master-Slave Replication configurationThe steps are as follows:Primary server: From the server IP address, respectively[Python]View PlainCopy
192.168 . 145.222 , 192.168 . 145.226
1. Modify Master server Master:[Python]View
There was an error pouring into the database to import the. sql file today. Look at the error code:You have a error in your SQL syntax; Check the manual-corresponds to your MySQL server version for the right syntax-use-near ' order ' on line 1First
Tools/Materials
MySql5.6
Centos
Method/Step
1To find out if MySQL was previously installed, use the following command:Rpm-qa|grep-i MySQLIf the following package is displayed, the MySQL is
Master-Slave architecture related issuesProblem phenomenon: Slave connection host times error [ERROR] Slave I/o: Error connecting to master ' [email protected]:3306 '-retry-time:60 retries:1, Error_code:2003 Possible reasons are: A, network does
Version: ' 10.1.9-mariadb ' socket: ' port:3306 mariadb.org binary distribution2016-07-18 10:42:04 1578 InnoDB:Warning:Using innodb_additional_mem_pool_size is DEPRECATED. This option is removed in future releases, together with the option
Clear Table DataTRUNCATE table ' name ';Shrink table Space table ' name ';Note: This action is only valid for tables that have a separate tablespace, and is often used to perform the removal of large amounts of table data because the table space
MySQL Database storage engineMySQL database is a relational database, where data is stored in a single table in a database, each table is associated with each other, each row in the table is related, and each column is irrelevant. This is the basic
Three tables, fields and data are as follows, and for simplicity all is shaping:zzz_repair:== Repair Order Form: order number, Provincezzz_repair_goods:== "Maintenance commodity table, order number, product name, number of goodsZzz_sell: = = "Sales
Mysql keyword-reserved wordReprint: http://linux.it.net.cn/e/data/mysql/2014/1202/9460.htmlTime:2014-12-02 13:09Source:linux.it.net.cnAuthor:IT
ADD
All
The installation of CentOS 7 is roughly similar to 6.5, but some parts have to be noted because some of the commands in version 7 are modified.Combined with another article http://www.cnblogs.com/katios/p/5677342.html---------------------------------
http://www.ttlsa.com/mysql/mysql-5-7-kengdieparam-log_timestamps/Website Quote:This variable is added in MySQL 5.7.2. Before 5.7.2, timestamps in log messages were written using the local system time zone by default, not UTC. If you want the
MySQL backup LVMCreate a new LVM disk, here I built the LV for MYDATALV, mounted to the/data[[email protected] ~]# lvs lv vg attr lsize pool origin data% Meta% Move Log Cpy%Sync Convert
MySQL's master-slave replicationNode OneModify configuration file Settings unique ID open binary log[[email protected] ~]# VIM/ETC/MY.CNF Add the following [mysqld] log-bin=master_bin open binary log server_id=1 to the primary node a unique ID
Test environment: Centos 6.3 and MySQL 5.3First, the new userLog in to MySQL@>mysql-u root-p@> PasswordCreate usermysql> INSERT INTO Mysql.user (Host,user,password) VALUES ("localhost", "Cplusplus", Password ("cplusplus.me"));Refresh System
Mysql user password modification, user addition, deletion, and permission setting, mysql user password Modification
The username and password used in the following example are: test, 111111
MysqlPassword modification:
Mysql requires the root
MySQL Limit order by, mysqllimit
When I write a fuzzy query today and sort by time and pagination, there is such an SQL statement in the ing file of mybatis.
1 SELECT 2 3 FROM USER U 4 WHERE U.status !=
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