系统环境:
[root@localhost ~]# cat /etc/redhat-release
CentOS release 6.7 (Final)
[root@localhost tools]# uname -a
Linux localhost 2.6.32-573.22.1.el6.x86_64 #1 SMP Wed Mar 23 03:35:39 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
[root@localhost tools]#
软件准备:
[root@localhost tools]# pwd
/opt/tools
[root@localhost tools]# ll
total 674208
-rw-r--r-- 1 root root 639864682 Jul 22 17:47 MysqL-5.7.13-linux-glibc2.5-x86_64.tar.gz
-rw-r--r-- 1 root root 50516207 May 25 12:01 MysqL-5.7.13.tar.gz
解压安装:
[root@localhost tools]# tar xf MysqL-5.7.13-linux-glibc2.5-x86_64.tar.gz
total 674212
drwxr-xr-x 9 7161 wheel 4096 May 25 15:04 MysqL-5.7.13-linux-glibc2.5-x86_64
-rw-r--r-- 1 root root 50516207 May 25 12:01 MysqL-5.7.13.tar.gz
[root@localhost tools]#
[root@localhost tools]# mv MysqL-5.7.13-linux-glibc2.5-x86_64 /usr/local/MysqL
初始化操作(生成初始密码):
[root@localhost MysqL]# ./bin/MysqLd --initialize --user=MysqL --basedir=/usr/local/MysqL --datadir=/data/MysqL/data
2016-07-22T09:58:15.001776Z 0 [Warning] InnoDB: New log files created,LSN=45790
2016-07-22T09:58:15.062066Z 0 [Warning] InnoDB: Creating foreign key constraint system tables.
2016-07-22T09:58:15.073009Z 0 [Warning] No exi