一、数据库安装
1. 安装server、client:
目前统一使用版本为:MySQL-server-5.6.24-1.el6.x86_64.rpm,MySQL-client-5.6.24-1.el6.x86_64.rpm
下载地址:
wget http://IP/app/MySQL-server-5.6.24-1.el6.x86_64.rpm
wget http://IP/app/MySQL-client-5.6.24-1.el6.x86_64.rpm
安装命令:
rpm -ivh --replacefiles MySQL-s*.rpm
rpm -ivh --replacefiles MySQL-c*.rpm
要移除安装可以使用 rpm -e MySQL-server 、 rpm -e MySQL-devel、MySQL-client即可;
默认安装路径为: /usr/share/mysql
2. 初始化数据库:
/usr/bin/mysql_install_db
1. 安装server、client:
目前统一使用版本为:MySQL-server-5.6.24-1.el6.x86_64.rpm,MySQL-client-5.6.24-1.el6.x86_64.rpm
下载地址:
wget http://IP/app/MySQL-server-5.6.24-1.el6.x86_64.rpm
wget http://IP/app/MySQL-client-5.6.24-1.el6.x86_64.rpm
安装命令:
rpm -ivh --replacefiles MySQL-s*.rpm
rpm -ivh --replacefiles MySQL-c*.rpm
要移除安装可以使用 rpm -e MySQL-server 、 rpm -e MySQL-devel、MySQL-client即可;
默认安装路径为: /usr/share/mysql
2. 初始化数据库:
/usr/bin/mysql_install_db