简体   繁体   中英

How to Replicate MySQL table from PhpMyAdmin to MySQL Workbench in different systems?

I have a production system and a backup system. production system is running on Xampp server where as backup has Standalone Apache 2.4 and MySQL servers. I want to replicate from phpMyAdmin to Workbench over LAN in real time . PhpMyAdmin to PhpMyAdmin replication is working but to Workbench is to over a LAN.

error connecting to master 'root@192.168.1.102:3306' - retry-time: 60 retries: 11 message: Access denied for user 'root'@'username' (using password: NO) |
1064 |

Error 'You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'identified by ''' at line 1' on query. Default database: ''. Query: 'grant all on . to root@'192.168.1.102' identified by '''

As Noob Coder mentioned, Xampp was running Mysql 5.x while workbench was running Mysql 8.0. It was an issue of versions. Mysql 8.0 has cached SHA256 password encryption while Mysql 5.x has standard encryption and hence access denial was the case. Thanks to RiggsFolly and Noob Coder for the mentions.

Both PhpMyAdmin and Workbench are clients for interacting with the database. You are wrong with using the term replicate probably because off replication is the mechanism of DB engine, that allows having the copies of the database (slaves) being automatically updated with master data. So to connect to DB with Workbench you need to set up a new connection. Credantials are: Hostname: localhost Port: 3306 Username: root Password: password you set for your db in PhpMyAdmin

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM