总结:
在初始化的过程中,如果报以下错误:
| FATAL ERROR: Neither host 'keepalived02' nor 'localhost' could be looked up with /mysql3306/mysql/bin/resolveip Please configure the 'hostname' command to return a correct hostname. If you want to solve this at a later stage, restart this script with the --force option |
但是在bash终端上执行hostname命令又确实有值返回,可加--force参数,如下所示:
如果报以下错误:
可将二进制版本中share/english/errmsg.sys文件COPY到/mysql3306/mysql/share/下。
后续:这两个错误的原因都是因为basedir修改了,它默认是在二进制包中查找的。
如何利用脚本实现MySQL的快速部署以及一机多实例的部署,通过这篇文章希望对大家学习MySQL的部署有所帮助。










