时间:2021-07-01 10:21:17 帮助过:23人阅读
3.创建配置文件所配置的文件夹并修改权限(文件夹即可)
datadir socket log-error(需要创建文件) pid-file
4.安装必要模块:
yum -y install numactl.x86_64 yum -y install autoconf yum install -y libaio
5.修改权限
chown -R root:root .
chown -R mysql:mysql data
6.添加并启动服务
cp support-files/mysql.server /etc/init.d/mysql
service mysql start
7.创建软连接
ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock
ln -s /usr/local/mysql/bin/mysql /usr/bin
8.修改初始密码
./bin/mysqladmin -u root password ‘123456‘
9.开启远程连接权限
GRANT ALL PRIVILEGES ON *.* TO ‘root‘@‘%‘IDENTIFIED BY ‘123456‘ WITH GRANT OPTION;
FLUSH PRIVILEGES;
mysql linux下安装
标签:start service libaio 添加 解压 data 安装包 support install