mysql启动indb错误_MySQL数据库之启动mysql时报错误:Starting MySQL

本文主要向大家介绍了MySQL数据库之启动mysql时报错误:Starting MySQL ,通过具体的内容向大家展现,希望对大家学习MySQL数据库有所帮助。

进入mysql目录输入命令行

# less localhost.localdomain.err

160703 20:00:12 mysqld_safe Starting mysqld daemon with databases from /usr/local/var/mysql

2016-07-03T12:00:12.397109Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).

2016-07-03T12:00:12.398333Z 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.

2016-07-03T12:00:12.398884Z 0 [Note] /usr/local/Cellar/mysql/5.7.10/bin/mysqld (mysqld 5.7.10) starting as process 837 ...

2016-07-03T12:00:12.406560Z 0 [Warning] Setting lower_case_table_names=2 because file system for /usr/local/var/mysql/ is case insensitive

2016-07-03T12:00:12.413518Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins

2016-07-03T12:00:12.413545Z 0 [Note] InnoDB: Uses event mutexes

2016-07-03T12:00:12.413550Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier

2016-07-03T12:00:12.413556Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.3

2016-07-03T12:00:12.414298Z 0 [Note] InnoDB: Number of pools: 1

2016-07-03T12:00:12.415508Z 0 [Note] InnoDB: Using CPU crc32 instructions

2016-07-03T12:00:12.424979Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M

2016-07-03T12:00:12.437917Z 0 [Note] InnoDB: Completed initialization of buffer pool

2016-07-03T12:00:12.451096Z 0 [ERROR] InnoDB: The innodb_system data file ‘ibdata1‘ must be writable

2016-07-03T12:00:12.451136Z 0 [ERROR] InnoDB: The innodb_system data file ‘ibdata1‘ must be writable

2016-07-03T12:00:12.451189Z 0 [ERROR] InnoDB: Plugin initialization aborted with error Generic error

2016-07-03T12:00:12.754267Z 0 [ERROR] Plugin ‘InnoDB‘ init function returned error.

2016-07-03T12:00:12.754344Z 0 [ERROR] Plugin ‘InnoDB‘ registration as a STORAGE ENGINE failed.

2016-07-03T12:00:12.754370Z 0 [ERROR] Failed to initialize plugins.

2016-07-03T12:00:12.754377Z 0 [ERROR] Aborting

2016-07-03T12:00:12.754396Z 0 [Note] Binlog end

2016-07-03T12:00:12.756029Z 0 [Note] Shutting down plugin ‘CSV‘

2016-07-03T12:00:12.756511Z 0 [Note] /usr/local/Cellar/mysql/5.7.10/bin/mysqld: Shutdown complete

160703 20:00:12 mysqld_safe mysqld from pid file /usr/local/var/mysql/huangjicaideMacBook-Pro.local.pid ended

解决方法:

删除mysql目录下:ibdata1  ib_logfile0  ib_logfile1 这3个文件,重启mysql即可启动mysql时报错误

本文由职坐标整理并发布,希望对同学们学习MySQL有所帮助,更多内容请关注职坐标数据库MySQL数据库频道!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值