数据库连接失败-网站数据库隔段时间就自动停止。求大神帮忙看看

这两天新买的服务器mysql总是自动停止,查了日志

网站数据库隔段时间就自动停止。求大神帮忙看看
网站数据库隔段时间就自动停止。然后昨晚把数据库搬离到例外一台服务器上面。还是停止了。只有重启了服务器,然后网站才能正常访问。有大神帮忙解答吗。看看是什么问题。还有装的是ecshop程序。环境都是用phpstudy安装的集成环境。

9:13:57 [Note] MySQL: Normal shutdown 9:13:57 [Note] Event
Scheduler: Purging the queue. 0 events 9:13:57 InnoDB: Starting
shutdown… 9:13:58 InnoDB: Shutdown completed; log sequence number 0
44273 9:13:58 [Note] MySQL: Shutdown complete

错误日志显示如下:
160409 1:43:25 [Note] Plugin ‘FEDERATED’ is disabled.
160409 1:43:25 InnoDB: The InnoDB memory heap is disabled
160409 1:43:25 InnoDB: Mutexes and rw_locks use Windows interlocked
functions
160409 1:43:25 InnoDB: Compressed tables use zlib 1.2.3
160409 1:43:25 InnoDB: Initializing buffer pool, size = 47.0M
160409 1:43:25 InnoDB: Completed initialization of buffer pool
InnoDB: The first specified data file .\ibdata1 did not exist:
InnoDB: a new database to be created!
160409 1:43:25 InnoDB: Setting file .\ibdata1 size to 10 MB
InnoDB: Database physically writes the file full: wait…
160409 1:43:25 InnoDB: Log file .\ib_logfile0 did not exist: new to be
created
InnoDB: Setting log file .\ib_logfile0 size to 24 MB
澳门金沙vip,InnoDB: Database physically writes the file full: wait…
160409 1:43:26 InnoDB: Log file .\ib_logfile1 did not exist: new to be
created
InnoDB: Setting log file .\ib_logfile1 size to 24 MB
InnoDB: Database physically writes the file full: wait…
InnoDB: Doublewrite buffer not found: creating new
InnoDB: Doublewrite buffer created
InnoDB: 127 rollback segment active.
InnoDB: Creating foreign key constraint system tables
InnoDB: Foreign key constraint system tables created
160409 1:43:26 InnoDB: Waiting for the background threads to start
160409 1:43:27 InnoDB: 5.5.40 started; log sequence number 0
160409 1:43:27 [Note] Server hostname (bind-address): ‘0.0.0.0’; port:
3306
160409 1:43:27 [Note] – ‘0.0.0.0’ resolves to ‘0.0.0.0’;
160409 1:43:27 [Note] Server socket created on IP: ‘0.0.0.0’.
160409 1:43:27 [Note] Event Scheduler: Loaded 0 events
160409 1:43:27 [Note] MySQLa: ready for connections.
Version: ‘5.5.40’ socket: ” port: 3306 MySQL Community Server
160409 8:31:54 [Note] MySQLa: Normal shutdown

重启发现

160409 8:31:54 [Note] Event Scheduler: Purging the queue. 0 events
160409 8:31:54 InnoDB: Starting shutdown…
160409 8:31:55 InnoDB: Shutdown completed; log sequence number 1595675
160409 8:31:55 [Note] MySQLa: Shutdown complete

9:13:59 [Note] Plugin ‘FEDERATED’ is disabled. 9:13:59 InnoDB:
Initializing buffer pool, size = 8.0M 9:13:59 InnoDB: Completed
initialization of buffer pool 9:13:59 InnoDB: Started; log sequence
number 0 44273 9:13:59 [Note] Event Scheduler: Loaded 0 events 9:13:59
[Note] MySQL: ready for connections.Version: ‘5.1.61-community’
socket: ” port: 3306 MySQL Community Server (GPL) 9:14:24 [Note]
MySQL: Normal shutdown

160409 8:33:07 [Note] Plugin ‘FEDERATED’ is disabled.
160409 8:33:07 InnoDB: The InnoDB memory heap is disabled
160409 8:33:07 InnoDB: Mutexes and rw_locks use Windows interlocked
functions
160409 8:33:07 InnoDB: Compressed tables use zlib 1.2.3
160409 8:33:07 InnoDB: Initializing buffer pool, size = 47.0M
160409 8:33:07 InnoDB: Completed initialization of buffer pool
160409 8:33:07 InnoDB: highest supported file format is Barracuda.
160409 8:33:08 InnoDB: Waiting for the background threads to start
160409 8:33:09 InnoDB: 5.5.40 started; log sequence number 1595675
160409 8:33:09 [Note] Server hostname (bind-address): ‘0.0.0.0’; port:
3306
160409 8:33:09 [Note] – ‘0.0.0.0’ resolves to ‘0.0.0.0’;
160409 8:33:09 [Note] Server socket created on IP: ‘0.0.0.0’.
160409 8:33:09 [Note] Event Scheduler: Loaded 0 events
160409 8:33:09 [Note] MySQLa: ready for connections.
Version: ‘5.5.40’ socket: ” port: 3306 MySQL Community Server
160409 8:34:25 [Note] Plugin ‘FEDERATED’ is disabled.
160409 8:34:25 InnoDB: The InnoDB memory heap is disabled
160409 8:34:25 InnoDB: Mutexes and rw_locks use Windows interlocked
functions
160409 8:34:25 InnoDB: Compressed tables use zlib 1.2.3
160409 8:34:25 InnoDB: Initializing buffer pool, size = 47.0M
160409 8:34:25 InnoDB: Completed initialization of buffer pool
160409 8:34:25 InnoDB: highest supported file format is Barracuda.
160409 8:34:25 InnoDB: Waiting for the background threads to start
160409 8:34:26 InnoDB: 5.5.40 started; log sequence number 1595675
160409 8:34:26 [Note] Server hostname (bind-address): ‘0.0.0.0’; port:
3306
160409 8:34:26 [Note] – ‘0.0.0.0’ resolves to ‘0.0.0.0’;
160409 8:34:26 [Note] Server socket created on IP: ‘0.0.0.0’.
160409 8:34:26 [Note] Event Scheduler: Loaded 0 events
160409 8:34:26 [Note] MySQLa: ready for connections.
Version: ‘5.5.40’ socket: ” port: 3306 MySQL Community Server

网上找到的方法

在MY.INI文件中的 [mysqld]
中增加一行tmpdir=”D:/MySQL/data/tmp”删除MySQL目录下的ib_logfile0和ib_logfile1