Handling MySQL SLAVE synchronization error discussions using parameter Sql_slave_skip_counterThis article link address: http://blog.chinaunix.net/uid-31396856-id-5753206.htmlThis article discusses using Sql_slave_skip_counter to cause SQL threads to
Delimiter $create PROCEDURE phonedeal () BEGIN DECLARE ID varchar (+); --ID DECLARE phone1 varchar (+);--Phone DECLARE password1 varchar (32);--Password DECLARE name1 varchar (+); --ID --traverse end of data flag DECLARE
Select Concat_ws ("_", Name,password) as name from ' user ';Select Group_concat (Name, ":", password) as name from ' user ';One, CONCAT () functionThe CONCAT () function is used to concatenate multiple strings into a single string.Use data table
1. Export the entire databaseMysqldump-u user name-p database name > exported file nameMysqldump-u dbuser-p dbname > Dbname.sql2. Export a tableMysqldump-u user name-P database name Table name > exported file nameMysqldump-u dbuser-p dbname users>
mysql-data table Mysql-create table creationTo create a new table in the database, you can use the MySQL CREATE TABLE statement.CREATE table [IF not EXISTS] table_name ( column_list #在 column_list section specifies a list of tables. )
1.mysql master-Slave backup FundamentalsMySQL supports one-way, asynchronous replication, during which one server acts as the primary server, and one or more other servers act as slave servers. MySQL replication tracks all changes to the database
Transfer from https://www.jianshu.com/p/628bcf8bb557As of MySQL 5.7.18, is my-default.ini no longer included in or installed by distribution packages.MySQL no longer comes with the default configuration fileJust write one manually.Cd/etcsudo vim
Case Description:Two operators of the bank operate the same account simultaneously.For example, A, B operators simultaneously read a balance of 1000 yuan account, a operator for the account increase of 100 yuan, b operator at the same time for the
yumthe general version of MySQL installed is older, but it runs stably. If you want to try the latest features or you need to specify special features, you need to manually compile the installation.First, download the installation package(a), first
One, CONCAT () functionThe CONCAT () function is used to concatenate multiple strings into a single string.Use data table info as an example, where select Id,name from Info LIMIT 1, and the returned result is+----+--------+| ID | name |+----+--------
Reference: http://blog.csdn.net/zbw18297786698/article/details/52999940Description: 192.168.3.81 CentOS release 6.5 apache-activemq-5.10.11. Copy the MySQL drive to the ACTIVEMQ environmentMysql-connector-java-5.1.44-bin.jar[Email protected]
Data typeTruncate t1 (delete table) # unsigned type ALTER TABLE t1 modify ID tinyint unsigned (table has value, cannot be changed directly) desc t1======================================== tinyint[(m)] [unsigned] [Zerofill] small
Using the source code installation, can add some parameters according to the actual production environment, improve MySQL performanceMySQL official website https://www.mysql.com/This article uses the 5.1 version of the dedicated installation
!!! It is important to analyze the deadlock principle and the deadlock principle.
Original Link
Author: Desert solitary smokeBackground and Symptom
In the online production environment, database operation deadlocks often occur in some cases, and
How to enable slow log query in MySQL
In Windows, find the my. ini file in the MySQL installation directory. The mysql version I use is earlier than 5.1.40.
Add the following lines in my. ini: MySQL Method for enabling slow log query
[Mysqld]
How to Use the MYSQL Command Line for beginners
MYSQL beginner's guide and introduction
1. Connect to MYSQL.
Format: mysql-h host address-u user name-p User Password
1. Example 1: connect to MYSQL on the local machine.
First, open the DOS window,
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