首页新闻找找看学习计划

MYSQL 错误日志分析

0
悬赏园豆:10 [待解决问题]

小弟刚接触MYSQL, 不知为何公司服务器频繁的没有权限访问,

需要重启MYSQL 服务才能访问,这是监控的日志记录。

 

Version: '5.6.21' socket: '/var/lib/mysql/mysql.sock' port: 3306 MySQL Community Server (GPL)
2015-12-29 07:57:51 13379 [Note] /usr/sbin/mysqld: Normal shutdown

2015-12-29 07:57:51 13379 [Note] Giving 0 client threads a chance to die gracefully
2015-12-29 07:57:51 13379 [Note] Shutting down slave threads
2015-12-29 07:57:51 13379 [Note] Forcefully disconnecting 0 remaining clients
2015-12-29 07:57:51 13379 [Note] Binlog end
2015-12-29 07:57:51 13379 [Note] Shutting down plugin 'partition'
2015-12-29 07:57:51 13379 [Note] Shutting down plugin 'ARCHIVE'
2015-12-29 07:57:51 13379 [Note] Shutting down plugin 'BLACKHOLE'
2015-12-29 07:57:51 13379 [Note] Shutting down plugin 'INNODB_SYS_DATAFILES'
2015-12-29 07:57:51 13379 [Note] Shutting down plugin 'INNODB_SYS_TABLESPACES'
2015-12-29 07:57:51 13379 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN_COLS'
2015-12-29 07:57:51 13379 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN'
2015-12-29 07:57:51 13379 [Note] Shutting down plugin 'INNODB_SYS_FIELDS'
2015-12-29 07:57:51 13379 [Note] Shutting down plugin 'INNODB_SYS_COLUMNS'
2015-12-29 07:57:51 13379 [Note] Shutting down plugin 'INNODB_SYS_INDEXES'
2015-12-29 07:57:51 13379 [Note] Shutting down plugin 'INNODB_SYS_TABLESTATS'
2015-12-29 07:57:51 13379 [Note] Shutting down plugin 'INNODB_SYS_TABLES'
2015-12-29 07:57:51 13379 [Note] Shutting down plugin 'INNODB_FT_INDEX_TABLE'
2015-12-29 07:57:51 13379 [Note] Shutting down plugin 'INNODB_FT_INDEX_CACHE'
2015-12-29 07:57:51 13379 [Note] Shutting down plugin 'INNODB_FT_CONFIG'
2015-12-29 07:57:51 13379 [Note] Shutting down plugin 'INNODB_FT_BEING_DELETED'
2015-12-29 07:57:51 13379 [Note] Shutting down plugin 'INNODB_FT_DELETED'
2015-12-29 07:57:51 13379 [Note] Shutting down plugin 'INNODB_FT_DEFAULT_STOPWORD'
2015-12-29 07:57:51 13379 [Note] Shutting down plugin 'INNODB_METRICS'
2015-12-29 07:57:51 13379 [Note] Shutting down plugin 'INNODB_BUFFER_POOL_STATS'
2015-12-29 07:57:51 13379 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE_LRU'
2015-12-29 07:57:51 13379 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE'
2015-12-29 07:57:51 13379 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX_RESET'
2015-12-29 07:57:51 13379 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX'
2015-12-29 07:57:51 13379 [Note] Shutting down plugin 'INNODB_CMPMEM_RESET'
2015-12-29 07:57:51 13379 [Note] Shutting down plugin 'INNODB_CMPMEM'
2015-12-29 07:57:51 13379 [Note] Shutting down plugin 'INNODB_CMP_RESET'
2015-12-29 07:57:51 13379 [Note] Shutting down plugin 'INNODB_CMP'
2015-12-29 07:57:51 13379 [Note] Shutting down plugin 'INNODB_LOCK_WAITS'
2015-12-29 07:57:51 13379 [Note] Shutting down plugin 'INNODB_LOCKS'
2015-12-29 07:57:51 13379 [Note] Shutting down plugin 'INNODB_TRX'
2015-12-29 07:57:51 13379 [Note] Shutting down plugin 'InnoDB'
2015-12-29 07:57:51 13379 [Note] InnoDB: FTS optimize thread exiting.
2015-12-29 07:57:51 13379 [Note] InnoDB: Starting shutdown...
2015-12-29 07:57:53 13379 [Note] InnoDB: Shutdown completed; log sequence number 180013092
2015-12-29 07:57:53 13379 [Note] Shutting down plugin 'PERFORMANCE_SCHEMA'
2015-12-29 07:57:53 13379 [Note] Shutting down plugin 'CSV'
2015-12-29 07:57:53 13379 [Note] Shutting down plugin 'MEMORY'
2015-12-29 07:57:53 13379 [Note] Shutting down plugin 'MRG_MYISAM'
2015-12-29 07:57:53 13379 [Note] Shutting down plugin 'MyISAM'
2015-12-29 07:57:53 13379 [Note] Shutting down plugin 'sha256_password'
2015-12-29 07:57:53 13379 [Note] Shutting down plugin 'mysql_old_password'
2015-12-29 07:57:53 13379 [Note] Shutting down plugin 'mysql_native_password'
2015-12-29 07:57:53 13379 [Note] Shutting down plugin 'binlog'
2015-12-29 07:57:53 13379 [Note] /usr/sbin/mysqld: Shutdown complete

151229 07:57:53 mysqld_safe mysqld from pid file /data/lib/mysql/VM_45_56_centos.pid ended
151229 07:57:53 mysqld_safe Starting mysqld daemon with databases from /data/lib/mysql
2015-12-29 07:57:54 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2015-12-29 07:57:54 1837 [Note] Plugin 'FEDERATED' is disabled.
2015-12-29 07:57:54 1837 [Note] InnoDB: Using atomics to ref count buffer pool pages
2015-12-29 07:57:54 1837 [Note] InnoDB: The InnoDB memory heap is disabled
2015-12-29 07:57:54 1837 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2015-12-29 07:57:54 1837 [Note] InnoDB: Memory barrier is not used
2015-12-29 07:57:54 1837 [Note] InnoDB: Compressed tables use zlib 1.2.3
2015-12-29 07:57:54 1837 [Note] InnoDB: Using Linux native AIO
2015-12-29 07:57:54 1837 [Note] InnoDB: Not using CPU crc32 instructions
2015-12-29 07:57:54 1837 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2015-12-29 07:57:54 1837 [Note] InnoDB: Completed initialization of buffer pool
2015-12-29 07:57:54 1837 [Note] InnoDB: Highest supported file format is Barracuda.
2015-12-29 07:57:54 1837 [Note] InnoDB: 128 rollback segment(s) are active.
2015-12-29 07:57:54 1837 [Note] InnoDB: Waiting for purge to start
2015-12-29 07:57:54 1837 [Note] InnoDB: 5.6.21 started; log sequence number 180013092
2015-12-29 07:57:54 1837 [Note] Server hostname (bind-address): '*'; port: 3306
2015-12-29 07:57:54 1837 [Note] IPv6 is not available.
2015-12-29 07:57:54 1837 [Note] - '0.0.0.0' resolves to '0.0.0.0';
2015-12-29 07:57:54 1837 [Note] Server socket created on IP: '0.0.0.0'.
2015-12-29 07:57:54 1837 [Note] /usr/sbin/mysqld: ready for connections.
Version: '5.6.21' socket: '/var/lib/mysql/mysql.sock' port: 3306 MySQL Community Server (GPL)

David.Yun的主页 David.Yun | 初学一级 | 园豆:11
提问于:2015-12-30 15:06
< >
分享
所有回答(2)
0

上面的日志比较正常,你看看在不能登录时,在服务器上执行mysql  -uroot -p### -Dmysql -e "show processlist"看看是否有人在用还是啥情况

2012 | 园豆:18932 (专家六级) | 2016-01-04 10:34
0

时间太久了

David.Yun | 园豆:11 (初学一级) | 2017-03-15 19:03
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册