OS Linux[centos,RHEL]/CentOS RHEL7

mysql 로그

infra 2021. 11. 20. 21:58

#systemctl start mysqld

mysql을 시작하였을 때의 로그

 

로그 경로 /var/log/mysqld.log

 

처음 해당 데몬을 시작하였을 때 , 패스워드가 임시적으로 발행된다.

 

A temporary password is generated for root@localhost: 7rckyP64za,i

7rckyP64za,i는 패스워드이다.

 

 

더보기

[root@centos7 log]# vim mysqld.log

1 2021-11-18T17:40:19.303977Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_d    efaults_for_timestamp server option (see documentation for more details).
  2 2021-11-18T17:40:19.684314Z 0 [Warning] InnoDB: New log files created, LSN=45790
  3 2021-11-18T17:40:19.747164Z 0 [Warning] InnoDB: Creating foreign key constraint system tables.
  4 2021-11-18T17:40:19.810472Z 0 [Warning] No existing UUID has been found, so we assume that this is the first time th    at this server has been started. Generating a new UUID: 996eac61-4896-11ec-a522-000c297d6818.
  5 2021-11-18T17:40:19.812585Z 0 [Warning] Gtid table is not ready to be used. Table 'mysql.gtid_executed' cannot be op    ened.
  6 2021-11-18T17:40:22.169190Z 0 [Warning] A deprecated TLS version TLSv1 is enabled. Please use TLSv1.2 or higher.
  7 2021-11-18T17:40:22.169218Z 0 [Warning] A deprecated TLS version TLSv1.1 is enabled. Please use TLSv1.2 or higher.
  8 2021-11-18T17:40:22.170818Z 0 [Warning] CA certificate ca.pem is self signed.
  9 2021-11-18T17:40:22.792390Z 1 [Note] A temporary password is generated for root@localhost: 7rckyP64za,i
 10 2021-11-18T17:40:25.417841Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_d    efaults_for_timestamp server option (see documentation for more details).
 11 2021-11-18T17:40:25.418880Z 0 [Note] /usr/sbin/mysqld (mysqld 5.7.36) starting as process 21515 ...
 12 2021-11-18T17:40:25.421637Z 0 [Note] InnoDB: PUNCH HOLE support available
 13 2021-11-18T17:40:25.421657Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins


 14 2021-11-18T17:40:25.421660Z 0 [Note] InnoDB: Uses event mutexes
 15 2021-11-18T17:40:25.421663Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
 16 2021-11-18T17:40:25.421665Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
 17 2021-11-18T17:40:25.421668Z 0 [Note] InnoDB: Using Linux native AIO
 18 2021-11-18T17:40:25.421830Z 0 [Note] InnoDB: Number of pools: 1
 19 2021-11-18T17:40:25.421900Z 0 [Note] InnoDB: Using CPU crc32 instructions
 20 2021-11-18T17:40:25.423394Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size     = 128M
 21 2021-11-18T17:40:25.428924Z 0 [Note] InnoDB: Completed initialization of buffer pool
 22 2021-11-18T17:40:25.439607Z 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priorit    y can be changed. See the man page of setpriority().
 23 2021-11-18T17:40:25.443974Z 0 [Note] InnoDB: Highest supported file format is Barracuda.
 24 2021-11-18T17:40:25.449318Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables
 25 2021-11-18T17:40:25.449360Z 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full    ; Please wait ...
 26 2021-11-18T17:40:25.466832Z 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
 27 2021-11-18T17:40:25.467525Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are acti    ve.
 28 2021-11-18T17:40:25.467535Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active.
 29 2021-11-18T17:40:25.468115Z 0 [Note] InnoDB: Waiting for purge to start
 30 2021-11-18T17:40:25.521399Z 0 [Note] InnoDB: 5.7.36 started; log sequence number 2749878
 31 2021-11-18T17:40:25.523099Z 0 [Note] Plugin 'FEDERATED' is disabled.
 32 2021-11-18T17:40:25.541785Z 0 [Note] Found ca.pem, server-cert.pem and server-key.pem in data directory. Trying to e    nable SSL support using them.
 33 2021-11-18T17:40:25.541848Z 0 [Note] Skipping generation of SSL certificates as certificate files are present in dat    a directory.
 34 2021-11-18T17:40:25.541861Z 0 [Warning] A deprecated TLS version TLSv1 is enabled. Please use TLSv1.2 or higher.
 35 2021-11-18T17:40:25.541867Z 0 [Warning] A deprecated TLS version TLSv1.1 is enabled. Please use TLSv1.2 or higher.
 36 2021-11-18T17:40:25.544111Z 0 [Warning] CA certificate ca.pem is self signed.
 37 2021-11-18T17:40:25.544240Z 0 [Note] Skipping generation of RSA key pair as key files are present in data directory.
 38 2021-11-18T17:40:25.549234Z 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
 39 2021-11-18T17:40:25.553549Z 0 [Note] InnoDB: Buffer pool(s) load completed at 211119  2:40:25
 40 2021-11-18T17:40:25.556990Z 0 [Note] Server hostname (bind-address): '*'; port: 3306
 41 2021-11-18T17:40:25.557280Z 0 [Note] IPv6 is available.
 42 2021-11-18T17:40:25.557333Z 0 [Note]   - '::' resolves to '::';
 43 2021-11-18T17:40:25.557374Z 0 [Note] Server socket created on IP: '::'.
 44 2021-11-18T17:40:25.581265Z 0 [Note] Event Scheduler: Loaded 0 events
 45 2021-11-18T17:40:25.581668Z 0 [Note] /usr/sbin/mysqld: ready for connections.
 46 Version: '5.7.36'  socket: '/var/lib/mysql/mysql.sock'  port: 3306  MySQL Community Server (GPL)
                                                                                                      34,40         Bot