启动(指定参数文件):

[root@mysql01 ~]# mysqld_safe --defaults-file=/data/3306/my.cnf &
[root@mysql01 ~]# mysqld_safe --defaults-file=/data/3307/my.cnf &

 

 

关闭(指定socket):

[root@mysql01 ~]# mysqladmin -uroot -p -S /tmp/mysql3306.sock shutdown
[root@mysql01 ~]# mysqladmin -uroot -p -S /tmp/mysql3307.sock shutdown

 

 

mysql多实例启动、关闭

 

 

 上面截图就是因为MySQL数据库多实例启动未指定参数文件。

 

相关文章:

  • 2021-12-19
  • 2022-02-20
  • 2022-02-07
  • 2021-09-21
  • 2021-05-23
  • 2021-11-23
  • 2021-11-11
  • 2021-12-06
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-25
  • 2021-11-05
  • 2022-12-23
  • 2022-01-11
相关资源
相似解决方案