美文网首页
mamp pro中mysql报错解决

mamp pro中mysql报错解决

作者: _非礼勿视 | 来源:发表于2019-11-12 13:35 被阅读0次

    报错内容

    171208 16:15:54 mysqld_safe Logging to '/Applications/MAMP/logs/mysql_error.log'.

    171208 16:15:54 mysqld_safe Starting mysqld daemon with databases from /Library/Application Support/appsolute/MAMP PRO/db/mysql56

    2017-12-08 16:15:54 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).

    2017-12-08 16:15:54 0 [Note] --secure-file-priv is set to NULL. Operations related to importing and exporting data are disabled

    2017-12-08 16:15:54 0 [Note] /Applications/MAMP/Library/bin/mysqld (mysqld 5.6.35) starting as process 4107 ...

    2017-12-08 16:15:54 4107 [Warning] Setting lower_case_table_names=2 because file system for /Library/Application Support/appsolute/MAMP PRO/db/mysql56/ is case insensitive

    2017-12-08 16:15:54 4107 [Note] Plugin 'FEDERATED' is disabled.

    /Applications/MAMP/Library/bin/mysqld: Table 'mysql.plugin' doesn't exist

    2017-12-08 16:15:54 4107 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.

    2017-12-08 16:15:54 4107 [Note] InnoDB: Using atomics to ref count buffer pool pages

    2017-12-08 16:15:54 4107 [Note] InnoDB: The InnoDB memory heap is disabled

    2017-12-08 16:15:54 4107 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins

    2017-12-08 16:15:54 4107 [Note] InnoDB: Memory barrier is not used

    2017-12-08 16:15:54 4107 [Note] InnoDB: Compressed tables use zlib 1.2.8

    2017-12-08 16:15:54 4107 [Note] InnoDB: Using CPU crc32 instructions

    2017-12-08 16:15:54 4107 [Note] InnoDB: Initializing buffer pool, size = 128.0M

    2017-12-08 16:15:54 4107 [Note] InnoDB: Completed initialization of buffer pool

    2017-12-08 16:15:54 4107 [Note] InnoDB: Highest supported file format is Barracuda.

    2017-12-08 16:15:54 4107 [Note] InnoDB: 128 rollback segment(s) are active.

    2017-12-08 16:15:54 4107 [Note] InnoDB: 5.6.35 started; log sequence number 133313511

    2017-12-08 16:15:54 4107 [Note] RSA private key file not found: /Library/Application Support/appsolute/MAMP PRO/db/mysql56//private_key.pem. Some authentication plugins will not work.

    2017-12-08 16:15:54 4107 [Note] RSA public key file not found: /Library/Application Support/appsolute/MAMP PRO/db/mysql56//public_key.pem. Some authentication plugins will not work.

    2017-12-08 16:15:54 4107 [Note] Server hostname (bind-address): '127.0.0.1'; port: 8889

    2017-12-08 16:15:54 4107 [Note]   - '127.0.0.1' resolves to '127.0.0.1';

    2017-12-08 16:15:54 4107 [Note] Server socket created on IP: '127.0.0.1'.

    2017-12-08 16:15:54 4107 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.user' doesn't exist

    171208 16:15:54 mysqld_safe mysqld from pid file /Applications/MAMP/tmp/mysql/mysql.pid ended

    解决办法1

    一、打开MAMP PRO,打开菜单栏File->Edit Template->MySQL->5.6.35,这时打开了一个文本,找到[mysqld],注意带上中括号,在这行下面加一行“innodb_force_recovery = 1”;

    二、启动mySQL,成功后再关闭;

    三、重新打开那个文本,删除添加的那一行;

    四、再打开mySQL,完毕。

    解决办法2

    如果解决办法一不可以的话 就使用这个办法  找到mamp pro相关的mysql文件 替换mysql中的所有文件即可解决(可能mysql中文件被毁坏了)

    mysql需要文件 地址:http://download.csdn.net/download/resilient/10153437

    ————————————————

    版权声明:本文为CSDN博主「芝麻开门2015」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。

    原文链接:https://blog.csdn.net/resilient/article/details/78769519

    相关文章

      网友评论

          本文标题:mamp pro中mysql报错解决

          本文链接:https://www.haomeiwen.com/subject/tiofictx.html