有时,我们的机器上面装了很多个mysql,但只有一个3306端口,其余的mysql服务器需要重新指定端口。我们需要多个配置文件来启动它们。那么我们怎么通过指定配置文件的方式来启动呢?
 
例如,按照/usr/local/mysql/my.cnf进行启动,可以这么做:
 
/sbin/mysqld --defaults-file=/usr/local/mysql/my.cnf --user=root

相关文章:

  • 2021-11-13
  • 2021-11-07
  • 2021-11-25
  • 2022-02-11
  • 2022-12-23
  • 2021-11-13
  • 2021-06-25
  • 2021-11-01
猜你喜欢
  • 2021-12-19
  • 2022-12-23
  • 2021-08-17
  • 2021-05-04
  • 2022-12-23
  • 2022-12-23
  • 2021-12-17
相关资源
相似解决方案