发现变化挺大的就是初始化了
/application/mysql/bin/mysqld --initialize --basedir=/application/mysql/ --datadir=/application/mysql/data/ --user=mysql
当开启服务,发现需要密码 ,查到--initializ 参数会生成随机密码在错误日志中,查了半天怎么没有??恼火
代码: 全选
[root@VM_159_120_centos mysql]# cat /etc/my.cnf
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0
[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
[root@VM_159_120_centos mysql]#
代码: 全选
[root@VM_159_120_centos mysql]# cat /var/log/mysqld.log
2018-05-12T07:22:55.107308Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2018-05-12T07:22:55.107409Z 0 [Note] --secure-file-priv is set to NULL. Operations related to importing and exporting data are disabled
2018-05-12T07:22:55.107442Z 0 [Note] /application/mysql/bin/mysqld (mysqld 5.7.21) starting as process 12129 ...
2018-05-12T07:22:55.120834Z 0 [Note] InnoDB: PUNCH HOLE support available
2018-05-12T07:22:55.120862Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2018-05-12T07:22:55.120866Z 0 [Note] InnoDB: Uses event mutexes
2018-05-12T07:22:55.120869Z 0 [Note] InnoDB: GCC builtin __sync_synchronize() is used for memory barrier
2018-05-12T07:22:55.120872Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.3
2018-05-12T07:22:55.120875Z 0 [Note] InnoDB: Using Linux native AIO
2018-05-12T07:22:55.121105Z 0 [Note] InnoDB: Number of pools: 1
2018-05-12T07:22:55.121198Z 0 [Note] InnoDB: Using CPU crc32 instructions
2018-05-12T07:22:55.122452Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
2018-05-12T07:22:55.130166Z 0 [Note] InnoDB: Completed initialization of buffer pool
2018-05-12T07:22:55.132205Z 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2018-05-12T07:22:55.149462Z 0 [Note] InnoDB: Highest supported file format is Barracuda.
2018-05-12T07:22:55.168416Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2018-05-12T07:22:55.168462Z 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2018-05-12T07:22:55.226198Z 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2018-05-12T07:22:55.227073Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active.
2018-05-12T07:22:55.227084Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active.
2018-05-12T07:22:55.227305Z 0 [Note] InnoDB: Waiting for purge to start
2018-05-12T07:22:55.277513Z 0 [Note] InnoDB: 5.7.21 started; log sequence number 2551166
2018-05-12T07:22:55.278480Z 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
2018-05-12T07:22:55.279158Z 0 [Note] Plugin 'FEDERATED' is disabled.
2018-05-12T07:22:55.293376Z 0 [Note] InnoDB: Buffer pool(s) load completed at 180512 15:22:55
2018-05-12T07:22:55.295522Z 0 [Warning] Failed to set up SSL because of the following SSL librar