请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

mysql 异常崩溃 服务无法开启

老师你好,

   我用postman 循环2000次查询数据库,然后数据库进程没了,服务开启不了,.err如下 我没有看到data目录下有ibdata1这个文件

2018-11-30T09:38:30.239321Z 0 [System] [MY-010116] [Server] C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld (mysqld 8.0.13) starting as process 2420 2018-11-30T09:38:30.359846Z 1 [ERROR] [MY-012611] [InnoDB] Operating system error number 2 in a file operation. 2018-11-30T09:38:30.360497Z 1 [ERROR] [MY-012646] [InnoDB] File C:\Program Files\MySQL\MySQL Server 8.0\data\ibdata1: ‘open’ returned OS error 71. Cannot continue operation 2018-11-30T09:38:30.361208Z 1 [ERROR] [MY-012981] [InnoDB] Cannot continue operation.

下面是我的MY.INI 请老师帮帮忙解答 我可以提供云服务器的账号密码!!!

# For advice on how to change settings please see
# http://dev.mysql.com/doc/refman/5.6/en/server-configuration-defaults.html
# *** DO NOT EDIT THIS FILE. It's a template which will be copied to the
# *** default location during install, and will be replaced if you
# *** upgrade to a newer version of MySQL.
[client]
default-character-set = utf8mb4
[mysql]
default-character-set = utf8mb4
[mysqld]
character-set-client-handshake = FALSE
character-set-server = utf8mb4
collation-server = utf8mb4_bin
init_connect='SET NAMES utf8mb4'
# Remove leading # and set to the amount of RAM for the most important data
# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
innodb_buffer_pool_size = 512M
# Remove leading # to turn on a very important data integrity option: logging
# changes to the binary log between backups.
# log_bin
# These are commonly set, remove the # and set as required.
basedir = C:\Program Files\MySQL\MySQL Server 8.0
datadir = C:\Program Files\MySQL\MySQL Server 8.0\data
port = 3306
# server_id = .....
# Remove leading # to set options mainly useful for reporting servers.
# The server defaults are faster for transactions and fast SELECTs.
# Adjust sizes as needed, experiment to find the optimal values.
max_connections=1000
join_buffer_size = 128M
sort_buffer_size = 32M
read_rnd_buffer_size = 32M 

正在回答

1回答

看日志应该是数据文件损坏了,如果有备份,就用之前的备份恢复一下吧。
0 回复 有任何疑惑可以回复我~
  • 提问者 itwillrain #1
    为什么会突然损坏呢?
    回复 有任何疑惑可以回复我~ 2018-11-30 18:02:35
  • sqlercn 回复 提问者 itwillrain #2
    这个原因有很多,可能是系统的原因,也可能是数据库本身的原因。你可以从系统和数据库的error日志中有没有什么相关记录。
    回复 有任何疑惑可以回复我~ 2018-11-30 18:25:39
  • 提问者 itwillrain #3
    非常感谢!
    回复 有任何疑惑可以回复我~ 2018-12-19 16:41:37
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信