1200字范文,内容丰富有趣,写作的好帮手!
1200字范文 > mysql-5.6+mysql-proxy构建主从复制与读写分离

mysql-5.6+mysql-proxy构建主从复制与读写分离

时间:2020-07-17 17:02:19

相关推荐

mysql-5.6+mysql-proxy构建主从复制与读写分离

数据库|mysql教程

mysql,mysql-proxy

数据库-mysql教程

餐饮类响应式源码,ubuntu怎么删除内核,tomcat8调堆栈大小,java国人爬虫框架,php如何修改图片大小,高要seo优化lzw

环境:系统:CentOS-6.5MySQL-masterIP:192.168.1.10MySQL-slaveIP:192.168.1.11ProxryIP:192.167.1.12——安装MySQL1)创建mysql用户[root@mater~]#mysql-M-s/s

支付系统php源码下载,鲲鹏920ubuntu,爬虫教程豆瓣影评,php rule,seo391lzw

安卓应用app源码下载,ubuntu 根目录只读,tomcat最常用的功能,爬虫抓取分析,php18期课程,石柱外贸seolzw

环境:

系统:CentOS-6.5

MySQL-master

IP:192.168.1.10

MySQL-slave

IP:192.168.1.11

Proxry

IP:192.167.1.12

——安装MySQL

1)创建mysql用户

[root@mater ~]# mysql -M -s /sbin/nologin mysql

2)安装软件所需依赖包

[root@master ~]# yum install gcc gcc-c++ autoconf automake ncurses-devel libtool-ltdl-devel* libaio libaio-devel -y

3)解压安装MySQL [这里下载的是免安装版本]

[root@master linux]# tar fzvx mysql-5.6.16-linux-x86_64.tar.gz -C /usr/local/

[root@master linux]# mv mysql-5.6.16-linux-x86_64 mysql

[root@master local]# cd mysql/

[root@master mysql]# chown -R root:mysql .

[root@master mysql]# chown -R mysql:mysql data/

[root@master mysql]# ./scripts/mysql_install_db –user=mysql \

> –basedir=/usr/local/mysql/ \

> –datadir=/usr/local/mysql/data/

WARNING: The host ‘master’ could not be looked up with /usr/local/mysql//bin/resolveip.

This probably means that your libc libraries are not 100 % compatible

with this binary MySQL version. The MySQL daemon, mysqld, should work

normally with the exception that host name resolving will not work.

This means that you should use IP addresses instead of hostnames

when specifying MySQL privileges !

Installing MySQL system tables…-04-26 19:57:06 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use –explicit_defaults_for_timestamp server option (see documentation for more details).

-04-26 19:57:06 1258 [Note] InnoDB: Using atomics to ref count buffer pool pages

-04-26 19:57:06 1258 [Note] InnoDB: The InnoDB memory heap is disabled

-04-26 19:57:06 1258 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins

-04-26 19:57:06 1258 [Note] InnoDB: Compressed tables use zlib 1.2.3

-04-26 19:57:06 1258 [Note] InnoDB: Using Linux native AIO

-04-26 19:57:06 1258 [Note] InnoDB: Using CPU crc32 instructions

-04-26 19:57:06 1258 [Note] InnoDB: Initializing buffer pool, size = 128.0M

-04-26 19:57:07 1258 [Note] InnoDB: Completed initialization of buffer pool

-04-26 19:57:07 1258 [Note] InnoDB: The first specified data file ./ibdata1 did not exist: a new database to be created!

-04-26 19:57:07 1258 [Note] InnoDB: Setting file ./ibdata1 size to 12 MB

-04-26 19:57:07 1258 [Note] InnoDB: Database physically writes the file full: wait…

-04-26 19:57:07 1258 [Note] InnoDB: Setting log file ./ib_logfile101 size to 48 MB

-04-26 19:57:11 1258 [Note] InnoDB: Setting log file ./ib_logfile1 size to 48 MB

-04-26 19:57:15 1258 [Note] InnoDB: Renaming log file ./ib_logfile101 to ./ib_logfile0

-04-26 19:57:15 1258 [Warning] InnoDB: New log files created, LSN=45781

-04-26 19:57:15 1258 [Note] InnoDB: Doublewrite buffer not found: creating new

-04-26 19:57:15 1258 [Note] InnoDB: Doublewrite buffer created

-04-26 19:57:15 1258 [Note] InnoDB: 128 rollback segment(s) are active.

-04-26 19:57:15 1258 [Warning] InnoDB: Creating foreign key constraint system tables.

-04-26 19:57:16 1258 [Note] InnoDB: Foreign key constraint system tables created

-04-26 19:57:16 1258 [Note] InnoDB: Creating tablespace and datafile system tables.

-04-26 19:57:16 1258 [Note] InnoDB: Tablespace and datafile system tables created.

-04-26 19:57:16 1258 [Note] InnoDB: Waiting for purge to start

-04-26 19:57:16 1258 [Note] InnoDB: 5.6.16 started; log sequence number 0

-04-26 19:57:16 1258 [Note] RSA private key file not found: /usr/local/mysql/data//private_key.pem. Some authentication plugins will not work.

-04-26 19:57:16 1258 [Note] RSA public key file not found: /usr/local/mysql/data//public_key.pem. Some authentication plugins will not work.

-04-26 19:57:17 1258 [Note] Binlog end

-04-26 19:57:17 1258 [Note] InnoDB: FTS optimize thread exiting.

-04-26 19:57:17 1258 [Note] InnoDB: Starting shutdown…

-04-26 19:57:19 1258 [Note] InnoDB: Shutdown completed; log sequence number 1625977

OK

Filling help tables…-04-26 19:57:19 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use –explicit_defaults_for_timestamp server option (see documentation for more details).

-04-26 19:57:19 1281 [Note] InnoDB: Using atomics to ref count buffer pool pages

-04-26 19:57:19 1281 [Note] InnoDB: The InnoDB memory heap is disabled

-04-26 19:57:19 1281 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins

-04-26 19:57:19 1281 [Note] InnoDB: Compressed tables use zlib 1.2.3

-04-26 19:57:19 1281 [Note] InnoDB: Using Linux native AIO

-04-26 19:57:19 1281 [Note] InnoDB: Using CPU crc32 instructions

-04-26 19:57:19 1281 [Note] InnoDB: Initializing buffer pool, size = 128.0M

-04-26 19:57:19 1281 [Note] InnoDB: Completed initialization of buffer pool

-04-26 19:57:19 1281 [Note] InnoDB: Highest supported file format is Barracuda.

-04-26 19:57:19 1281 [Note] InnoDB: 128 rollback segment(s) are active.

-04-26 19:57:19 1281 [Note] InnoDB: Waiting for purge to start

-04-26 19:57:19 1281 [Note] InnoDB: 5.6.16 started; log sequence number 1625977

-04-26 19:57:19 1281 [Note] RSA private key file not found: /usr/local/mysql/data//private_key.pem. Some authentication plugins will not work.

-04-26 19:57:19 1281 [Note] RSA public key file not found: /usr/local/mysql/data//public_key.pem. Some authentication plugins will not work.

-04-26 19:57:19 1281 [Note] Binlog end

-04-26 19:57:19 1281 [Note] InnoDB: FTS optimize thread exiting.

-04-26 19:57:19 1281 [Note] InnoDB: Starting shutdown…

-04-26 19:57:21 1281 [Note] InnoDB: Shutdown completed; log sequence number 1625987

OK

To start mysqld at boot time you have to copy

support-files/mysql.server to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !

To do so, start the server, then issue the following commands:

/usr/local/mysql//bin/mysqladmin -u root password ‘new-password’

/usr/local/mysql//bin/mysqladmin -u root -h master password ‘new-password’

Alternatively you can run:

/usr/local/mysql//bin/mysql_secure_installation

which will also give you the option of removing the test

databases and anonymous user created by default. This is

strongly recommended for production servers.

See the manual for more instructions.

You can start the MySQL daemon with:

cd . ; /usr/local/mysql//bin/mysqld_safe &

You can test the MySQL daemon with mysql-test-run.pl

cd mysql-test ; perl mysql-test-run.pl

Please report any problems at

The latest information about MySQL is available on the web at

Support MySQL by buying support/licenses at

New default config file was created as /usr/local/mysql//f and

will be used by default by the server when you start it.

You may edit this file to change server settings

WARNING: Default config file /etc/f exists on the system

This file will be read by default by the MySQL server

If you do not want to use this, either remove it, or use the

–defaults-file argument to mysqld_safe when starting the server.

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。