First, MySQL multi-instance IntroductionOpen several different service ports (3306,33307,3308) on one server, run multiple MySQL service processes, share a set of MySQL installers, multi-instance MySQL is logically independent1, multi-instance
Lab Environment:Two MARIADB servers, IP: 172.16.2.16 and 172.16.2.17The version of MARIADB is 5.5.36, which is installed using binary mode. The installation is complete./mydata/data Database File storage directory/mydata/binlog/binary log file
1. SOURCE Package DownloadSource package is usually also used tar.gz compression, the name contains only version information, the size of the RPM package, the binary package is much smaller, the extracted files contain install-source files, from the
Rotor http://www.linuxidc.com/Linux/2015-06/119354.htmDirectoryPreparatory workOperating EnvironmentConfirm your version of the installationDownload MySQLInstall MySQLPreparing the installation EnvironmentCompiling and installingConfigure
MySQL configuration file mysql.ini parameters, MySQL performance optimizationMy.ini (Linux system is my.cnf), when the MySQL server starts it will read this file, set the relevant operating environment parameters.The My.ini is divided into two
MySQL is divided into development version and stable version (GA), the development version has the latest features, but not stable, nor completely tested, there may be serious bugs, and stable version is a long time testing, eliminate the known bugs,
The MySQL default data document storage directory is/var/lib/mysql. The following steps are required if you want to move the MySQL directory to/home/data: 1. Create a Directory Cd/opt && mkdir Data 2. Stop the MySQL service process Mysqladmin-u root-
Precautions:As long as the following 4 points, 2 MySQL can be installed simultaneously to a machine PS: Can extrapolate, a machine as long as you load enough, want to install a few can. Here are 2 examples:My test server is configured to 2 6-core
Environment: CentOS 6.5 mysql 5.6Service db1:192.168.235.134Service db2:192.168.235.1491. Set the sync account password and permissionsService DB1Mysql> Grant all privileges on * * to [e-mail protected] identified by ' 123 ' with GRANT option; Query
because the new and old Project database version gap is too large, the encoding format is different, the engine is different, so had to install two databases. This time installs two MySQL database, the version is 4.0.18,5.5.36 respectively.
MySQL cluster tutorial (iv)A master more from the environment to build:A: Environment configuration (#号后内容记得删除)Configuring the master-slave MySQL profile my.cnfMain (3307) joinLog-bin=mysql-bin #表示启用二进制日志server-id=3307 #表示server编号, the number must
Prerequisite PreparationDo the test or the use of binary installation, simple and fast, in the original environment to install a good foundation.mysql-5.6.x binary version installation record http://koumm.blog.51cto.com/703525/1762167Individuals do
One: Concept understanding:1.tid:transaction ID, which is the transaction ID number of the MySQL server. 2.gtid:global Transaction ID, global transaction ID, no two thing IDs are the same in the entire master-slave replication schema.3. The global
First Step: Environment configurationClone and configure two hosts, one for master and one for slave. and shut down the firewall.SYSTEMCLT Disable FIREWALLDStep Two: Modify Master HostModify the master host's my.cnf[Mysqld]#port
because the new and old Project database version number gap is too large. The encoding format is different. The engine is different, so it's only good to install two databases. Install two MySQL databases this time. The version numbers are each 4.0.1
I. Introduction to the Environment(1)系统环境介绍:[[email protected] ~]# uname -aLinux linux-node2 3.10.0-693.5.2.el7.x86_64 #1 SMP Fri Oct 20 20:32:50 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux[[email protected] ~]# cat /etc/redhat-release CentOS Linux
My.ini (Linux system is my.cnf), when the MySQL server starts it will read this file, set the relevant operating environment parameters.The My.ini is divided into two blocks: the Client section and the server section.The client section is used to
MySQL installation and multi-instance, configuration optimizationYum Install tree nmap sysstat Lrzsz dos2unix-yInstall the related packagesTAR-XF cmake-2.8.8.tar.gzCD cmake-2.8.8./configureMake && make installYum install gcc gcc-c++ autoconf*
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.