Skip to content

Conversation

@acekingke
Copy link
Contributor

What type of PR is this?

/enhancement

Which issue(s) this PR fixes?

Fixes #176

What this PR does?

Summary:

Special notes for your reviewer?

@acekingke acekingke added this to the v2.1.0 milestone Aug 25, 2021
@acekingke acekingke added the enhancement New feature or request label Aug 25, 2021
@acekingke acekingke removed the request for review from TCeason August 25, 2021 02:08
@acekingke acekingke force-pushed the mysql8 branch 2 times, most recently from 3208eaa to b54a488 Compare September 1, 2021 08:43
@acekingke acekingke changed the title cluster,config,sidecar,utils: support the mysql8 #176 cluster,config,sidecar,utils: support the MySQL8.0 #176 Sep 1, 2021
@acekingke acekingke modified the milestones: v2.1.0, v2.2.0 Sep 7, 2021
@acekingke acekingke force-pushed the mysql8 branch 2 times, most recently from e5e2320 to 7562043 Compare January 18, 2022 07:35
@acekingke acekingke self-assigned this Jan 18, 2022
@acekingke acekingke marked this pull request as draft January 18, 2022 07:37
@andyli029
Copy link
Contributor

Notice: xtrabackup 8.0 is different to xtrabackup 2.4

@acekingke
Copy link
Contributor Author

Notice: xtrabackup 8.0 is different to xtrabackup 2.4

Use the following build image:
docker build --build-arg XTRABACKUP_PKG=percona-xtrabackup-80 -f Dockerfile.sidecar -t ${SIDECAR_IMG} .

@andyli029 @runkecheng

@runkecheng
Copy link
Collaborator

runkecheng commented Jan 20, 2022

Remove parameters of tokudb

 mysql57_conf = """
            "mysql": {
                    "version": "mysql57",
                    "admin": "root",
                    "passwd": "",
                    "host": "localhost",
                    "port": %s,
                    "basedir": "%s",
                    "defaults-file": "%s",
                    "master-sysvars": "tokudb_fsync_log_period=default;sync_binlog=default;innodb_flush_log_at_trx_commit=default",
                    "slave-sysvars":  "tokudb_fsync_log_period=1000;sync_binlog=1000;innodb_flush_log_at_trx_commit=1",
                    "ping-timeout": %s,
                    "admit-defeat-ping-count": 3,
                    "semi-sync-timeout-for-two-nodes": %s
            },
              ......

        mysql80_conf = """
            "mysql": {
                    "version": "mysql80",
                    "admin": "root",
                    "passwd": "",
                    "host": "localhost",
                    "port": %s,
                    "basedir": "%s",
                    "defaults-file": "%s",
                    "master-sysvars": "sync_binlog=default;innodb_flush_log_at_trx_commit=default",
                    "slave-sysvars":  "sync_binlog=1000;innodb_flush_log_at_trx_commit=1",
                    "ping-timeout": %s,
                    "admit-defeat-ping-count": 3,
                    "semi-sync-timeout-for-two-nodes": %s
            },
           ......

@acekingke
Copy link
Contributor Author

Remove parameters of tokudb

 mysql57_conf = """
            "mysql": {
                    "version": "mysql57",
                    "admin": "root",
                    "passwd": "",
                    "host": "localhost",
                    "port": %s,
                    "basedir": "%s",
                    "defaults-file": "%s",
                    "master-sysvars": "tokudb_fsync_log_period=default;sync_binlog=default;innodb_flush_log_at_trx_commit=default",
                    "slave-sysvars":  "tokudb_fsync_log_period=1000;sync_binlog=1000;innodb_flush_log_at_trx_commit=1",
                    "ping-timeout": %s,
                    "admit-defeat-ping-count": 3,
                    "semi-sync-timeout-for-two-nodes": %s
            },
              ......

        mysql80_conf = """
            "mysql": {
                    "version": "mysql80",
                    "admin": "root",
                    "passwd": "",
                    "host": "localhost",
                    "port": %s,
                    "basedir": "%s",
                    "defaults-file": "%s",
                    "master-sysvars": "sync_binlog=default;innodb_flush_log_at_trx_commit=default",
                    "slave-sysvars":  "sync_binlog=1000;innodb_flush_log_at_trx_commit=1",
                    "ping-timeout": %s,
                    "admit-defeat-ping-count": 3,
                    "semi-sync-timeout-for-two-nodes": %s
            },
           ......

image
MySQL8 initTokoDB must be false

@acekingke
Copy link
Contributor Author

acekingke commented Jan 20, 2022

After add data, then clone int, sacle out from 2 to 3, then got error:

2022-01-20T13:51:23.689045+08:00 14 [ERROR] [MY-010584] [Repl] Slave I/O for channel '': error connecting to 
plugin 'caching_sha2_password' reported error: Authentication requires secure connection. Error_code: MY-002061

2022-01-20T13:52:23.690476+08:00 14 [ERROR] [MY-010584] [Repl] Slave I/O for channel '': error connecting to master 'radondb_repl@sample-mysql-1.sample-mysql.default:3306' - retry-time: 60 retries: 2 message: Authentication plugin 'caching_sha2_password' reported error: Authentication requires secure connection. Error_code: MY-002061

change the config file
"default-authentication-plugin": "mysql_native_password",
can fixed

@andyli029
Copy link
Contributor

andyli029 commented Mar 10, 2022

@acekingke acekingke marked this pull request as ready for review March 10, 2022 03:02
Copy link
Collaborator

@runkecheng runkecheng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cluster,config,sidecar,utils -> *

@runkecheng runkecheng changed the title cluster,config,sidecar,utils: support the MySQL8.0 #176 *: Support the MySQL8.0 #176 Mar 22, 2022
@andyli029 andyli029 added this to the v2.2.0 milestone Mar 29, 2022
@acekingke acekingke force-pushed the mysql8 branch 2 times, most recently from 60781dd to cfd9164 Compare March 30, 2022 02:28
@acekingke acekingke marked this pull request as ready for review March 30, 2022 03:04
@runkecheng
Copy link
Collaborator

Add a tutorial and sample yaml for mysql 8.

@acekingke acekingke force-pushed the mysql8 branch 2 times, most recently from b1e0d05 to f69906e Compare April 1, 2022 07:55
@GuishengZhou
Copy link

[mysqld]
default_authentication_plugin=mysql_native_password
port = 3306
basedir = /opt/mysql
datadir =/data/mysql/
socket = /tmp/mysql.sock
log-error =error.txt

server_id=50165
binlog_format = row
log-bin=mysql-bin
open_files_limit=65536
max_connections=1024
core-file

##semi-sync
#plugin-load="semisync_master.so;semisync_slave.so"
#rpl_semi_sync_master_enabled=OFF
#rpl_semi_sync_slave_enabled=ON
#rpl_semi_sync_master_wait_no_slave=ON
#rpl_semi_sync_master_timeout=1000000000000000000

use file to init default-file
##repl
skip-slave-start
gtid-mode = ON
enforce-gtid-consistency = ON
slave_parallel_type = LOGICAL_CLOCK
slave_parallel_workers=128
log-slave-updates

#innodb
innodb_buffer_pool_size=4G

sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
slave_rows_search_algorithms=INDEX_SCAN,HASH_SCAN
lower_case_table_names=1

@acekingke acekingke force-pushed the mysql8 branch 2 times, most recently from 3421ca7 to 1db31f4 Compare April 2, 2022 02:25
@radondb radondb deleted a comment from runkecheng Apr 2, 2022
@acekingke acekingke force-pushed the mysql8 branch 4 times, most recently from cba15eb to 298f351 Compare April 2, 2022 03:48
@andyli029
Copy link
Contributor

andyli029 commented Apr 2, 2022

First merged to v2.2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request require-doc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] support MySQL 8.0

5 participants