Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/58.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
AWS RDS MySQL意外重启_Mysql_Amazon Web Services_Innodb_Rds - Fatal编程技术网

AWS RDS MySQL意外重启

AWS RDS MySQL意外重启,mysql,amazon-web-services,innodb,rds,Mysql,Amazon Web Services,Innodb,Rds,我们的t3.micro RDS数据库在没有任何交互的情况下定期重启,cloudwatch的图表如下所示: MySQL错误日志只显示崩溃,没有说明背后的原因 2019-09-10T16:17:49.424529Z 0 [Note] Giving 24 client threads a chance to die gracefully 2019-09-10T16:17:49.426015Z 0 [Note] Shutting down slave threads 2019-09-10T16:19:0

我们的t3.micro RDS数据库在没有任何交互的情况下定期重启,cloudwatch的图表如下所示:

MySQL错误日志只显示崩溃,没有说明背后的原因

2019-09-10T16:17:49.424529Z 0 [Note] Giving 24 client threads a chance to die gracefully
2019-09-10T16:17:49.426015Z 0 [Note] Shutting down slave threads
2019-09-10T16:19:02.043381Z 0 [Warning] 'NO_AUTO_CREATE_USER' sql mode was not set.
2019-09-10T16:19:02.044006Z 0 [Warning] Insecure configuration for --secure-file-priv: Location is accessible to all OS users. Consider choosing a different directory.
2019-09-10T16:19:02.044772Z 0 [Note] /rdsdbbin/mysql/bin/mysqld (mysqld 5.7.16-log) starting as process 3697 ...
2019-09-10T16:19:02.066197Z 0 [Warning] Although a path was specified for the --slow-query-log-file option, log tables are used. To enable logging to files use the --log-output=file option.
2019-09-10T16:19:02.078166Z 0 [Note] InnoDB: PUNCH HOLE support available
2019-09-10T16:19:02.078194Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2019-09-10T16:19:02.078197Z 0 [Note] InnoDB: Uses event mutexes
2019-09-10T16:19:02.078201Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
2019-09-10T16:19:02.078204Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.3
2019-09-10T16:19:02.078207Z 0 [Note] InnoDB: Using Linux native AIO
2019-09-10T16:19:02.080206Z 0 [Note] InnoDB: Number of pools: 1
2019-09-10T16:19:02.083495Z 0 [Note] InnoDB: Using CPU crc32 instructions
2019-09-10T16:19:02.085725Z 0 [Note] InnoDB: Initializing buffer pool, total size = 384M, instances = 1, chunk size = 128M
2019-09-10T16:19:02.114854Z 0 [Note] InnoDB: Completed initialization of buffer pool
2019-09-10T16:19:02.119186Z 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2019-09-10T16:19:02.140345Z 0 [Note] InnoDB: Highest supported file format is Barracuda.
2019-09-10T16:19:02.146556Z 0 [Note] InnoDB: Log scan progressed past the checkpoint lsn 4435206383
2019-09-10T16:19:02.146572Z 0 [Note] InnoDB: Doing recovery: scanned up to log sequence number 4435206392
2019-09-10T16:19:02.148891Z 0 [Note] InnoDB: Doing recovery: scanned up to log sequence number 4435206392
2019-09-10T16:19:02.148903Z 0 [Note] InnoDB: Database was not shutdown normally!
2019-09-10T16:19:02.148907Z 0 [Note] InnoDB: Starting crash recovery.
2019-09-10T16:19:02.781069Z 0 [Note] InnoDB: Last MySQL binlog file position 0 2011, file name mysql-bin-changelog.208136
2019-09-10T16:19:03.345253Z 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
2019-09-10T16:19:03.345270Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2019-09-10T16:19:03.345301Z 0 [Note] InnoDB: Setting file '/rdsdbdata/db/innodb/ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2019-09-10T16:19:03.420337Z 0 [Note] InnoDB: File '/rdsdbdata/db/innodb/ibtmp1' size is now 12 MB.
2019-09-10T16:19:03.421137Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active.
2019-09-10T16:19:03.421148Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active.
2019-09-10T16:19:03.421347Z 0 [Note] InnoDB: Waiting for purge to start
2019-09-10T16:19:03.471811Z 0 [Note] InnoDB: 5.7.16 started; log sequence number 4435206392
2019-09-10T16:19:03.472007Z 0 [Note] InnoDB: Loading buffer pool(s) from /rdsdbdata/db/innodb/ib_buffer_pool
2019-09-10T16:19:03.473460Z 0 [Note] Plugin 'FEDERATED' is disabled.
2019-09-10T16:19:03.483168Z 0 [Note] Recovering after a crash using /rdsdbdata/log/binlog/mysql-bin-changelog
2019-09-10T16:19:03.483203Z 0 [Note] Starting crash recovery...
2019-09-10T16:19:03.483253Z 0 [Note] Crash recovery finished.

有没有办法防止这种情况?还是有更多的日志我可以挖掘?我在aws论坛上问过类似的问题,遗憾的是没有回答

这个问题与编程无关,因此在这里是离题的。有一个专门为数据库管理员创建的dba姐妹站点。@samuel adam错误日志的第六行警告您将不会有任何日志文件。纠正措施;在AWS Performance group for log_output=FILE for log to named files中。AWS不允许同时使用表和文件。