mysql.gtid slave pos_Failed to load slave replication state from table mysql.gtid_slave_pos: 1146: T...

MariaDB 10.0.3 Alpha install on Fedora 17 x86_64

MariaDB 10.0.3 Alphawas just released.

So for those of you that recall my previous MariaDB 5.5 install post, I decided to see how it works with 10.0.3.

I like some of the features that are going into the MariaDB and Percona releases. Even if you are a big supporter of MySQL, when features are available in these releases that are not being back ported into MySQL releases DBAs have to review their options and make a choice.

So the install....

As I said before from the previous post I have this installed. So I will just to an upgrade first.

[root@Fedora64 10]# rpm -qa | grep maria

mariadb-5.5.31-1.fc17.x86_64

mariadb-server-5.5.31-1.fc17.x86_64

mariadb-libs-5.5.31-1.fc17.x86_64

mariadb-bench-5.5.31-1.fc17.x86_64

mariadb-devel-5.5.31-1.fc17.x86_64

So  packages conflicted at the start.

MariaDB-10.0.3-fedora17-x86_64-client.rpm

MariaDB-10.0.3-fedora17-x86_64-common.rpm

MariaDB-10.0.3-fedora17-x86_64-compat.rpm

MariaDB-10.0.3-fedora17-x86_64-connect-engine.rpm

MariaDB-10.0.3-fedora17-x86_64-devel.rpm

MariaDB-10.0.3-fedora17-x86_64-server.rpm

MariaDB-10.0.3-fedora17-x86_64-shared.rpm

MariaDB-10.0.3-fedora17-x86_64-test.rpm

[root@Fedora64 10]# rpm -Uhv *.rpm

warning: MariaDB-10.0.3-fedora17-x86_64-client.rpm: Header V3 DSA/SHA1 Signature, key ID 1bb943db: NOKEY

error: Failed dependencies:

libodbc.so.2()(64bit) is needed by MariaDB-connect-engine-10.0.3-1.x86_64

MySQL-devel conflicts with (installed) mariadb-devel-5.5.31-1.fc17.x86_64

MariaDB-server-10.0.3-1.x86_64 conflicts with file from package mariadb-server-5.5.31-1.fc17.x86_64

[root@Fedora64 10]#

So this is just a Virtualbox instance, for demo and

evaluation, so I just removed all that I could and had to uninstall.  I

was hopeful that an upgrade would work but this is Alpha code still.

ie:

[root@Fedora64 10]# rpm -e mariadb mariadb-server mariadb-bench

[root@Fedora64 10]# rpm -e mariadb-libs perl-DBD-MySQL percona-xtrabackup

So now that the past is cleared out...

[root@Fedora64 10]# rpm -ihv *.rpm

Preparing...                ########################################### [100%]

1:MariaDB-common         ########################################### [ 11%]

2:MariaDB-server         ########################################### [ 22%]

3:MariaDB-cassandra-engin########################################### [ 33%]

4:MariaDB-client         ########################################### [ 44%]

5:MariaDB-devel          ########################################### [ 56%]

6:MariaDB-shared         ########################################### [ 67%]

7:MariaDB-test           ########################################### [ 78%]

8:MariaDB-compat         ########################################### [ 89%]

9:galera                 ########################################### [100%]

If you recall the past post, I got the init.d script this time..

[root@Fedora64 10]# /etc/init.d/mysql start

Starting MySQL..... SUCCESS!

[root@Fedora64 10]# mysql

Welcome to the MariaDB monitor.  Commands end with ; or \g.

Your MariaDB connection id is 2

Server version: 10.0.3-MariaDB MariaDB Server

If they are not terrible on performance then I do not see why these are not on by default:

vi /etc/my.cnf

[mysqld]

userstat=1

feedback=ON

# https://kb.askmonty.org/en/user-feedback-plugin/

MariaDB [(none)]> show variables like '%feedback%';

+--------------------------+------------------------------------------+

| Variable_name            | Value                                    |

+--------------------------+------------------------------------------+

| feedback_send_retry_wait | 60                                       |

| feedback_send_timeout    | 60                                       |

...

| feedback_url             | https://mariadb.org/feedback_plugin/post |

| feedback_user_info       |                                          |

+--------------------------+------------------------------------------+

MariaDB [(none)]> show variables like '%userstat%';

+---------------+-------+

| Variable_name | Value |

+---------------+-------+

| userstat      | ON    |

+---------------+-------+

Issues I found 30seconds after install...:

MariaDB [(none)]> show variables;

ERROR 1946 (HY000): Failed to load replication slave GTID position from table mysql.gtid_slave_pos

That is it so far... I have it installed and can review now...

UPDATE:

I have submitted this as a bug.

The MariaDB team got right back to me and pointed out that I failed to

run mysql_upgrade and restart. That fixed the Error listed above. Still

variables feels like it should show everything it has but this is a

valid fix and mistake on my part. Thank you to the MariaDB team.

To learn more:

mysql> show slave status\G *************************** 1. row *************************** Slave_IO_State: Master_Host: 172.20.10.11 Master_User: root Master_Port: 3306 Connect_Retry: 60 Master_Log_File: mysql-bin.000013 Read_Master_Log_Pos: 154 Relay_Log_File: nle-VirtualBox-relay-bin.000001 Relay_Log_Pos: 4 Relay_Master_Log_File: mysql-bin.000013 Slave_IO_Running: No Slave_SQL_Running: Yes Replicate_Do_DB: Replicate_Ignore_DB: Replicate_Do_Table: Replicate_Ignore_Table: Replicate_Wild_Do_Table: Replicate_Wild_Ignore_Table: Last_Errno: 0 Last_Error: Skip_Counter: 0 Exec_Master_Log_Pos: 154 Relay_Log_Space: 154 Until_Condition: None Until_Log_File: Until_Log_Pos: 0 Master_SSL_Allowed: No Master_SSL_CA_File: Master_SSL_CA_Path: Master_SSL_Cert: Master_SSL_Cipher: Master_SSL_Key: Seconds_Behind_Master: NULL Master_SSL_Verify_Server_Cert: No Last_IO_Errno: 1593 Last_IO_Error: Fatal error: The slave I/O thread stops because master and slave have equal MySQL server ids; these ids must be different for replication to work (or the --replicate-same-server-id option must be used on slave but this does not always make sense; please check the manual before using it). Last_SQL_Errno: 0 Last_SQL_Error: Replicate_Ignore_Server_Ids: Master_Server_Id: 2 Master_UUID: Master_Info_File: /var/lib/mysql/master.info SQL_Delay: 0 SQL_Remaining_Delay: NULL Slave_SQL_Running_State: Slave has read all relay log; waiting for more updates Master_Retry_Count: 86400 Master_Bind: Last_IO_Error_Timestamp: 250629 09:20:17 Last_SQL_Error_Timestamp: Master_SSL_Crl: Master_SSL_Crlpath: Retrieved_Gtid_Set: Executed_Gtid_Set: Auto_Position: 0 Replicate_Rewrite_DB: Channel_Name: Master_TLS_Version: 1 row in set (0.00 sec)
06-30
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值