mysql之安装启动问题

异常一

         mysqld: [ERROR] Found option without preceding group in config file /etc/my.cnf at line 1!
         mysqld: [ERROR] Fatal error in defaults handling. Program aborted!

 配置文件格式错误,第一行

 异常二

          InnoDB: undo tablespace '/mysql//undo001' exists. Creating system tablespace with existing undo tablespaces is not supported. Please delete all undo tablespaces before creating new system tablespace.
2017-04-22T15:43:48.168128+08:00 0 [ERROR] InnoDB: InnoDB Database creation was aborted with error Generic error. You may need to delete the ibdata1 file before trying to start up again.
2017-04-22T15:43:48.768780+08:00 0 [ERROR] Plugin 'InnoDB' init function returned error.
2017-04-22T15:43:48.768850+08:00 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2017-04-22T15:43:48.768864+08:00 0 [ERROR] Failed to initialize plugins.
2017-04-22T15:43:48.768873+08:00 0 [ERROR] Aborting

 

问题是 undo001文件已经存在。把mysql所有日志一次性全部删除。方便点。

 

问题三

 

2017-04-22T15:43:23.914462+08:00 0 [ERROR] --initialize specified but the data directory has files in it. Aborting.
2017-04-22T15:43:23.914514+08:00 0 [ERROR] Aborting

 

在my.cnf 里面 dataDir配置的目录里面有文件。不让初始化

 

 问题四

执行  ./mysqld --initialize 没效果,只有一个可能,在my.cnf 配置的文件目录没有权限。权限

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值