通过 ssh 进行 mysql 复制 - 失败
我已经按照本指南设置了 mysql 复制: http ://robpickering.com/2011/02/mysql-replication-over-an-ssh-tunnel-373
我配置了我的主服务器和我的从服务器,并通过设置连接自动SSH。
为了测试这一点,我通过以下命令通过从站登录到主站
mysql -h 127.0.0.1 -P 3305 -uslave_user -p
,是的,我可以连接。
然后我尝试重新启动从站,但我得到了这个
Stopping MySQL database server: mysqld.
Starting MySQL database server: mysqld . . . . . . . . . . . . . . failed!
确定,我尝试查看 mysql.err 文件,但它是空的(/var/log/mysql.err)
我是否在查看错误的文件或者是有什么奇怪的事情发生吗?
I've set up an mysql replication following this guide: http://robpickering.com/2011/02/mysql-replication-over-an-ssh-tunnel-373
I configured my master and my slave, and set up a connection via autossh.
To test this, i logged into the master via the slave by the following command
mysql -h 127.0.0.1 -P 3305 -uslave_user -p
And yes, i could conncet.
Then i tried to restart the slave, but i got this
Stopping MySQL database server: mysqld.
Starting MySQL database server: mysqld . . . . . . . . . . . . . . failed!
ok, i tried to have a look at the mysql.err file, but it is empty (/var/log/mysql.err)
am i looking at the wrong file or is there something strange going on?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我发现我的配置文件中有错误。不知道为什么它没有出现在任何地方,但我通过以下命令找到了它:
这个文件出现了,我在 my.cnf 中拼写了一个配置属性
希望这会对某人有所帮助!
I've found out, that i had an error in my config file. No idea why it didn't showed up anywhere, but i found it out with the following command:
This file than showed up, that i missspelled a config attribute in my my.cnf
Hope this will help someone!