用ssh-tunnel模式加密mysql主从复制
分类:MYSQL日期:2011-05-18作者:雨尚
原理:在mysql从服务器上通过ssh建立隧道,以本机8888端口为例,连接mysql主服务器3306端口,同时在mysql主服务器添加主从复制账号,在mysql从服务器上通过连接本机127.0.0.1:8888(这里不能是localhost)端口进行复制;
具体操作:
mysql从(ssh -f user@master_ip -L 8888:master_ip:3306 -N) ——> mysql从(change master to master_host='127.0.0.1', master_port='8888', master_user='user', master_password='pass',MASTER_LOG_FILE='logbin.000001', MASTER_LOG_POS=804;) ssh以隧道模式从本机8888端口连接mysql主服务器3306端口,mysql从再通过本机127.0.0.1:8888连接mysql主:3306端口 mysql从——>ssh:8888——>mysql主3306
转载请注明来自:LinuxSEE

What a joy to find someone else who thnkis this way.
I thank you humbly for sahirng your wisdom JJWY
Hey, klielr job on that one you guys!
Phneoemnal breakdown of the topic, you should write for me too!
Alright algriht alright that’s exactly what I needed!
Grazi for mkiang it nice and EZ.
I’m so glad I found my slouiton online.
Thats not just logic. Thats rlealy sensible.
Very true! Makes a change to see semoone spell it out like that.
You are so aewsmoe for helping me solve this mystery.
That’s what we’ve all been wiaitng for! Great posting!
Mighty useful. Make no mtisake, I appreciate it.
Extremely helpful article, pealse write more.
Holy Toledo, so glad I ccliked on this site first!
I’m out of league here. Too much brain power on dspilay!
I saw something else with this on another blog. Youve obviously spent a while with this. Well done!
I actually found this more eenrtatining than James Joyce.
Mighty usufel. Make no mistake, I appreciate it.
Hello. fantastic job. I did not imagine this. This is a remarkable story. Thanks!
Youre so cool! I dont suppose Ive learn something like this before. So nice to find any person with some original thoughts on this subject. realy thank you for beginning this up. this web site is something that’s needed on the web, someone with a bit of originality. useful job for bringing one thing new to the web!
When I originally commented I clicked the “Notify me when new comments are added” checkbox and now each time a comment is added I get three emails with the same comment. Is there any way you can remove people from that service? Thanks a lot!
Just desire to say your article is as surprising. The clearness in your post is simply excellent and i can assume you are an expert on this subject. Fine with your permission allow me to grab your RSS feed to keep updated with forthcoming post. Thanks a million and please carry on the gratifying work.
Marvelous items coming from everyone, individual. Advised Looking at you need to Overdue Commence Solutions I had have an understanding of your current activities earlier than and you just are merely particularly amazing. I like what you possess bought in this article, certainly such as whatever you say as well as the way people state this. You actually help it become satisfying so you nonetheless take care of to help keep that prudent. Determine delay to learn even more through everyone. This is generally a fantastic Encouraged Browsing quick Slowed Begin Expert services informations.
Yours is a celevr way of thinking about it.
Hello, you may have below an attractive good stuff now! I truly have a quickly written web page.
Their such as you examine a head! You appear to recognize a great deal concerning this, for example people written your e book inside it or an item. I believe that you just may possibly undertake which includes pct to operate a vehicle the communication dwelling rather, but instead of that, this is exactly wonderful site. An impressive read through. I will undoubtedly come to be backside.
Thanks for sharing excellent informations. Your site is so cool. I am impressed by the details that you have on this website. It reveals how nicely you perceive this subject. Bookmarked this web page, will come back for more articles. You, my friend, ROCK! I found just the information I already searched everywhere and simply couldn’t come across. What a great website.
My buddy and I had been just talking about this particular issue, she is continually wanting to prove me completely wrong! I am going to present her this blog post not to mention rub it in a little!
Thanks-a-mundo for the blog article.Really looking forward to read more. Really Great.