0℃
2025年06月13日
⁄ MySQL
⁄ 被围观 66次+
操作系统:AnolisOS-8.10
mysql版本:mysql-5.7.44-linux-glibc2.12-x86_64.tar.gz
准备篇
1、关闭SELINUX
#AnolisOS-8.10默认是关闭的,可以不用操作
vi /etc/selinux/config
#SELINUX=enforcing #注释掉
#SELINUXTYPE=targeted #注释掉
SELINUX=disabled #增加
:wq! #保存退出
setenforce 0 #使配置立即生效
2、开启防火墙
系统默认使用的是firewall作为防火墙,这里改为iptables防火墙。
开启mysql默认端口3306
2.1、关闭firewall:
systemctl stop firewalld.service #停止firewall
systemctl disable firewa...
linux, mysql阅读全文
0℃
2025年06月12日
⁄ MySQL
⁄ 被围观 132次+
操作系统:AnolisOS-8.10
mysql版本:mysql-8.4.5-linux-glibc2.28-x86_64.tar.xz
准备篇
1、关闭SELINUX
#AnolisOS-8.10默认是关闭的,可以不用操作
vi /etc/selinux/config
#SELINUX=enforcing #注释掉
#SELINUXTYPE=targeted #注释掉
SELINUX=disabled #增加
:wq! #保存退出
setenforce 0 #使配置立即生效
2、开启防火墙
系统默认使用的是firewall作为防火墙,这里改为iptables防火墙。
开启mysql默认端口3306
2.1、关闭firewall:
systemctl stop firewalld.service #停止firewall
systemctl disable firewal...
mysql阅读全文
0℃
2022年09月02日
⁄ MySQL
⁄ 被围观 5,639次+
操作系统:CentOS 7.x
MySQL二进制版本:5.7.x 小版本升级
现有版本:MySQL 5.7.38
升级后版本:MySQL 5.7.39
下载地址:https://cdn.mysql.com//Downloads/MySQL-5.7/mysql-5.7.39-linux-glibc2.12-x86_64.tar.gz
上传mysql-5.7.39-linux-glibc2.12-x86_64.tar.gz到/usr/local/src
升级前先查看MySQL 5.7.x 中添加、弃用或删除的变量和选项
https://dev.mysql.com/doc/refman/5.7/en/added-deprecated-removed.html
############################################
MySQL 8.0.x版本可以使用mysql-shell进行升级前...
linux, mysql阅读全文
0℃
2022年06月30日
⁄ 主从架构
⁄ 被围观 4,517次+
说明:
操作系统:CentOS 7.x 64位
MySQL数据库版本:mysql-5.7.38-linux-glibc2.12-x86_64.tar.gz
MySQL主服务器:192.168.21.128
MySQL从服务器:192.168.21.129
准备篇:
说明:在两台MySQL服务器192.168.21.128和192.168.21.129上分别进行如下操作
一、防火墙配置
CentOS 7.x 默认使用的是firewall作为防火墙,这里改为iptables防火墙。
1、关闭firewall:
systemctl stop firewalld.service #停止firewall
systemctl disable firewalld.service #禁止firewall开机启动
systemctl mask firewalld
systemctl s...
mysql, 主从同步, 数据库阅读全文
0℃
2021年11月09日
⁄ MySQL
⁄ 被围观 6,592次+
准备篇
一、防火墙配置
#防火墙请根据个人需求进行选择和设置,下面以iptables防火墙为例
CentOS 8.x默认使用的是firewall作为防火墙,这里改为iptables防火墙。
1、关闭firewall:
systemctl stop firewalld.service #停止firewall
systemctl disable firewalld.service #禁止firewall开机启动
systemctl mask firewalld
systemctl stop firewalld
yum remove firewalld
2、安装iptables防火墙
yum install iptables-services #安装
vi /etc/sysconfig/iptables #编辑防火墙配置文件
# sample configuration for...
CentOS, mysql阅读全文
0℃
2021年09月07日
⁄ Docker
⁄ 被围观 8,656次+
一、CentOS 7.x 安装Docker-ce社区版本
https://www.osyunwei.com/archives/11592.html
二、准备安装软件包
cd /usr/local/src #建议先把需要安装的软件包下载到本地目录
下载mysql二进制安装包
wget https://cdn.mysql.com//Downloads/MySQL-8.0/mysql-8.0.26-linux-glibc2.12-x86_64.tar.xz
三、构建mysql容器镜像
1、从docker hub拉取官方基础镜像
#我们用centos系统进行构建
https://hub.docker.com/_/centos?tab=tags&page=1&ordering=last_updated
选择centos:7.9.2009版本
docker pull centos:7...
docker, mysql阅读全文
0℃
2021年09月02日
⁄ Docker
⁄ 被围观 6,334次+
一、CentOS 7.x 安装Docker-ce社区版本
https://www.osyunwei.com/archives/11592.html
二、准备安装软件包
cd /usr/local/src #建议先把需要安装的软件包下载到本地目录
1、下载mysql
http://mirrors.sohu.com/mysql/MySQL-5.6/mysql-5.6.48.tar.gz
2、下载cmake(编译工具)
https://cmake.org/files/v3.21/cmake-3.21.1.tar.gz
三、构建mysql容器镜像
1、从docker hub拉取官方基础镜像
#我们用centos系统进行构建
https://hub.docker.com/_/centos?tab=tags&page=1&ordering=last_updated
选择cento...
docker, mysql阅读全文
0℃
2021年09月02日
⁄ Docker
⁄ 被围观 6,467次+
一、CentOS 7.x 安装Docker-ce社区版本
https://www.osyunwei.com/archives/11592.html
二、准备安装软件包
cd /usr/local/src #建议先把需要安装的软件包下载到本地目录
1、下载mysql
https://cdn.mysql.com/archives/mysql-5.5/mysql-5.5.62.tar.gz
2、下载cmake(编译工具)
https://cmake.org/files/v3.21/cmake-3.21.1.tar.gz
三、构建mysql容器镜像
1、从docker hub拉取官方基础镜像
#我们用centos系统进行构建
https://hub.docker.com/_/centos?tab=tags&page=1&ordering=last_updated
选择cent...
docker, mysql阅读全文
0℃
2021年06月13日
⁄ LNMP
⁄ 被围观 16,463次+
基础教程:
Debian 10.9.x安装配置图解教程
https://www.osyunwei.com/archives/11103.html
准备篇:
一、配置防火墙,开启80端口、3306端口
Debian默认没有安装任何防火墙的,我们这里推荐使用iptables防火墙。
1.1安装iptables防火墙
whereis iptables #查看系统是否安装防火墙
apt-get install iptables #运行此命令安装防火墙
mkdir /etc/sysconfig #创建防火墙配置文件存放目录
touch /etc/sysconfig/iptables #创建防火墙配置文件
nano /etc/sysconfig/iptables #编辑添加防火墙规则
# sample configuratio...
Debian, lnmp, mysql, nginx, php阅读全文
0℃
2021年06月02日
⁄ LNMP
⁄ 被围观 9,190次+
基础教程:
Ubuntu Server 20.04.1 LTS安装配置图解教程
https://www.osyunwei.com/archives/10727.html
准备篇:
一、配置防火墙,开启80端口、3306端口
1.1安装iptables防火墙
Ubuntu Server默认没有开启任何防火墙的,但是默认安装了ufw防火墙,我们这里推荐使用iptables防火墙。
ufw status #查看系统自带的ufw防火墙状态
Status: inactive #表示关闭
ufw disable #关闭ufw防火墙,参数enable是开启,我们这里关闭
apt-get remove ufw #卸载ufw
apt-get purge ufw #清除ufw依赖包
whereis iptables #查看系统...
lnmp, mysql, nginx, php阅读全文
0℃
2021年03月23日
⁄ LNMP
⁄ 被围观 11,619次+
本文档最后更新于2021年5月28日
基础教程:
Rocky Linux 8.x系统安装配置图解教程
https://www.osyunwei.com/archives/11453.html
准备篇
一、防火墙配置
Rocky Linux 8.x默认使用的是firewall作为防火墙,这里改为iptables防火墙。
1、关闭firewall:
systemctl stop firewalld.service #停止firewall
systemctl disable firewalld.service #禁止firewall开机启动
systemctl mask firewalld
systemctl stop firewalld
yum remove firewalld
2、安装iptables防火墙
yum install iptables-services #安装
vi /etc/...
CentOS, lnmp, mysql, nginx, php, Rocky阅读全文
0℃
2019年11月11日
⁄ IIS
⁄ 被围观 38,015次+
准备篇
一、环境说明:
操作系统:Windows Server 2019
PHP版本:php 7.3.11
MySQL版本:MySQL 8.0.18.0
二、相关软件下载:
1、PHP下载地址:
https://windows.php.net/downloads/releases/php-7.3.11-nts-Win32-VC15-x64.zip
2、MySQL下载地址:
https://cdn.mysql.com//Downloads/MySQLInstaller/mysql-installer-community-8.0.18.0.msi
3、Visual C++ Redistributable for Visual Studio 2015(安装PHP、MySQL需要此插件)
https://download.visualstudio.microsoft.com/download/pr/11100229/78c1e864d806e...
FastCGI, iis, mysql, php, Windows阅读全文
0℃
2019年10月25日
⁄ LNMP
⁄ 被围观 36,965次+
必会知识:
CentOS 8.0.1905系统安装配置图解教程
https://www.osyunwei.com/archives/10256.html
准备篇
一、防火墙配置
CentOS 从7.x开始默认使用的是firewall作为防火墙,这里改为iptables防火墙。
1、关闭firewall:
systemctl stop firewalld.service #停止firewall
systemctl disable firewalld.service #禁止firewall开机启动
systemctl mask firewalld
systemctl stop firewalld
yum -y remove firewalld
2、安装iptables防火墙
yum install iptables-services #安装
vi /etc/sysconfig/iptables #编辑防...
CentOS, lnmp, mysql, php阅读全文
0℃
2019年09月30日
⁄ MySQL
⁄ 被围观 22,736次+
本文CentOS版本:CentOS 8.0.1905
MySQL版本:mysql-8.0.18
前传:
CentOS 8.0.1905系统安装配置图解教程
https://www.osyunwei.com/archives/10256.html
准备篇
一、防火墙配置
CentOS 从7.x开始默认使用的是firewall作为防火墙,这里改为iptables防火墙。
1、关闭firewall:
systemctl stop firewalld.service #停止firewall
systemctl disable firewalld.service #禁止firewall开机启动
systemctl mask firewalld
systemctl stop firewalld
yum remove firewalld
2、安装iptables防火墙
yum install iptables-...
CentOS, mysql阅读全文
0℃
2019年06月19日
⁄ MySQL
⁄ 被围观 19,745次+
遇到问题:按照MySQL5.6版本之前的语句对MySQL5.7版本执行创建数据库、添加用户并对用户授权操作后,有可能该授权用户只能连接到数据库,但是执行不了任何操作,更是创建不了数据表。
解决问题:通过测试,发现在MySQL5.7版本中,可能要授权用户对所有数据库有SUPER权限,否则可能该授权用户只能连接数据库并不能执行任何操作。
数据库名称:mydb
数据库用户名:mydbuser
数据库密码:123456
Create DATABASE IF NOT EXISTS mydb default charset utf8 COLLATE utf8_general_ci; #创建数据库
#MySQL5.7版本建议先...
mysql阅读全文
0℃
2018年04月30日
⁄ MySQL
⁄ 被围观 52,715次+
问题:
MySQL数据库迁移到MySQL5.7版本后,出现如下报错:
原因分析:MySQL5.7版本默认设置了 mysql sql_mode = only_full_group_by 属性,导致报错。
解决办法:
1、打开MySQL数据库控制台
执行全局sql语句:
set @@sql_mode=
'STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,
NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION';
或者
SET GLOBAL sql_mode=
'STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,
NO_AUTO_CREATE_USER,NO_ENGINE_SUBS...
mysql阅读全文
0℃
2017年03月03日
⁄ LNMP
⁄ 被围观 31,588次+
前传:
1、CentOS 7.3.1611系统安装配置图解教程
http://www.osyunwei.com/archives/10003.html
2、CentOS服务器初始化设置
http://www.osyunwei.com/archives/9034.html
准备篇
一、防火墙配置
CentOS 7.x默认使用的是firewall作为防火墙,这里改为iptables防火墙。
1、关闭firewall:
systemctl stop firewalld.service #停止firewall
systemctl disable firewalld.service #禁止firewall开机启动
2、安装iptables防火墙
yum install iptables-services #安装
vi /etc/sysconfig/iptables #编辑防火墙配置文件
...
CentOS, lnmp, mysql, php7阅读全文