3ノードmysqlユーザ相互信頼方法
455 ワード
mysql ssh
,
cd /home/mysql/.ssh
(1) :
ssh-keygen -t rsa # , , 。
(2) 1
ssh-copy-id -i id_rsa.pub mysql@devdb02
ssh-copy-id -i id_rsa.pub mysql@devdb03
(3) 2
ssh-copy-id -i id_rsa.pub mysql@devdb01
ssh-copy-id -i id_rsa.pub mysql@devdb03
(4) 3
ssh-copy-id -i id_rsa.pub mysql@devdb01
ssh-copy-id -i id_rsa.pub mysql@devdb02
# ( )
ssh devdb01
ssh devdb02
ssh devdb03