gpt4 book ai didi

更改 root 密码后 mysql 在启动时崩溃

转载 作者:行者123 更新时间:2023-11-29 03:36:00 25 4
gpt4 key购买 nike

最近通过 MySQL Workbench 更改了我的 mysql root 密码并重新启动了 mysql 服务。 mysql 现在在启动时崩溃。我根本无法启动该服务,也不确定要引用哪些日志文件。以下是错误,我进入数据目录下的 .err 文件。请提供调试和解决问题的指导。

*140211 15:47:52 [Note] Plugin 'FEDERATED' is disabled.
InnoDB: The InnoDB memory heap is disabled
InnoDB: Mutexes and rw_locks use Windows interlocked functions
InnoDB: Compressed tables use zlib 1.2.3
140211 15:47:52 InnoDB: Initializing buffer pool, size = 16.0M
140211 15:47:52 InnoDB: Completed initialization of buffer pool
140211 15:47:52 InnoDB: highest supported file format is Barracuda.
InnoDB: Error: trying to access page number 4294965503 in space 0,
InnoDB: space name D:\Apps\OrangeHRMS2.7\mysql\data\ibdata1,
InnoDB: which is outside the tablespace bounds.
InnoDB: Byte offset 0, len 16384, i/o type 10.
InnoDB: If you get this error at mysqld startup, please check that
InnoDB: your my.cnf matches the ibdata files that you have in the
InnoDB: MySQL server.
140211 15:47:52 InnoDB: Assertion failure in thread 1076 in file ..\..\..\mysql-5.5.8\storage\innobase\fil\fil0fil.c line 4374
InnoDB: We intentionally generate a memory trap.
InnoDB: Submit a detailed bug report to http: //bugs.mysql.com.
InnoDB: If you get repeated assertion failures or crashes, even
InnoDB: immediately after the mysqld startup, there may be
InnoDB: corruption in the InnoDB tablespace. Please refer to
InnoDB: http: //dev.mysql.com/doc/refman/5.1/en/forcing-recovery.html
InnoDB: about forcing recovery.
140211 15:47:52 - mysqld got exception 0xc0000005 ;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.
We will try our best to scrape up some info that will hopefully help diagnose
the problem, but since we have already crashed, something is definitely wrong
and this may fail.
key_buffer_size=16777216
read_buffer_size=262144
max_used_connections=0
max_threads=151
thread_count=0
connection_count=0
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 133447 K
bytes of memory
Hope that's ok; if not, decrease some variables in the equation.
thd: 0x0
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong...
005E4EB4 mysqld.exe!?check_next_symbol@Gis_read_stream@@QAE_ND@Z()
The manual page at http: //dev.mysql.com/doc/mysql/en/crashing.html contains
information that should help you find out what is causing the crash.*

最佳答案

你可以把这个放在托盘上。

1.- 停止您的服务。

在linux service mysqld stop - 在Windows net stop MySQL

2.- 使用“停止授权表”开始您的服务

mysqld --skip-grant-tables

3.-更新root用户的密码

$mysql>UPDATE user SET Password=PASSWORD('my_password') where USER='root';

(如果你愿意,你可以创建你的用户)$mysql>CREATE USER 'root'@'localhost' IDENTIFIED BY 'password';

4.- 刷新权限

$mysql> 刷新权限;

5.- 重启你的服务器

服务mysqld启动

关于更改 root 密码后 mysql 在启动时崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21699650/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com