国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 數據庫 > MySQL > 正文

Centos7.5安裝mysql5.7.24二進制包方式部署

2024-07-24 12:49:35
字體:
來源:轉載
供稿:網友

一、環境準備:

操作系統:CentOS Linux release 7.5.1804 (Core)

mysql版本:mysql-5.7.24-linux-glibc2.12-x86_64.tar.gz

IP:172.16.8.247

二、mysql5.7二進制安裝

1、安裝依賴包

yum -y install libaio

2、安裝mysql軟件

下載軟件包:

https://cdn.mysql.com//Downloads/MySQL-5.7/mysql-5.7.24-linux-glibc2.12-x86_64.tar.gz

tar -xvf mysql-5.7.24-linux-glibc2.12-x86_64.tar.gz -C ../cd ..mv mysql-5.7.24-linux-glibc2.12-x86_64/ mysql5.7useradd -s /sbin/nologin -M mysqlmkdir -p /app/mysql5.7/{etc,logs,tmp}

3、初始化數據

bin/mysqld --initialize --basedir=/app/mysql5.7/ --datadir=/app/mysql5.7/data --user=mysql# bin/mysqld --initialize --basedir=/app/mysql5.7/ --datadir=/app/mysql5.7/data --user=mysql2018-11-25T03:03:16.299117Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).2018-11-25T03:03:16.946059Z 0 [Warning] InnoDB: New log files created, LSN=457902018-11-25T03:03:17.033699Z 0 [Warning] InnoDB: Creating foreign key constraint system tables.2018-11-25T03:03:17.089657Z 0 [Warning] No existing UUID has been found, so we assume that this is the first time that this server has been started. Generating a new UUID: a7fef663-f05e-11e8-b1f5-08002728f0e4.2018-11-25T03:03:17.090377Z 0 [Warning] Gtid table is not ready to be used. Table 'mysql.gtid_executed' cannot be opened.2018-11-25T03:03:17.090784Z 1 [Note] A temporary password is generated for root@localhost: m:fw/7on%>Bh

4、修改配置文件

chown -R mysql .vim /app/mysql5.7/etc/my.cnf[mysqld]daemonize = onuser = mysqlport = 3306basedir = /app/mysql5.7datadir = /app/mysql5.7/datasocket = /tmp/mysql.sockbind-address = 0.0.0.0pid-file = /app/mysql5.7/tmp/mysqld.pidcharacter-set-server = utf8collation-server = utf8_general_cimax_connections = 2408log-error = /app/mysql5.7/logs/mysqld.log

5、systemd啟動MYSQL服務

vim /lib/systemd/system/mysqld.service[Unit]Description=MySQL ServerDocumentation=man:mysqld(8)Documentation=http://dev.mysql.com/doc/refman/en/using-systemd.htmlAfter=network.targetAfter=syslog.target[Install]WantedBy=multi-user.target[Service]User=mysqlGroup=mysqlType=forkingTimeoutSec=0PermissionsStartOnly=trueExecStart=/app/mysql5.7/bin/mysqld --defaults-file=/app/mysql5.7/etc/my.cnfLimitNOFILE = 5000Restart=on-failureRestartPreventExitStartus=1PrivateTmp=false

6、啟動服務

systemctl restart mysqldsystemctl enable mysqld

7、修改mysql root密碼

vim /etc/profileexport PATH=$PATH:/app/mysql5.7/binsource /etc/profilemysql -uroot -palter user 'root'@'localhost' IDENTIFIED BY 'Devops@2018';

總結

以上所述是小編給大家介紹的Centos7.5安裝mysql5.7.24二進制包方式部署,希望對大家有所幫助,如果大家有任何疑問請給我留言,小編會及時回復大家的。在此也非常感謝大家對錯新站長站網站的支持!

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 濮阳市| 宣化县| 阳朔县| 图片| 高密市| 加查县| 邛崃市| 大兴区| 两当县| 平江县| 巴南区| 米林县| 镇江市| 贵州省| 高台县| 卢龙县| 吕梁市| 河曲县| 弋阳县| 永定县| 阿坝| 健康| 宁海县| 故城县| 贵定县| 循化| 洛隆县| 理塘县| 达州市| 哈密市| 威海市| 斗六市| 田阳县| 于田县| 县级市| 咸阳市| 巨鹿县| 新丰县| 西城区| 缙云县| 乌兰县|