- android - RelativeLayout 背景可绘制重叠内容
- android - 如何链接 cpufeatures lib 以获取 native android 库?
- java - OnItemClickListener 不起作用,但 OnLongItemClickListener 在自定义 ListView 中起作用
- java - Android 文件转字符串
我使用 MAMP 已经有一段时间了,但几个月前它开始给我带来问题。从那以后,我通过谷歌搜索和堆栈溢出在线查看以找到解决方案,但我还没有看到任何可以帮助我的东西。
我搜索了一些文章,但我认为这些文章对我有帮助但没有:
MAMP mysql not starting我不确定我的数据目录的路径?我在终端中输入的任何内容似乎都因为找不到命令而返回
Mysql service won't start, InnoDB init function error
MAMP mysql server won't start. No mysql processes are running我试图 killall 但显示“没有找到属于你的匹配进程”错误
大约一个小时前,我的 mqsql 正在工作,但不是 apache,所以我发现文章说将 Library/bin/envvars 重命名为 _envvars,apache 在启动时工作,但 mysql 没有。
我的 php 日志中没有收到任何错误,但这是我的 apache 和 mysql 日志。
这是 mysql 错误日志底部的片段
InnoDB: using the same InnoDB data or log files.
InnoDB: Unable to lock ./ibdata1, error: 35
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: 35
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: 35
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: 35
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: 35
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: 35
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: 35
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: 35
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: 35
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: 35
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: 35
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: 35
InnoDB: Check that you do not already have another mysqld process
InnoDB: using the same InnoDB data or log files.
170118 15:52:39 InnoDB: Unable to open the first data file
InnoDB: Error in opening ./ibdata1
170118 15:52:39 InnoDB: Operating system error number 35 in a file operation.
InnoDB: Error number 35 means 'Resource temporarily unavailable'.
InnoDB: Some operating system error numbers are described at
InnoDB: http://dev.mysql.com/doc/refman/5.5/en/operating-system-error-codes.html
170118 15:52:39 InnoDB: Could not open or create data files.
170118 15:52:39 InnoDB: If you tried to add new data files, and it failed here,
170118 15:52:39 InnoDB: you should now edit innodb_data_file_path in my.cnf back
170118 15:52:39 InnoDB: to what it was, and remove the new ibdata files InnoDB created
170118 15:52:39 InnoDB: in this failed attempt. InnoDB only wrote those files full of
170118 15:52:39 InnoDB: zeros, but did not yet use them in any way. But be careful: do not
170118 15:52:39 InnoDB: remove old data files which contain your precious data!
170118 15:52:39 [ERROR] Plugin 'InnoDB' init function returned error.
170118 15:52:39 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
170118 15:52:39 [ERROR] Unknown/unsupported storage engine: InnoDB
170118 15:52:39 [ERROR] Aborting
170118 15:52:39 [Note] /Applications/MAMP/Library/bin/mysqld: Shutdown complete
170118 15:52:39 mysqld_safe mysqld from pid file /Applications/MAMP/tmp/mysql/mysql.pid ended
然后是apache错误日志
[Wed Jan 18 15:48:28 2017] [notice] Digest: generating secret for digest authentication ...
[Wed Jan 18 15:48:28 2017] [notice] Digest: done
[Wed Jan 18 15:48:28 2017] [notice] Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8zh DAV/2 PHP/5.3.6 configured -- resuming normal operations
[Wed Jan 18 15:48:31 2017] [notice] caught SIGTERM, shutting down
[Wed Jan 18 15:51:01 2017] [notice] Digest: generating secret for digest authentication ...
[Wed Jan 18 15:51:01 2017] [notice] Digest: done
[Wed Jan 18 15:51:01 2017] [notice] Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8zh DAV/2 PHP/5.3.6 configured -- resuming normal operations
我的端口是:apache 80 和 mysql 3306。
如果有人知道可能会发生什么,那将是惊人的......
最佳答案
去年 12 月,当我在 Mac 上遇到同样的问题时,我进行了一些探索并找到了一个非常简单的解决方案:
有些人报告说还需要删除 ib_logfile0,但我的情况并非如此。您可以在 JuanFra.me 中查看我去年首次发布解决方案的博客。
我不知道此解决方案为何或如何起作用,但正如 JuanFra 的博客中所报告的那样,它似乎对其他许多人都有帮助。我希望它对你也有用。
关于mysql 没有在 mamp 上启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41731627/
我使用 MAMP Pro (4.4)。我在应用程序中有许多 MAMP 文件夹占用了大量空间。删除旧的并保留最新的是否安全?因此保留 MAMP 和 MAMP_2018-02-12_21-21-59(见下
我正在尝试在 MAMP php 中安装 pecl_http。 我收到以下错误。 grep: /Applications/MAMP/bin/php/php5.5.10/include/php/main/
警告:我对 Mac 和 OS X 还是很陌生。 我从 mamp.info 下载了 MAMP 以安装在运行 OSX 10.8.5 的 2012 年末 iMac 上。 安装程序让我可以选择只安装 MAMP
我有 MAMP Pro . 如何让 MAMP Pro 服务器在重启时自动启动? 最佳答案 在 MAMP Pro 版本 4.5(仍然是 5.5.x)中,此选项位于 Ports 下。 关于mamp - 在
我正在使用 MAMP Pro作为开发环境。我用过 ngrok与 MAMP前。但是在这种特殊情况下,它从 ngrok 重定向url 到我的本地 url 并且 https 不可用。 我的本地服务器是 e-
我在带有虚拟主机的 Macbook Pro 上运行 MAMP Pro 4。它工作正常。我希望能够从本地网络上的其他设备访问它,以便测试各种浏览器/操作系统组合。我在网上找到的所有文章和帖子都是针对早期
我在带有虚拟主机的 Macbook Pro 上运行 MAMP Pro 4。它工作正常。我希望能够从本地网络上的其他设备访问它,以便测试各种浏览器/操作系统组合。我在网上找到的所有文章和帖子都是针对早期
我想在我的 Windows 8.1 电脑上运行 MAMP,但是当我启动服务器时,它说: 'APACHE' needs open port '80' which is already being use
我正在尝试安装 libsodium(按照本指南 https://paragonie.com/book/pecl-libsodium/read/00-intro.md#installing-libsod
使用 MAMP Pro,您可以创建诸如“local.example.com”之类的条目并指向本地计算机上该站点的根目录。 有可能自动化吗? 那是在我的电脑上,我的设置如下: 用户/hm/Sites/e
我有时会在 phpMyAdmin 中获取存储在/Library/Application Support/appsolute/db/mysql 下的数据库,这应该是 MAMP PRO 的路径。不过,我不
我正在运行 MAMP,它告诉我它无法写入/etc/hosts 文件。我猜这是一个许可问题,但不完全确定。这是错误: The file /etc/hosts couldn't be written 有什
我的桌面上有一个名为 work 的文件夹,用于保存所有 php 项目。我使用 MAMP 并且所有项目都设置为在虚拟主机上运行,例如,如果我有一个名为 test 的项目,我将通过此 URL http
我试图在我的 php.ini 中将 display_errors = Off 更改为 display_errors = On。我运行了 phpinfo() 并验证了加载的配置文件(它位于:/Libra
我正在将 Laravel/horizon 与 Osx MAMP pro 一起使用 当我运行 Composer 时,它需要 laravel/horizon:~1.0它显示一条消息 - laravel
我正在尝试使用 mamp 设置虚拟主机。当我输入 http://resihop:8888我最终进入 127.0.0.1。为什么? 一些事实: 站点名称:resihop Apache 端口:8888 宿
好的,希望有人能帮帮我。我已经安装了 MAMP PRO(在使用 MAMP 一段时间之后)。 启动 MAMP PRO 时,我已连接到 Apache 服务器和 MySQL。它之所以有效,是因为我同时拥有两
有人知道如何在 MAMP/MAMP Pro 上增加 apache fastCGI 超时吗?我到处找,但似乎找不到。 一如既往地感谢任何帮助。 谢谢, Codarz360 最佳答案 这太乏味了,但终于让
如何更改我的 MAMP mysql.sock 文件路径 /Applications/MAMP/tmp/mysql/mysql.sock 每当我退出 MAMP 或重新启动计算机时,其他内容都不会被删除?
我已经升级到 MAMP Pro,mysql 文件夹不会出现在它们在 MAMP/db 中的位置 MAMP Pro 将 MySQL 数据库保存在哪个位置? 最佳答案 MAMP Pro 的更新版本将数据库保
我是一名优秀的程序员,十分优秀!