解决方案 »

  1.   

    1 半夜是否有什么计划任务
    2 ulimit -a是否足够大
      

  2.   

    回版主大大,半夜没有什么任务的~~
    守护进程无法启动,一直返回以上的错误~~~我只能是手动service mysql restart 这样才正常~~ulimit -a 出现以下信息,不知道如何算大~~程序是PHP的~~不太懂!
    core file size          (blocks, -c) 0
    data seg size           (kbytes, -d) unlimited
    scheduling priority             (-e) 0
    file size               (blocks, -f) unlimited
    pending signals                 (-i) 7970
    max locked memory       (kbytes, -l) 64
    max memory size         (kbytes, -m) unlimited
    open files                      (-n) 1024
    pipe size            (512 bytes, -p) 8
    POSIX message queues     (bytes, -q) 819200
    real-time priority              (-r) 0
    stack size              (kbytes, -s) 8192
    cpu time               (seconds, -t) unlimited
    max user processes              (-u) 7970
    virtual memory          (kbytes, -v) unlimited
    file locks                      (-x) unlimited
      

  3.   

    除了~~大量的这个外~~
    InnoDB: Check that you do not already have another mysqld process
    InnoDB: using the same InnoDB data or log files.
    InnoDB: Unable to lock ./ibdata1, error: 11
    InnoDB: Check that you do not already have another mysqld process
    InnoDB: using the same InnoDB data or log files.
    InnoDB: Unable to lock ./ibdata1, error: 11
    InnoDB: Check that you do not already have another mysqld process
    InnoDB: using the same InnoDB data or log files.
    InnoDB: Unable to lock ./ibdata1, error: 11
    InnoDB: Check that you do not already have another mysqld process
    InnoDB: using the same InnoDB data or log files.
    InnoDB: Unable to lock ./ibdata1, error: 11
    InnoDB: Check that you do not already have another mysqld process
    InnoDB: using the same InnoDB data or log files.
    InnoDB: Unable to lock ./ibdata1, error: 11
    InnoDB: Check that you do not already have another mysqld process
    InnoDB: using the same InnoDB data or log files.
    还有这个错误日志~~
    150125  5:10:18 InnoDB: The InnoDB memory heap is disabled
    150125  5:10:18 InnoDB: Mutexes and rw_locks use GCC atomic builtins
    150125  5:10:18 InnoDB: Compressed tables use zlib 1.2.7
    150125  5:10:18 InnoDB: Using Linux native AIO
    150125  5:10:18 InnoDB: Initializing buffer pool, size = 512.0M
    150125  5:10:18 InnoDB: Completed initialization of buffer pool
    150125  5:10:18 InnoDB: highest supported file format is Barracuda.
    150125  5:10:19  InnoDB: Waiting for the background threads to start
    150125  5:10:20 InnoDB: 5.5.40 started; log sequence number 1672204
    150125  5:10:20 [ERROR] /usr/sbin/mysqld: unknown variable 'defaults-file=/etc/mysql/my.cnf'
    150125  5:10:20 [ERROR] Aborting
      

  4.   


    我装的是vestacp 面板~~会自动备份数据库~~今早起来,又是挂了。~出现:Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
    检查了一下my.cnf,配置文件都对~
    [client]
    port=3306
    socket=/var/run/mysqld/mysqld.sock[mysqld_safe]
    socket=/var/run/mysqld/mysqld.sock[mysqld]
    user=mysql
    pid-file=/var/run/mysqld/mysqld.pid
    socket=/var/run/mysqld/mysqld.sock郁闷了。。~~