2017-03-02 137 views
0

我在Windows 10上使用了xampp v3.2.1。我有Error: MySQL shutdown unexpectedly.问题。但是apache没问题。无法在xampp上启动mysql

我已经搜索了很多回答这个问题的谷歌搜索,它不符合我的问题。

我已经尝试将端口号更改为my.ini中的其他端口号,但它不起作用。

我试图删除中除数据库文件夹以外的所有文件。但仍然有同样的错误。

这是我的错误日志:

2017-03-02 11:53:53 a3c InnoDB: Warning: Using innodb_additional_mem_pool_size is DEPRECATED. This option may be removed in future releases, together with the option innodb_use_sys_malloc and with the InnoDB's internal memory allocator. 
170302 11:53:53 [Note] InnoDB: Using mutexes to ref count buffer pool pages 
170302 11:53:53 [Note] InnoDB: The InnoDB memory heap is disabled 
170302 11:53:53 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions 
170302 11:53:53 [Note] InnoDB: Memory barrier is not used 
170302 11:53:53 [Note] InnoDB: Compressed tables use zlib 1.2.3 
170302 11:53:53 [Note] InnoDB: Not using CPU crc32 instructions 
170302 11:53:53 [Note] InnoDB: Initializing buffer pool, size = 16.0M 
170302 11:53:53 [Note] InnoDB: Completed initialization of buffer pool 
170302 11:53:53 [Note] InnoDB: Highest supported file format is Barracuda. 
170302 11:53:53 [Note] InnoDB: Log scan progressed past the checkpoint lsn 49463 
170302 11:53:53 [Note] InnoDB: Database was not shutdown normally! 
170302 11:53:53 [Note] InnoDB: Starting crash recovery. 
170302 11:53:53 [Note] InnoDB: Reading tablespace information from the .ibd files... 
170302 11:53:53 [Note] InnoDB: Restoring possible half-written data pages 
170302 11:53:53 [Note] InnoDB: from the doublewrite buffer... 
InnoDB: Doing recovery: scanned up to log sequence number 1600614 
170302 11:53:53 [Note] InnoDB: Starting an apply batch of log records to the database... 
InnoDB: Progress in percent: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 
InnoDB: Apply batch completed 
170302 11:53:54 [Note] InnoDB: 128 rollback segment(s) are active. 
170302 11:53:54 [Note] InnoDB: Waiting for purge to start 
170302 11:53:54 [Note] InnoDB: Percona XtraDB (http://www.percona.com) 5.6.22-72.0 started; log sequence number 1600614 
170302 11:53:54 [Note] Plugin 'FEEDBACK' is disabled. 
170302 11:53:54 [Note] Server socket created on IP: '::'. 
+0

你检查过在my.conf中分配的内存? –

+0

在IP:'::'上创建服务器套接字后添加更多日志。 line – Raj

+0

Ooops !!!我在'xampp \ mysql \ data'文件夹中找不到'my.cnf'文件。可能是我删除了。所以,我该怎么做? @AnandG – Cloud

回答

0

检查你在my.ini的

[mysqld] 
# 
# * Basic Settings 
# 
port  = 3306 
# Instead of skip-networking the default is now to listen only on 
# localhost which is more compatible and is not less secure. 
bind-address  = 127.0.0.1 
+0

我已经做了所有这些事情。 – Cloud

0

试试这个两行改变mysql port

xampp/mysql/bin/my.ini