Linux--------------mysql的安装
工具:
1>Centos6.8
2>Jdk1.7
3>Mysql5.7
1、下载mysql
wget http://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.12-1.el6.x86_64.rpm-bundle.tar
2、解压
tar -xf mysql-5.7.12-1.el6.x86_64.rpm-bundle.tar
3、查看解压后的文件
ll
mysql-community-client-5.7.12-1.el6.x86_64.rpm
mysql-community-common-5.7.12-1.el6.x86_64.rpm
mysql-community-devel-5.7.12-1.el6.x86_64.rpm
mysql-community-embedded-5.7.12-1.el6.x86_64.rpm
mysql-community-embedded-devel-5.7.12-1.el6.x86_64.rpm
mysql-community-libs-5.7.12-1.el6.x86_64.rpm
mysql-community-libs-compat-5.7.12-1.el6.x86_64.rpm
mysql-community-server-5.7.12-1.el6.x86_64.rpm
mysql-community-test-5.7.12-1.el6.x86_64.rpm
4、开始安装(更具需要安装)
mysql-community-client-5.7.12-1.el6.x86_64.rpm
mysql-community-common-5.7.12-1.el6.x86_64.rpm
mysql-community-libs-5.7.12-1.el6.x86_64.rpm
mysql-community-server-5.7.12-1.el6.x86_64.rpm
5、执行安装
rpm -ivh mysql-community-common-5.7.12-1.el6.x86_64.rpm
6、启动mysql
service mysql start
或
/etc/init.d/mysql start
7、查看是否开启
netstat -tluup
8、查看初始密码
cat /var/log/mysqld.log | more
9、重置密码
10、设置远程连接权限