代码之家  ›  专栏  ›  技术社区  ›  Steve Davies

MySQL不以MAMP开头

  •  0
  • Steve Davies  · 技术社区  · 7 年前

    我使用MAMP为一个会话启动并运行了Apache和MySQL。再说一遍,MySQL不会启动。

    有人有什么建议吗?

    2017-09-23 20:44:46 7fffa5a753c0  InnoDB: Operating system error number 2 in a file operation.
    InnoDB: The error means the system cannot find the path specified.
    InnoDB: If you are installing InnoDB, remember that you must create
    InnoDB: directories yourself, InnoDB does not create them.
    InnoDB: Error: could not open single-table tablespace file ./mysql/slave_worker_info.ibd
    InnoDB: We do not continue the crash recovery, because the table may become
    InnoDB: corrupt if we cannot apply the log records in the InnoDB log to it.
    InnoDB: To fix the problem and start mysqld:
    InnoDB: 1) If there is a permission problem in the file and mysqld cannot
    InnoDB: open the file, you should modify the permissions.
    InnoDB: 2) If the table is not needed, or you can restore it from a backup,
    InnoDB: then you can remove the .ibd file, and InnoDB will do a normal
    InnoDB: crash recovery and ignore that table.
    InnoDB: 3) If the file system or the disk is broken, and you cannot remove
    InnoDB: the .ibd file, you can set innodb_force_recovery > 0 in my.cnf
    InnoDB: and force InnoDB to continue crash recovery here.
    170923 20:44:46 mysqld_safe mysqld from pid file /Applications/MAMP/tmp/mysql/mysql.pid ended
    
    2 回复  |  直到 7 年前
        1
  •  1
  •   Steve Davies    7 年前

    到目前为止,我已经开始工作了——我将Mamp中Mysql文件夹的权限更改为读写权限,以及所有包含文件夹的权限,并且似乎工作了。

        2
  •  0
  •   Dev HR    5 年前
    1. 转到/Applications/MAMP/tmp/mysql/并添加新文件mysql。pid
    2. 重新启动mamp