MySQL Master-Slave separation

1. Tools:Two machinesmaster:192.168.0.1slave:192.168.0.22, the master configurationFind MySQL config file, General CentOS is/etc/my.cnf,ubuntu is/etc/mysql/mysql.conf.d/mysqld.cnfSkip to configuration under [Mysqld]# can be commented # unique Node

Linux-centos 7 MySQL Installation

Install CentOS Linux release 7.1.1503 (Core)Link: https://pan.baidu.com/s/1c2rWsbm Password: 5NRT#yum-y install MySQL#yum-y Install Mysql-devel#yum-y Install wget# wget http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm# RPM-IVH mysql-

Mysql Variables & Branches

SELECT Case3 when1Then' One' when2Then' Both'ELSE' More'END; SELECT Case1>0Then'true'ELSE'false'END as' One', case0>0Then'true'ELSE'false'END as' Both'; SELECT Case BINARY'BB' when'a'Then1 when'BB'Then2END; SELECT Case'B' when'a'Then1

MySQL Query optimization Note the following four details

Original: http://bbs.landingbj.com/t-0-244231-1.htmlIn any database, query optimization is an unavoidable topic. For database engineers, optimization is the most challenging task. MySQL Open source database is no exception. In fact, the author

[MySQL] ACID

1. BusinessIt is a sequence of actions that are either executed or not executed. It is an inseparable unit of work.2. ACIDTransactions have four characteristics: atomicity, consistency, isolation, persistence.Atomic NatureA transaction is an

Confluence 6 MySQL Database Setup Preparation

Please check the supported Platforms page for the MySQL database version supported by the confluence system. You need to upgrade your MySQL database before installing confluence.If you migrated from another database to a MySQL database, including

Log on to the Linux server MySQL

Log on to the Linux server on MySQL:1.mysql-uroot-p123This specifies only the user, not the host, which is logged on as localhost by default.2.mysql-hlocalhost-uroot-p-H Database Host-U user-p password-p port number (uppercase P)such as

Update your local MySQL source with MySQL website configuration

参考连接:51759200前提环境:Centos 6.* 本身配置的yum源自带的mysql版本为5.1;后续希望yum安装5.*其他版本的数据库可以使用新增yum源进行测试安装。1. Configure the Yum sourceDownload the Yum source RPM installation package on the MySQL website: http://dev.mysql.com/downloads/repo/yum/2. # download MySQL

MySQL bulk modifies the same suffix table name

Perform steps1. Use Concat to batch generate statements that modify table namesSELECTCONCAT ('ALTER TABLE', TABLE_NAME,'RENAME to', substring(TABLE_NAME,1, locate ('_postfix', table_name)),'_new_postfix',';' )

7 MySQL Learning

June complete the following two book studies:MySQL Technology insider: InnoDB Storage EngineHigh performance MySQLMySQL Frame compositionConnection pooling: Establish a connection to each client process in a thread's modeParser: Understanding the

MySQL inserted in Chinese error problem

Error: 1366, "incorrect string value: ' \\xE6\\xB7\\xB1\\xE5\\x85\\xA5 ... ' for column 'As a result of the company's previous use of Oracle, a recent es+springboot exercise was used to find that when inserting Chinese, it was not

Configuring MySQL in Django

1. Configuration fieldsConfigure database fields in the setting file: The database needs to be created manually in advance: statements (CREATE DATABASE TestDB charset "UTF8";)1DATABASES = {2 'default': {3

MySQL installation environment configuration and other introduction

MySQL installation environment configuration and other introduction1, installation recommendation: MySQL 5.5 installation configuration method graphic Tutorial _mysql2. Configure the environment variable path3,cmd: Enter MySQL mode4, the general use

How to install multiple MySQL or how to change the MySQL service name

This tutorial is suitable for MySQL without installing a version (zipped package):Sometimes you need to install a different MySQL version on a computer, and different versions of MySQL service name are MySQL, there will be conflicting

MySQL optimization (2): Index Brief

first, the basic grammarthe indexes are sorted before they are created. affect the efficiency of where and order by. The index is also a table that holds the primary key and index fields and records that point to the entity table, and is the space

MySQL (5)---Lock

Lockan overviewThe database locking mechanism simply means that the database is designed to ensure the consistency of the data and to make the various shared resources become orderly by concurrent access. A corresponding locking mechanism is

MySQL How to set a password

MySQL How to set a passwordThe newly installed MySQL default is no password, below we direct root user to enter MySQLThere are many ways: 1. After you enter MySQL with root mysql>set password =password (' your password '); Mysql>flush privileges;2.

mysql--Timer function + Process Demo

--Function--Set the time zone set time_zone = ' ";--turn on event Scheduler set GLOBAL Event_scheduler = 1; Drop event if exists commission_zjdj_a_every_hours; # set delimiter to ' $$ ' DELIMITER $$ Create event commission_zjdj_a_every_hours on

MySQL database high concurrency optimized configuration

在Apache, PHP, mysql的体系架构中,MySQL对于性能的影响最大,也是关键的核心部分。对于Discuz!论坛程序也是如此,MySQL的设置是否合理优化,直接 影响到论坛的速度和承载量!同时,MySQL也是优化难度最大的一个部分,不但需要理解一些MySQL专业知识,同时还需要长时间的观察统计并且根据经验

MySQL Modify Redo_log_size

MySQL5.5The steps are as follows:1. Set Global Innodb_fast_shutdown = 0;2. Mysqladmin shutdown3. Modify MY.CNF innodb_log_file_size to specify SIZE4.MV ib_logfile*/bak (no removal, start error) 5.mysqld_safe--DEFAULTS-FILE=/ETC/MY.CNF-- User=mysql

Total Pages: 3233 1 .... 2272 2273 2274 2275 2276 .... 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.