Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
嗨,我试图在 centos 7 服务器上安装多个 mysql 5.6 实例。我试图将文件 my.cnf 复制到指向新数据目录的 my2.cnf,我使用 mysqld_install_db 命令创建了一个新数据目录,但之后我不知道如何使用以下配置创建另一个进程我的 my2.cnf 有人可以帮帮我吗?
我的目的是将每个实例与不同的服务器同步。
谢谢你。
有一种方法可以在 mysqld 命令行上指定 .cnf 的位置。mysqld --config=my.cnf ; mysqld --config=my2.cnf不记得它是什么,但无论这些选项碰巧是什么,你基本上都有。– 马克 B
mysqld --config=my.cnf ; mysqld --config=my2.cnf