Mysql服务器无法启动,我已经尝试了一切

时间:2018-05-30 20:08:03

标签: mysql

我一直试图启动MAMP超过2个小时,它就是无法启动。这是我的意思。

Mysql server won't start

我已经尝试过删除ib_logfiles和ibdata文件,但是MAMP只是挂在那里,这已经发生过,通常重启程序解决了问题,但现在还没有。我该怎么办?

这是我在mysql_error_log.err文件中找到的错误

2018-05-30 12:57:25 10840 [Note] Plugin 'FEDERATED' is disabled.
2018-05-30 12:57:25 10840 [Note] InnoDB: Using atomics to ref count buffer pool pages
2018-05-30 12:57:25 10840 [Note] InnoDB: The InnoDB memory heap is disabled
2018-05-30 12:57:25 10840 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2018-05-30 12:57:25 10840 [Note] InnoDB: Memory barrier is not used
2018-05-30 12:57:25 10840 [Note] InnoDB: Compressed tables use zlib 1.2.3
2018-05-30 12:57:25 10840 [Note] InnoDB: Not using CPU crc32 instructions
2018-05-30 12:57:25 10840 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2018-05-30 12:57:25 10840 [Note] InnoDB: Completed initialization of buffer pool
2018-05-30 12:57:25 10840 [Note] InnoDB: Highest supported file format is Barracuda.
2018-05-30 12:57:25 10840 [Note] InnoDB: 128 rollback segment(s) are active.
2018-05-30 12:57:25 10840 [Note] InnoDB: Waiting for purge to start
2018-05-30 12:57:25 10840 [Note] InnoDB: 5.6.34 started; log sequence number 156022943
C:\MAMP\\bin\mysql\bin\mysqld.exe: File '.\mysql-bin.000181' not found (Errcode: 2 - No such file or directory)
2018-05-30 12:57:25 10840 [ERROR] Failed to open log (file '.\mysql-bin.000181', errno 2)
2018-05-30 12:57:25 10840 [ERROR] Could not open log file
2018-05-30 12:57:25 10840 [ERROR] Can't init tc log
2018-05-30 12:57:25 10840 [ERROR] Aborting

2018-05-30 12:57:25 10840 [Note] Binlog end
2018-05-30 12:57:25 10840 [Note] Shutting down plugin 'partition'
2018-05-30 12:57:25 10840 [Note] Shutting down plugin 'PERFORMANCE_SCHEMA'
2018-05-30 12:57:25 10840 [Note] Shutting down plugin 'INNODB_SYS_DATAFILES'
2018-05-30 12:57:25 10840 [Note] Shutting down plugin 'INNODB_SYS_TABLESPACES'
2018-05-30 12:57:25 10840 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN_COLS'
2018-05-30 12:57:25 10840 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN'
2018-05-30 12:57:25 10840 [Note] Shutting down plugin 'INNODB_SYS_FIELDS'
2018-05-30 12:57:25 10840 [Note] Shutting down plugin 'INNODB_SYS_COLUMNS'
2018-05-30 12:57:25 10840 [Note] Shutting down plugin 'INNODB_SYS_INDEXES'
2018-05-30 12:57:25 10840 [Note] Shutting down plugin 'INNODB_SYS_TABLESTATS'
2018-05-30 12:57:25 10840 [Note] Shutting down plugin 'INNODB_SYS_TABLES'
2018-05-30 12:57:25 10840 [Note] Shutting down plugin 'INNODB_FT_INDEX_TABLE'
2018-05-30 12:57:25 10840 [Note] Shutting down plugin 'INNODB_FT_INDEX_CACHE'
2018-05-30 12:57:25 10840 [Note] Shutting down plugin 'INNODB_FT_CONFIG'
2018-05-30 12:57:25 10840 [Note] Shutting down plugin 'INNODB_FT_BEING_DELETED'
2018-05-30 12:57:25 10840 [Note] Shutting down plugin 'INNODB_FT_DELETED'
2018-05-30 12:57:25 10840 [Note] Shutting down plugin 'INNODB_FT_DEFAULT_STOPWORD'
2018-05-30 12:57:25 10840 [Note] Shutting down plugin 'INNODB_METRICS'
2018-05-30 12:57:25 10840 [Note] Shutting down plugin 'INNODB_BUFFER_POOL_STATS'
2018-05-30 12:57:25 10840 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE_LRU'
2018-05-30 12:57:25 10840 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE'
2018-05-30 12:57:25 10840 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX_RESET'
2018-05-30 12:57:25 10840 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX'
2018-05-30 12:57:25 10840 [Note] Shutting down plugin 'INNODB_CMPMEM_RESET'
2018-05-30 12:57:25 10840 [Note] Shutting down plugin 'INNODB_CMPMEM'
2018-05-30 12:57:25 10840 [Note] Shutting down plugin 'INNODB_CMP_RESET'
2018-05-30 12:57:25 10840 [Note] Shutting down plugin 'INNODB_CMP'
2018-05-30 12:57:25 10840 [Note] Shutting down plugin 'INNODB_LOCK_WAITS'
2018-05-30 12:57:25 10840 [Note] Shutting down plugin 'INNODB_LOCKS'
2018-05-30 12:57:25 10840 [Note] Shutting down plugin 'INNODB_TRX'
2018-05-30 12:57:25 10840 [Note] Shutting down plugin 'InnoDB'
2018-05-30 12:57:25 10840 [Note] InnoDB: FTS optimize thread exiting.
2018-05-30 12:57:25 10840 [Note] InnoDB: Starting shutdown...
2018-05-30 12:57:27 10840 [Note] InnoDB: Shutdown completed; log sequence number 156022953
2018-05-30 12:57:27 10840 [Note] Shutting down plugin 'BLACKHOLE'
2018-05-30 12:57:27 10840 [Note] Shutting down plugin 'ARCHIVE'
2018-05-30 12:57:27 10840 [Note] Shutting down plugin 'MRG_MYISAM'
2018-05-30 12:57:27 10840 [Note] Shutting down plugin 'MyISAM'
2018-05-30 12:57:27 10840 [Note] Shutting down plugin 'MEMORY'
2018-05-30 12:57:27 10840 [Note] Shutting down plugin 'CSV'
2018-05-30 12:57:27 10840 [Note] Shutting down plugin 'sha256_password'
2018-05-30 12:57:27 10840 [Note] Shutting down plugin 'mysql_old_password'
2018-05-30 12:57:27 10840 [Note] Shutting down plugin 'mysql_native_password'
2018-05-30 12:57:27 10840 [Note] Shutting down plugin 'binlog'
2018-05-30 12:57:27 10840 [Note] C:\MAMP\\bin\mysql\bin\mysqld.exe: Shutdown complete

2 个答案:

答案 0 :(得分:0)

看起来mysql二进制依赖关系的路径设置不正确,因为它抱怨它无法找到.\mysql-bin.000181 ...

二进制存在于那条路径上吗? (显然不是..) 尝试找到它和/或重新安装。

答案 1 :(得分:0)

我解决了我必须完全卸载MAMP并再次安装它的问题,你必须保存目录PathTo / MAMP / db / mysql来保存你的数据库,再次安装MAMP后你只需更换文件夹,一切都可以恢复正常