Project scenario:
Master slave connection method
Problem Description:
Last_IO_Errno: 2003 Last_IO_Error: error connecting to master '[email protected]:3306' - retry-time: 60 retries: 7
Cause analysis:
-
- when trying to log in to the master database to copy users from the server, an error of 113 is found
[ root@localhost mysql]# mysql -urepl -p123 -h 192.168.8.131 -P 3306 mysql: [Warning] Using a password on the command line interface can be insecure. Error 2003 (HY000): can't connect to MySQL server on '192.168.8.131' (113)
-
- check whether the main server firewall is closed. It is found that it is closed. It is speculated that the port is not open
systemctl status firewalld service
-
- 3. Check whether the 3306 port of the main database is open to the public. It is found that it is no
firewall CMD -- zone = public -- Query port = 3306/TCP
-
- 4 Open 3306 port
firewall CMD -- zone = public -- add port = 3306/TCP -- permanent
-
- 5 Update firewall
firewall CMD -- reload
Solution:
The master-slave replication connecting problem is mainly caused by the master and slave libraries can not be connected, after this problem found that although the firewall has been closed, but the port is not necessarily open to the public state, you need to set their own.
Read More:
- Solve git upload file error [rejected] master -> master (fetch first) error: failed to push some refs to ‘
- How to Solve dyn_small_obs_avoidance Compile Error (eigen version Issue)
- linux(aarch64): How to Fix kettle Startup Error Issue
- [Realtek sdk-4.4.1] RTL8198D How to Fix pptp/l2tp HW checksum error issue
- Linux: How to Solve Rabbitmq Plug-in Install Error
- [Git] Solve git branch -M main error: refname refs/heads/master not found
- [Solved] Exception in replication between CentOS virtual machine and host
- Push to origin/Master was rejected [How to Solve]
- How to Solve NPM Error: listen EADDRINUSE 127.0.0.1:8080
- How to Solve insufficent privileges error: Ora-01031
- How to Solve Oracle startup monitoring error
- How to Solve Ubuntu “Failed to fetch” Error
- Initializing the Kubernetes master node ERROR: failed to pull image registry.aliyuncs.com/google_containers/coredns:v1.8.0
- How to Solve No approve protocol error when running kettle on Linux
- How to Solve Error: Address already in use
- How to Solve Roscore Run error [Install ROS]
- How to Solve Xmind Install Error in Ubuntu System
- [Solved] Linux error E: dpkg is broken, you must manually run ‘sudo dpkg –configure -a’ to resolve this issue
- How to Solve Git Filename too long Error
- Linux: How to Solve vim ~/.bashrc Execute Error