MySQL报错

191105  9:39:07 [Note] Plugin 'FEDERATED' is disabled.
191105 9:39:07 InnoDB: The InnoDB memory heap is disabled
191105 9:39:07 InnoDB: Mutexes and rw_locks use Windows interlocked functions
191105 9:39:07 InnoDB: Compressed tables use zlib 1.2.3
191105 9:39:07 InnoDB: Initializing buffer pool, size = 47.0M
191105 9:39:07 InnoDB: Completed initialization of buffer pool
191105 9:39:07 InnoDB: highest supported file format is Barracuda.
191105 9:39:08 InnoDB: Waiting for the background threads to start
191105 9:39:09 InnoDB: 5.5.53 started; log sequence number 2389058
D:\phpStudy\PHPTutorial\MySQL\bin\mysqld.exe: File 'D:\phpStudy\PHPTutorial\MySQL\data\mysql_bin.000045' not found (Errcode: 2)
191105 9:39:09 [ERROR] Failed to open log (file 'D:\phpStudy\PHPTutorial\MySQL\data\mysql_bin.000045', errno 2)
191105 9:39:09 [ERROR] Could not open log file
191105 9:39:09 [ERROR] Can't init tc log
191105 9:39:09 [ERROR] Aborting 191105 9:39:09 InnoDB: Starting shutdown...
191105 9:39:09 InnoDB: Shutdown completed; log sequence number 2389058
191105 9:39:09 [Note] D:\phpStudy\PHPTutorial\MySQL\bin\mysqld.exe: Shutdown complete

找到MySQL配置文件

D:\phpStudy\PHPTutorial\MySQL\my.ini

方法一:

在log_bin="D:/phpStudy/PHPTutorial/MySQL/data/mysql_bin"前面加#注释掉

方法二:

找到log_bin路径,里面有一个mysql.index,(我的路径是D:/phpStudy/PHPTutorial/MySQL/data)

打开mysql.index删除里面的D:\phpStudy\PHPTutorial\MySQL\data\mysql_bin.000045

(方法二需要注意,默认是mysql.index. 如果你和我一样改了默认log_bin配置,我改成mysql_bin了,所以我要改的文件是mysql_bin.index)

MySQL启动报错Failed to open log (file 'D:\phpStudy\PHPTutorial\MySQL\data\mysql_bin.000045', errno 2)的更多相关文章

  1. mysql启动报错,与selinux相关

    mysql启动报错,与selinux相关 如果遇到报错,可能的情况是 selinux 的关系,可以安装 setroubleshoot-server 工具,使用 sealert -a /var/log/ ...

  2. springboot项目启动报错Failed to configure a DataSource: 'url' attribute is not specified and no embedde

    springboot项目启动报错Failed to configure a DataSource: 'url' attribute is not specified and no embedde 创建 ...

  3. libvirt启动报错Failed to start Virtualization daemon

    libvirt启动报错Failed to start Virtualization daemon 1.启动libvirt的具体报错如下 [root@localhost IOS]# service li ...

  4. Spring boot 启动报错 Failed to auto-configure a DataSource

    1.Spring boot 启动报错 Failed to auto-configure a DataSource 参考资料https://blog.csdn.net/liuyinfei_java/ar ...

  5. mysql 启动报错Host name could not be resolved解决办法

    mysql 启动报错信息如下: [root@xxx ~]# 2018-01-26 17:06:35 33 [Warning] Host name 'bogon' could not be resolv ...

  6. 【MySQL】MySQL同步报错-> Last_IO_Error: Got fatal error 1236 from master when reading data from binary log

    这个报错网上搜索了一下,大部分是由于MySQL意外关闭或强制重启造成的binlog文件事务点读取异常造成的主从同步报错 Last_IO_Error: Got fatal error 1236 from ...

  7. SpringBoot2 启动报错 Failed to auto-configure a DataSource

    今天Spring Boot 2.0正式版发布,寻思着搭个小demo尝试一下Spring Boot的新特性,使用idea创建项目.在选择组件时添加了mysql.mybatis 然后在第一次启动的时候启动 ...

  8. Eclipse启动 报错[Failed to load the JNI shared library jvm.dll

    准备要做java服务器,在安装开发环境时,启动Eclipse报错[Failed to load the JNI shared library jvm.dll] 研究了下,造成错误的原因是由于eclip ...

  9. mysql启动报错:Fatal error: Can’t open and lock privilege tables: Table ‘mysql.host’ doesn’t exist

    mysql在首次启动的时候可能会报错:Can’t open and lock privilege tables: Table ‘mysql.host’ doesn’t exist 这时候可以执行脚本 ...

随机推荐

  1. JVM垃圾收集器(八)

    一.垃圾收集器 有了前面JVM参数的了解下面来看下JVM的垃圾收集器:如果说收集算法是内存回收的方法论,那么垃圾收集器就是内存回收的具体实现.  JVM(HotSpot)有7种垃圾收集器,7种垃圾收集 ...

  2. SQLite 基础不扎实造成的:error code 19: constraint failed

    感谢大佬:https://www.cnblogs.com/flintlovesam/p/5241866.html (https://www.cnblogs.com/flintlovesam/p/524 ...

  3. 基于Itextpdf合成PDF

    原创:转载需注明原创地址 https://www.cnblogs.com/fanerwei222/p/12023314.html 开发过程中有用到PDF合成, 记录一下合成的方法和代码. 使用工具 : ...

  4. mapTest

    import java.util.*;public class mapTest { public static void main(String[] args) throws Exception{ L ...

  5. kubeadm部署安装+dashboard+harbor

    kubeadm 部署安装+dashboard+harbor master(2C/4G,cpu核心数要求大于2) 192.168.80.10 docker.kubeadm.kubelet.kubectl ...

  6. 简单的JSON数组转树形结构

    function toTree(data) { let result = [] if(!Array.isArray(data)) { return result } data.forEach(item ...

  7. Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-test) on project gulimall-common: There are test failures.

    对Maven打包时碰见的问题: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (d ...

  8. Struts2跟SpringMVC的区别

    1. 拦截机制不同 Struts2是类级别的拦截,每次请求就会创建一个Action,和Spring整合时Struts2的ActionBean注入作用域是原型模式prototype,然后通过setter ...

  9. Python语法进阶(1)- 进程与线程编程

    1.进程与多进程 1.1.什么是进程 进程就是程序执行的载体 什么叫多任务? 多任务就是操作系统可以同时运行多个任务.比如你一边在用浏览器学习,还一边在听音乐,,这就是多任务,至少同时有3个任务正在运 ...

  10. 排查log4j不输出日志到文件的问题

    问题描述 项目使用Spring Boot框架,在pom文件中添加了如下配置: <dependency> <groupId>org.slf4j</groupId> & ...