我刚刚在Windows 10上全新安装了Mamp,并且无法正常启动MySQL。
这是mysql日志:
2019-01-09T14:56:59.354340Z 0 [Note] --secure-file-priv is set to NULL. Operations related to importing and exporting data are disabled
2019-01-09T14:56:59.355024Z 0 [Note] C:\MAMP\\bin\mysql\bin\mysqld.exe (mysqld 5.7.24-log) starting as process 27324 ...
您可以看到我没有问题(我认为...)
这是我尝试使用phpmyadmin时的php日志消息:
[09-Jan-2019 14:57:06 UTC] PHP Warning: mysqli_connect(): (HY000/2002): No connection could be made because the target machine actively refused it. in Command line code on line 1
[09-Jan-2019 14:57:06 UTC] PHP Warning: mysqli_query() expects parameter 1 to be mysqli, boolean given in Command line code on line 1
[09-Jan-2019 14:57:06 UTC] PHP Warning: mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, null given in Command line code on line 1
[09-Jan-2019 14:57:06 UTC] PHP Warning: mysqli_close() expects parameter 1 to be mysqli, boolean given in Command line code on line 1
这是默认的登录名和密码(root和root) 我检查了新的端口(3307)是否相同
有人知道可以在哪里形成吗?
我正在将apache使用php 7.2.10和MySQL 5.7.24
谢谢您的帮助
PS:我删除了ib_logfile0 ib_logfile1和ibdata1
答案 0 :(得分:1)
删除:mysql-bin.index 它应该可以工作