Troubleshooting MySQLReplication error example _ MySQL

Source: Internet
Author: User
An error occurred while solving MySQLReplication: OS: redhat as4
Master: MySQL 4.0.23
Slave: MySQL 5.0.37

An error message in the slave log is as follows:

060807 11:40:17 [ERROR] While trying to obtain the list
Slaves from the master 'XXX. xxx. xxx: 3306 ', user 'Rep' got
Following error: 'Access denied. You need the REPLICATION SLAVE
Privilege for this operation'

On the master node, run the following statement to view permissions:

Mysql> show grant for 'Rep '@ '192. 168.0.2'/G
* *************************** 1. row ***************************
Grants for rep@192.168.0.2: grant select, REPLICATION SLAVE ON
*. * TO 'rep '@ '192. 168.0.2' identified by password 'XXX'

I have already granted the replicaion slave permission. why do I still report this error?
You can view the manual and source code to know that slave needs to execute a statement to update the slave list:

Show slave hosts;

To execute this statement, you need the replicaion client permission. Therefore, an error is reported. Therefore, you only need to add the replicaion client permission to the 'rep 'account.
In addition, the replicaion client permission does not appear to be used in old versions such as MySQL 4.0/4.1.

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.