简体   繁体   English

MySQL不以MAMP Pro(5.0.1)开头

[英]MySQL does not start with MAMP Pro (5.0.1)

This is my error log, I cant figure out why mysql wont start with MAMP pro. 这是我的错误日志,我无法弄清为什么mysql无法以MAMP pro开头。 It starts with MAMP. 它以MAMP开头。

2018-08-15T20:00:17.6NZ mysqld_safe mysqld from pid file /Applications/MAMP/tmp/mysql/mysql.pid ended

2018-08-15T20:07:13.6NZ mysqld_safe Logging to '/Applications/MAMP/logs/mysql_error.log'.

2018-08-15T20:07:13.6NZ mysqld_safe Starting mysqld daemon with databases from /Library/Application Support/appsolute/MAMP PRO/db/mysql57

2018-08-15T20:07:13.461794Z 0 [Warning] Insecure configuration for --secure-file-priv: Current value does not restrict location of generated files. Consider setting it to a valid, non-empty path.

2018-08-15T20:07:13.462033Z 0 [Note] /Applications/MAMP/Library/bin/mysqld (mysqld 5.7.21) starting as process 80443 ...

2018-08-15T20:07:13.466069Z 0 [Warning] Setting lower_case_table_names=2 because file system for /Library/Application Support/appsolute/MAMP PRO/db/mysql57/ is case insensitive

2018-08-15T20:07:13.468580Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins

2018-08-15T20:07:13.468648Z 0 [Note] InnoDB: Uses event mutexes 2018-08-15T20:07:13.468705Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier

2018-08-15T20:07:13.468724Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.3

2018-08-15T20:07:13.468779Z 0 [Note] InnoDB: Adjusting innodb_buffer_pool_instances from 8 to 1 since innodb_buffer_pool_size is less than 1024 MiB 2018-08-15T20:07:13.469152Z 0 [Note] InnoDB: Number of pools: 1 2018-08-15T20:07:13.469343Z 0 [Note] InnoDB: Using CPU crc32 instructions 2018-08-15T20:07:13.470836Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M 2018-08-15T20:07:13.484818Z 0 [Note] InnoDB: Completed initialization of buffer pool 2018-08-15T20:07:13.498079Z 0 [ERROR] InnoDB: The Auto-extending innodb_system data file './ibdata1' is of a different size 0 pages (rounded down to MB) than specified in the .cnf file: initial 768 pages, max 0 (relevant if non-zero) pages! 2018-08-15T20:07:13.468779Z 0 [Note] InnoDB: Adjusting innodb_buffer_pool_instances from 8 to 1 since innodb_buffer_pool_size is less than 1024 MiB 2018-08-15T20:07:13.469152Z 0 [Note] InnoDB: Number of pools: 1 2018-08-15T20:07:13.469343Z 0 [Note] InnoDB: Using CPU crc32 instructions 2018-08-15T20:07:13.470836Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M 2018-08-15T20:07:13.484818Z 0 [Note] InnoDB: Completed initialization of buffer pool 2018-08-15T20:07:13.498079Z 0 [ERROR] InnoDB: The Auto-extending innodb_system data file './ibdata1' is of a different size 0 pages (rounded down to MB) than specified in the .cnf file: initial 768 pages, max 0 (relevant if non-zero) pages!

2018-08-15T20:07:13.498170Z 0 [ERROR] InnoDB: Plugin initialization aborted with error Generic error

2018-08-15T20:07:13.807668Z 0 [ERROR] Plugin 'InnoDB' init function returned error.

2018-08-15T20:07:13.807745Z 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.

2018-08-15T20:07:13.807819Z 0 [ERROR] Failed to initialize builtin plugins.

2018-08-15T20:07:13.807888Z 0 [ERROR] Aborting

2018-08-15T20:07:13.807956Z 0 [Note] Binlog end 2018-08-15T20:07:13.808103Z 0 [Note] Shutting down plugin 'CSV' 2018-08-15T20:07:13.808957Z 0 [Note] /Applications/MAMP/Library/bin/mysqld: Shutdown complete 2018-08-15T20:07:13.807956Z 0 [Note] Binlog end 2018-08-15T20:07:13.808103Z 0 [Note] Shutting down plugin 'CSV' 2018-08-15T20:07:13.808957Z 0 [Note] /Applications/MAMP/Library/bin/mysqld: Shutdown complete

2018-08-15T20:07:13.6NZ mysqld_safe mysqld from pid file /Applications/MAMP/tmp/mysql/mysql.pid ended

I have no mysql instances running. 我没有正在运行的mysql实例。 Any help here will be appreciated. 在这里的任何帮助将不胜感激。 Thanks 谢谢

Turns out the problem was with my filesystem. 原来问题出在我的文件系统上。 That's why MAMP PRO did not work. 这就是为什么MAMP PRO无法正常工作的原因。 A friend helped me set up my laptop at the beginning and we chose the Apple File System (APFS) which is case-insensitive. 一开始有一位朋友帮我安装了笔记本电脑,我们选择了不区分大小写的Apple File System(APFS)。 Then I created a partition of the disk and formatted it to have Mac OS Extended (Case-sensitive, Journaled). 然后,我创建了磁盘的一个分区,并将其格式化为Mac OS Extended(区分大小写,日记)。 That's when everything worked. 那时一切正常。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM