📜  在命令行上检查 mysql 状态 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:11.259000             🧑  作者: Mango

代码示例1
$ systemctl status mysql
● mysql.service - LSB: Start and stop the mysql database server daemon
     Loaded: loaded (/etc/init.d/mysql; generated)
     Active: active (running) since Tue 2021-05-18 13:34:02 CEST; 12s ago
       Docs: man:systemd-sysv-generator(8)
    Process: 127538 ExecStart=/etc/init.d/mysql start (code=exited, status=0/SUCCESS)
      Tasks: 33 (limit: 9079)
     Memory: 100.8M
        CPU: 569ms
...