标签:ice 需要 关闭防火墙 允许 soc 解压 登陆 编译 pts
CentOS-7 安装好,最好是Minimal版本的
新建soft目录,上传mysql-5.6.10-linux-glibc2.5-x86_64.tar.gz
配置好网络
Mysql 编译安装需要使用perl,先把这些编译工具安装好
yum -y install perl
yum -y install perl-devel
yum -y install ‘perl(Data::Dumper)‘
tar -zxvf mysql-5.6.10-linux-glibc2.5-x86_64.tar.gz
重命名
mv mysql-5.6.10-linux-glibc2.5-x86_64 mysql
把mysql里面的所有放置到 /usr/local/mysql下
mkdir /usr/local/mysql
mv * /usr/local/mysql
mkdir -p /data/mysql
cd /usr/local/mysql/scripts
./mysql_install_db --user=root --basedir=/usr/local/mysql --datadir=/data/mysql --pid-file=/data/mysql/mysql.pid --tmpdir=/tmp --explicit_defaults_for_timestamp=true
cd /usr/local/mysql/support-files
cp my-default.cnf /etc/my.cnf
cp mysql.server /etc/init.d/mysql
vi /etc/my.cnf
basedir = /usr/local/mysql
datadir = /data/mysql
socket = /tmp/mysql.sock
log-error = /data/mysql/error.log
pid-file = /data/mysql/mysql.pid
user = root
tmpdir = /tmp
vi /etc/profile
export MYSQL_HOME=/usr/local/mysql
export PATH=$MYSQL_HOME/bin:$PATH
source /etc/profile
service mysql start
mysql
mysql>use mysql;
mysql>update user set password=password(‘root‘) where user=‘root‘ and host=‘localhost‘;
mysql>flush privileges;
GRANT ALL PRIVILEGES ON *.* TO ‘root‘@‘%‘ IDENTIFIED BY ‘root‘ WITH GRANT OPTION;
flush privileges;
systemctl stop firewalld.service
systemctl disable firewalld.service
标签:ice 需要 关闭防火墙 允许 soc 解压 登陆 编译 pts
原文地址:https://www.cnblogs.com/zhoufly-blog/p/12359148.html