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

时间:2014-02-11 10:46:02

标签: mysql mysql-workbench

最近通过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 个答案:

答案 0 :(得分:0)

你可以托盘。

1.-停止服务。

在linux服务中mysqld停止 - 在Windows中停止MySQL

2.-使用“停止拨款表”启动您的服务

mysqld --skip-grant-tables

3.更新用户root的密码

$ mysql>更新用户SET密码=密码('my_password'),其中USER ='root';

(如果你想要你可以创建你的用户)$ mysql>创建用户'root'@'localhost'识别'密码';

4.-冲洗特权

$ MySQL的> FLUSH PRIVILEGES;

5.-重新启动服务器

service mysqld start