[root@liabio ~]# kubectl logs -f mysql-79bd6fcfd-28r8b2020-10-10 01:17:36+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.7.28-1debian9 started.2020-10-10 01:17:36+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'2020-10-10 01:17:36+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.7.28-1debian9 started.2020-10-10T01:17:36.972533Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).2020-10-10T01:17:36.972607Z 0 [Warning] 'NO_ZERO_DATE', 'NO_ZERO_IN_DATE' and 'ERROR_FOR_DIVISION_BY_ZERO' sql modes should be used with strict mode. They will be merged with strict mode in a future release.2020-10-10T01:17:36.972611Z 0 [Warning] 'NO_AUTO_CREATE_USER' sql mode was not set.2020-10-10T01:17:36.974254Z 0 [Note] mysqld (mysqld 5.7.28) starting as process 1 ...2020-10-10T01:17:36.976987Z 0 [Note] InnoDB: PUNCH HOLE support available2020-10-10T01:17:36.977007Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins2020-10-10T01:17:36.977011Z 0 [Note] InnoDB: Uses event mutexes2020-10-10T01:17:36.977013Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier2020-10-10T01:17:36.977016Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.112020-10-10T01:17:36.977018Z 0 [Note] InnoDB: Using Linux native AIO2020-10-10T01:17:36.977263Z 0 [Note] InnoDB: Number of pools: 12020-10-10T01:17:36.977371Z 0 [Note] InnoDB: Using CPU crc32 instructions2020-10-10T01:17:36.979240Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M2020-10-10T01:17:36.986710Z 0 [Note] InnoDB: Completed initialization of buffer pool2020-10-10T01:17:36.988913Z 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().2020-10-10T01:17:37.000775Z 0 [Note] InnoDB: Highest supported file format is Barracuda.2020-10-10T01:17:37.013471Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables2020-10-10T01:17:37.013536Z 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...2020-10-10T01:17:37.099331Z 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.2020-10-10T01:17:37.100263Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active.2020-10-10T01:17:37.100291Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active.2020-10-10T01:17:37.100715Z 0 [Note] InnoDB: Waiting for purge to start2020-10-10T01:17:37.150994Z 0 [Note] InnoDB: 5.7.28 started; log sequence number 263642372020-10-10T01:17:37.151473Z 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool2020-10-10T01:17:37.151541Z 0 [Note] Plugin 'FEDERATED' is disabled.2020-10-10T01:17:37.152177Z 0 [Note] InnoDB: Buffer pool(s) load completed at 201010 1:17:372020-10-10T01:17:37.159254Z 0 [Note] Found ca.pem, server-cert.pem and server-key.pem in data directory. Trying to enable SSL support using them.2020-10-10T01:17:37.159279Z 0 [Note] Skipping generation of SSL certificates as certificate files are present in data directory.2020-10-10T01:17:37.159864Z 0 [Warning] CA certificate ca.pem is self signed.2020-10-10T01:17:37.159906Z 0 [Note] Skipping generation of RSA key pair as key files are present in data directory.2020-10-10T01:17:37.160296Z 0 [Note] Server hostname (bind-address): '*'; port: 33062020-10-10T01:17:37.160345Z 0 [Note] IPv6 is available.2020-10-10T01:17:37.160358Z 0 [Note] - '::' resolves to '::';2020-10-10T01:17:37.160387Z 0 [Note] Server socket created on IP: '::'.2020-10-10T01:17:37.160431Z 0 [ERROR] Could not create unix socket lock file /var/lib/mysqld/mysqld.sock.lock.2020-10-10T01:17:37.160439Z 0 [ERROR] Unable to setup unix socket lock file.2020-10-10T01:17:37.160441Z 0 [ERROR] Aborting2020-10-10T01:17:37.160452Z 0 [Note] Binlog end2020-10-10T01:17:37.160520Z 0 [Note] Shutting down plugin 'ngram'2020-10-10T01:17:37.160529Z 0 [Note] Shutting down plugin 'partition'2020-10-10T01:17:37.160531Z 0 [Note] Shutting down plugin 'BLACKHOLE'2020-10-10T01:17:37.160534Z 0 [Note] Shutting down plugin 'ARCHIVE'2020-10-10T01:17:37.160536Z 0 [Note] Shutting down plugin 'PERFORMANCE_SCHEMA'2020-10-10T01:17:37.160585Z 0 [Note] Shutting down plugin 'MRG_MYISAM'2020-10-10T01:17:37.160592Z 0 [Note] Shutting down plugin 'MyISAM'2020-10-10T01:17:37.160619Z 0 [Note] Shutting down plugin 'INNODB_SYS_VIRTUAL'2020-10-10T01:17:37.160623Z 0 [Note] Shutting down plugin 'INNODB_SYS_DATAFILES'2020-10-10T01:17:37.160627Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLESPACES'2020-10-10T01:17:37.160630Z 0 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN_COLS'2020-10-10T01:17:37.160632Z 0 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN'2020-10-10T01:17:37.160634Z 0 [Note] Shutting down plugin 'INNODB_SYS_FIELDS'2020-10-10T01:17:37.160637Z 0 [Note] Shutting down plugin 'INNODB_SYS_COLUMNS'2020-10-10T01:17:37.160640Z 0 [Note] Shutting down plugin 'INNODB_SYS_INDEXES'2020-10-10T01:17:37.160642Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLESTATS'2020-10-10T01:17:37.160645Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLES'2020-10-10T01:17:37.160648Z 0 [Note] Shutting down plugin 'INNODB_FT_INDEX_TABLE'2020-10-10T01:17:37.160649Z 0 [Note] Shutting down plugin 'INNODB_FT_INDEX_CACHE'2020-10-10T01:17:37.160651Z 0 [Note] Shutting down plugin 'INNODB_FT_CONFIG'2020-10-10T01:17:37.160653Z 0 [Note] Shutting down plugin 'INNODB_FT_BEING_DELETED'2020-10-10T01:17:37.160656Z 0 [Note] Shutting down plugin 'INNODB_FT_DELETED'2020-10-10T01:17:37.160657Z 0 [Note] Shutting down plugin 'INNODB_FT_DEFAULT_STOPWORD'2020-10-10T01:17:37.160659Z 0 [Note] Shutting down plugin 'INNODB_METRICS'2020-10-10T01:17:37.160661Z 0 [Note] Shutting down plugin 'INNODB_TEMP_TABLE_INFO'2020-10-10T01:17:37.160663Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_POOL_STATS'2020-10-10T01:17:37.160665Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE_LRU'2020-10-10T01:17:37.160667Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE'2020-10-10T01:17:37.160669Z 0 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX_RESET'2020-10-10T01:17:37.160672Z 0 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX'2020-10-10T01:17:37.160675Z 0 [Note] Shutting down plugin 'INNODB_CMPMEM_RESET'2020-10-10T01:17:37.160678Z 0 [Note] Shutting down plugin 'INNODB_CMPMEM'2020-10-10T01:17:37.160681Z 0 [Note] Shutting down plugin 'INNODB_CMP_RESET'2020-10-10T01:17:37.160684Z 0 [Note] Shutting down plugin 'INNODB_CMP'2020-10-10T01:17:37.160687Z 0 [Note] Shutting down plugin 'INNODB_LOCK_WAITS'2020-10-10T01:17:37.160688Z 0 [Note] Shutting down plugin 'INNODB_LOCKS'2020-10-10T01:17:37.160690Z 0 [Note] Shutting down plugin 'INNODB_TRX'2020-10-10T01:17:37.160692Z 0 [Note] Shutting down plugin 'InnoDB'2020-10-10T01:17:37.160756Z 0 [Note] InnoDB: FTS optimize thread exiting.2020-10-10T01:17:37.160937Z 0 [Note] InnoDB: Starting shutdown...2020-10-10T01:17:37.261160Z 0 [Note] InnoDB: Dumping buffer pool(s) to /var/lib/mysql/ib_buffer_pool2020-10-10T01:17:37.261415Z 0 [Note] InnoDB: Buffer pool(s) dump completed at 201010 1:17:372020-10-10T01:17:38.780695Z 0 [Note] InnoDB: Shutdown completed; log sequence number 263642562020-10-10T01:17:38.782420Z 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"2020-10-10T01:17:38.782452Z 0 [Note] Shutting down plugin 'MEMORY'2020-10-10T01:17:38.782459Z 0 [Note] Shutting down plugin 'CSV'2020-10-10T01:17:38.782464Z 0 [Note] Shutting down plugin 'sha256_password'2020-10-10T01:17:38.782467Z 0 [Note] Shutting down plugin 'mysql_native_password'2020-10-10T01:17:38.782664Z 0 [Note] Shutting down plugin 'binlog'2020-10-10T01:17:38.783055Z 0 [Note] mysqld: Shutdown complete
报错:
2020-10-10T01:17:37.160296Z 0 [Note] Server hostname (bind-address): '*'; port: 33062020-10-10T01:17:37.160345Z 0 [Note] IPv6 is available.2020-10-10T01:17:37.160358Z 0 [Note] - '::' resolves to '::';2020-10-10T01:17:37.160387Z 0 [Note] Server socket created on IP: '::'.2020-10-10T01:17:37.160431Z 0 [ERROR] Could not create unix socket lock file /var/lib/mysqld/mysqld.sock.lock.2020-10-10T01:17:37.160439Z 0 [ERROR] Unable to setup unix socket lock file.2020-10-10T01:17:37.160441Z 0 [ERROR] Aborting2020-10-10T01:17:37.160452Z 0 [Note] Binlog end
