centos6.8已经安装了mysql,所以要卸载掉
查看命令 rpm -qa | grep mysql
注意:MySQL区分大小写grep mysql 和grep MySQL 是不一样的!!
卸载命令 yum remomve mysql(刚才查看到的安装包)
全文用的是绝对路径,所以不要在乎[root@master mysql]
我用的是CentOs6系统,首先下载MySql安装包,如下:
MySQL-client-5.6.36-1.linux_glibc2.5.x86_64.rpm
MySQL-server-5.6.36-1.linux_glibc2.5.x86_64.rpm
密码:qdsi
这个包的默认解压路径是/usr/share/mysql
[root@master ~]# cd /usr/local/mysql/
[root@master mysql]# ls
MySQL-client-5.6.36-1.linux_glibc2.5.x86_64.rpm
MySQL-server-5.6.36-1.linux_glibc2.5.x86_64.rpm
[root@master mysql]# rpm -ivh MySQL-server-5.6.36-1.linux_glibc2.5.x86_64.rpm//安装mysql-server
warning: MySQL-server-5.6.36-1.linux_glibc2.5.x86_64.rpm: Header V3 DSA/SHA1
Signature, key ID 5072e1f5: NOKEY
Preparing...
(100%########################################### [100%]
1:MySQL-server (
1%########################################### [100%]
2017-04-12 00:26:36 0 [Note] Ignoring --secure-file-priv value as server is running with --
bootstrap.
2017-04-12 00:26:36 0 [Note] /usr/sbin/mysqld (mysqld 5.6.36) starting as process 8502 ...
2017-04-12 00:26:36 8502 [Note] InnoDB: Using atomics to ref count buffer pool pages
2017-04-12 00:26:36 8502 [Note] InnoDB: The InnoDB memory heap is disabled
2017-04-12 00:26:36 8502 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2017-04-12 00:26:36 8502 [Note] InnoDB: Memory barrier is not used
2017-04-12 00:26:36 8502 [Note] InnoDB: Compressed tables use zlib 1.2.3
2017-04-12 00:26:36 8502 [Note] InnoDB: Using Linux native AIO
2017-04-12 00:26:36 8502 [Note] InnoDB: Not using CPU crc32 instructions
2017-04-12 00:26:36 8502 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2017-04-12 00:26:36 8502 [Note] InnoDB: Completed initialization of buffer pool
2017-04-12 00:26:36 8502 [Note] InnoDB: The first specified data file ./ibdata1 did not
exist: a new database to be created!
2017-04-12 00:26:36 8502 [Note] InnoDB: Setting file ./ibdata1 size to 12 MB
2017-04-12 00:26:36 8502 [Note] InnoD