账号密码登录
微信安全登录
微信扫描二维码登录

登录后绑定QQ、微信即可实现信息互通

手机验证码登录
找回密码返回
邮箱找回 手机找回
注册账号返回
其他登录方式
分享
  • 收藏
    X
    mysql每天晚上自动关闭。非要自己手动重启。
    60
    0

    mysql每天莫名奇妙自动关闭,然后本人就去看了下mysql 错误日志。以下是错误日志


    171121 21:18:30 [Note] Plugin 'FEDERATED' is disabled.
    171121 21:18:30 InnoDB: The InnoDB memory heap is disabled
    171121 21:18:30 InnoDB: Mutexes and rw_locks use Windows interlocked functions
    171121 21:18:30 InnoDB: Compressed tables use zlib 1.2.3
    171121 21:18:30 InnoDB: Initializing buffer pool, size = 47.0M
    171121 21:18:30 InnoDB: Completed initialization of buffer pool
    171121 21:18:30 InnoDB: highest supported file format is Barracuda.
    171121 21:18:31 InnoDB: Waiting for the background threads to start
    171121 21:18:32 InnoDB: 5.5.53 started; log sequence number 4733292
    171121 21:18:32 [Note] Server hostname (bind-address): '0.0.0.0'; port: 3306
    171121 21:18:32 [Note] - '0.0.0.0' resolves to '0.0.0.0';
    171121 21:18:32 [Note] Server socket created on IP: '0.0.0.0'.
    171121 21:18:32 [Note] Event Scheduler: Loaded 0 events
    171121 21:18:32 [Note] MySQLa: ready for connections.
    Version: '5.5.53' socket: '' port: 3306 MySQL Community Server (GPL)
    171121 21:18:51 [Note] Plugin 'FEDERATED' is disabled.
    171121 21:18:51 InnoDB: The InnoDB memory heap is disabled
    171121 21:18:51 InnoDB: Mutexes and rw_locks use Windows interlocked functions
    171121 21:18:51 InnoDB: Compressed tables use zlib 1.2.3
    171121 21:18:51 InnoDB: Initializing buffer pool, size = 47.0M
    171121 21:18:51 InnoDB: Completed initialization of buffer pool
    171121 21:18:51 InnoDB: highest supported file format is Barracuda.
    171121 21:18:52 InnoDB: Waiting for the background threads to start
    171121 21:18:53 InnoDB: 5.5.53 started; log sequence number 4733292
    171121 21:18:53 [Note] Server hostname (bind-address): '0.0.0.0'; port: 3306
    171121 21:18:53 [Note] - '0.0.0.0' resolves to '0.0.0.0';
    171121 21:18:53 [Note] Server socket created on IP: '0.0.0.0'.
    171121 21:18:53 [Note] Event Scheduler: Loaded 0 events
    171121 21:18:53 [Note] MySQLa: ready for connections.
    Version: '5.5.53' socket: '' port: 3306 MySQL Community Server (GPL)

    0
    打赏
    收藏
    点击回答
        全部回答
    • 0
    • 你可以通过设置MySQL的自动重启模式来解决这个问题。以下是具体的步骤:

      1. 打开MySQL配置文件(通常是my.cnf)。
      2. 在文件中,找到并找到如下行:

      ```

      Turn off the maintenance daemon

      mysqld保费=0 ```

      1. 将此行的值改为0。例如,如果你想关闭数据库维护,你可以将行改为mysqld保费=0
      2. 保存并关闭文件。
      3. 进入MySQL的命令行界面(通常是MySQL命令提示符)。
      4. 重启MySQL服务。你可以使用以下命令:

      sudo systemctl restart mysqld

      1. 如果MySQL服务仍然无法自动重启,你可能需要重启MySQL的控制台服务。你可以使用以下命令:

      sudo systemctl restart mysql

      请注意,重启MySQL服务可能会导致数据丢失。因此,你应该在执行重启操作之前备份你的数据库数据。

    更多回答
    扫一扫访问手机版
    • 回到顶部
    • 回到顶部