mamp pro中mysql报错解决

报错内容

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

 

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

芝麻开门2015

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值