MySQL master configuration under Linux

First, the primary server-related configuration1. Create a sync account and specify the server address[Email protected] ~]mysql-uroot-pMysql>use MySQLMysql>grant replication Slave on * * to ' testuser ' @ ' 192.168.1.102 ' identified by ' 12345678 ';

MySQL full backup and recovery

MySQL full backup and Recovery experiment IntroductionDatabase backups can be divided into physical and logical backups from a physical and logical perspective. From the database backup policy perspective, can be divided into full backup,

MySQL implements a SQL complete update of multiple data

Original function: Update Categories SET display_order= 3,title = ' New Title 1 ' where id=1; Update Categories SET display_order= 4,title = ' New Title 2 ' where id=2; Update Categories SET display_order= 5,title = ' New

MySQL Online open gtid mode

Tag: Mode file ORC mod mode IV TE must state1. Requirements:(1) must be 5.7.6 versions of MySQL(2) Gtid status is off2. Opening steps:(1): SET GLOBAL enforce_gtid_consistency = ' WARN ';(2): SET GLOBAL enforce_gtid_consistency = ' on ';(3): SET

PHP operation MySQL Implementation batch MySQL statement MySQL file

1PHP2 /**3 * Batch Run SQL file4 * Regular separation is the key preg_split ("/;[ \r\n]+/", filecontent)5 */6 $config=require‘.. /dataconfig.php ';7 $dbhost=$config[' Db_host '];8 $dbname=$config[' Db_user '];9 $dbpass=$config[' Db_pwd '];Ten $db

MySQL 5.6.40 Uninstall install change password

Recently executed another MySQL version of the exported SQL script, there is a problem! For a number of reasons, the previous mysql5.5 uninstall, due to the uninstall is not clean there are some problems. Hereby summarize the Method!Reference Links:5

View MySQL version and character encoding

MySQL version: when logging into the database:Mysql> SELECT @ @version;Mysql> select version ();Statusmysql> status;When you are not logged into the database:Mysql-vMySQL--versionD:\mysql\bin>mysql-vd:\mysql\bin>mysql--versionMySQL--help | findstr

Cascade, NO ACTION, Restrict, set NULL in MySQL foreign key settings

First, Cascade WaySynchronize update/delete out a matching record of a child table when Update/delete records on the parent tableSecond, SET NULL modeSet the column of the matching record on the child table to NULL when the record is update/delete

Completely uninstall MySQL under Linux detailed

First, use the following command to view the current installation of MySQL, to find out if previously installed MySQLRpm-qa|grep-i MySQLYou can see the following as shown:The display was previously installed:Mysql-client-5.5.25a-1.rhel5Mysql-server-5

Mysql Slow Query log

View status show VARIABLES like '%slow_query_log% 'Turn on set global show_query_log=1 (fail after reboot)Permanent effect Modification MY.CNF joinSlow_query_log=1Show_query_log_file=/var/lib/mysql/at-slow.logModify Time Threshold (default is

MySQL's basic statement

Connection1, mysql-h localhost-u root-p ****** (carriage return) 2, mysql-h localhost-u root-p (carriage return) ****** (carriage return) 3, mysql-u root-p ****** (carriage return) (this does not write- H words is also the default link localhost) 4,

? mysql use PV and PVC practice operation record

Create an NFS storage directory[Email protected] ~]# MKDIR/DATA/K8S/MYSQLPV1Create PV[email protected] ~]# cat

Linux Learning record-------MySQL authorized remote connection

Linux to turn on MySQL remote connection setup steps.MySQL default root user only local access, cannot remotely connect to manage MySQL database, then how to open MySQL remote connection under Linux?The setup steps are as follows:1. Log in to MySQL2.

MySQL table Import export failed--the MySQL server is running with the--SECURE-FILE-PRIV option

When you read this article, it is estimated that the problem is also a headache;Import and export as a text file, found always error, a lot of solutions, the following is the simplest and thorough method, record.First, locate the My.ini file in the

MySQL Basic operation

Database operations:---View warnings contentShow Warnings---View the current database in theSelect Database ();---see those databasesshow databases;---View database creation informationShow CREATE database S3;---Create a databaseCREATE database if

MySQL Database Specification-Tuning chapter (end article)

Objective This is the last of the MySQL Database Specification-tuning section, which is designed to provide precise positioning and tuning methods that we find are weak in system performance, parameter tuning in MySQL systems, and problems

Remember one time online MySQL database deadlock problem

The recent online project reported a MySQL deadlock (deallock) error, although the business is not any impact, because of their own database lock this piece of knowledge is not much, before also did not how to encounter on the line. This time just

MySQL Query cache Hit rate

working principle:How the query cache works can be broadly summarized as: caching the result set and SQL statements for the select operation or preprocessing query (Note: 5.1.17 start support), a new SELECT statement or a preprocessing query

Basic operation of MySQL database (add and revise) command

This article will describe the basic operations of MySQL data. Pre-installation please self-BaiduOperating environment: Linux Ubuntu 16.04Command line connection The main use of command operation in the work, requires proficiency in writing

MySQL Create temp table

Create a temporary tableCreate Temporary Tablesalessummary (Product_NameVARCHAR( -) not NULL, Total_salesDECIMAL( A,2) not NULL DEFAULT 0.00, Avg_unit_priceDECIMAL(7.2) not NULL DEFAULT 0.00, Total_units_soldINTUNSIGNED not NULL DEFAULT 0);Inserting

Total Pages: 3233 1 .... 1002 1003 1004 1005 1006 .... 3233 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.