2026-02-26T12:05:17.641827Z 0 [System] [MY-013169] [Server] /usr/local/mysql-8.0.36-linux-glibc2.12-x86_64/bin/mysqld (mysqld 8.0.36) initializing of server in progress as process 1962
2026-02-26T12:05:17.646881Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2026-02-26T12:05:18.083433Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
2026-02-26T12:05:20.188621Z 6 [Warning] [MY-010453] [Server] root@localhost is created with an empty password ! Please consider switching off the --initialize-insecure option.
# 只要不显示ERROR就是成功
成功后检查目录下面是否能有内容
[root@mysql data]#ll /data/3306/data
total 79292
-rw-r----- 1 mysql mysql 56 Feb 26 10:19 auto.cnf
-rw------- 1 mysql mysql 1705 Feb 26 10:19 ca-key.pem
-rw-r--r-- 1 mysql mysql 1112 Feb 26 10:19 ca.pem
-rw-r--r-- 1 mysql mysql 1112 Feb 26 10:19 client-cert.pem
-rw------- 1 mysql mysql 1705 Feb 26 10:19 client-key.pem
-rw-r----- 1 mysql mysql 196608 Feb 26 10:19 '#ib_16384_0.dblwr'
-rw-r----- 1 mysql mysql 8585216 Feb 26 10:19 '#ib_16384_1.dblwr'
-rw-r----- 1 mysql mysql 5821 Feb 26 10:19 ib_buffer_pool
-rw-r----- 1 mysql mysql 12582912 Feb 26 10:19 ibdata1
drwxr-x--- 2 mysql mysql 4096 Feb 26 10:19 '#innodb_redo'
drwxr-x--- 2 mysql mysql 6 Feb 26 10:19 '#innodb_temp'
drwxr-x--- 2 mysql mysql 143 Feb 26 10:19 mysql
-rw-r----- 1 mysql mysql 26214400 Feb 26 10:19 mysql.ibd
drwxr-x--- 2 mysql mysql 8192 Feb 26 10:19 performance_schema
-rw------- 1 mysql mysql 1705 Feb 26 10:19 private_key.pem
-rw-r--r-- 1 mysql mysql 452 Feb 26 10:19 public_key.pem
-rw-r--r-- 1 mysql mysql 1112 Feb 26 10:19 server-cert.pem
-rw------- 1 mysql mysql 1705 Feb 26 10:19 server-key.pem
drwxr-x--- 2 mysql mysql 28 Feb 26 10:19 sys
-rw-r----- 1 mysql mysql 16777216 Feb 26 10:19 undo_001
-rw-r----- 1 mysql mysql 16777216 Feb 26 10:19 undo_002
2026-02-26T02:16:16.932761Z 0 [System] [MY-013169] [Server] /usr/local/mysql-8.0.36-linux-glibc2.12-x86_64/bin/mysqld (mysqld 8.0.36) initializing of server in progress as process 1771
2026-02-26T02:16:16.940822Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2026-02-26T02:16:17.578200Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
2026-02-26T02:16:19.423457Z 6 [Warning] [MY-010453] [Server] root@localhost is created with an empty password ! Please consider switching off the --initialize-insecure option.
2026-02-26T02:19:24.990039Z 0 [System] [MY-013169] [Server] /usr/local/mysql-8.0.36-linux-glibc2.12-x86_64/bin/mysqld (mysqld 8.0.36) initializing of server in progress as process 1817
2026-02-26T02:19:24.995522Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2026-02-26T02:19:25.638139Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
2026-02-26T02:19:27.195626Z 6 [Note] [MY-010454] [Server] A temporary password is generated for root@localhost: MiANqV)%h6mu