[mysqld] default_authentication_plugin=mysql_native_password log-bin-trust-function-creators=1 binlog_expire_logs_seconds =604800 innodb_file_per_table innodb_flush_log_at_trx_commit = 2 lower_case_table_names=1 group_concat_max_len=1M log_output=table,file long_query_time = 2 port=3322 # set basedir to your installation path basedir=D:/xxx/mysql_new_13312 # set datadir to the location of your data directory datadir=D:/xxx/mysql_new_13312/data
PS D:\xxx\mysql_new_13312\bin> .\mysqld.exe --initialize --console 2022-01-04T07:16:04.156544Z 0 [System] [MY-013169] [Server] D:\xxx\mysql_new_13312\bin\mysqld.exe (mysqld 8.0.16) initializing of server in progress as process 23960 2022-01-04T07:16:05.332304Z 0 [Warning] [MY-010161] [Server] You need to use --log-bin to make --binlog-expire-logs-seconds work. 2022-01-04T07:16:06.675688Z 5 [Note] [MY-010454] [Server] A temporary password is generated for root@localhost: )(Qg.huCD2fw 2022-01-04T07:16:07.316226Z 0 [System] [MY-013170] [Server] D:\xxx\mysql_new_13312\bin\mysqld.exe (mysqld 8.0.16) initializing of server has completed PS D:\xxx\mysql_new_13312\bin> .\mysqld.exe --log-bin --console 2022-01-04T07:19:04.951572Z 0 [System] [MY-010116] [Server] D:\xxx\mysql_new_13312\bin\mysqld.exe (mysqld 8.0.16) starting as process 29224 2022-01-04T07:19:06.490266Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed. 2022-01-04T07:19:06.558095Z 0 [System] [MY-010931] [Server] D:\xxx\mysql_new_13312\bin\mysqld.exe: ready for connections. Version: '8.0.16' socket: '' port: 3322 MySQL Community Server - GPL. 2022-01-04T07:19:06.626795Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060