上一页 1 ··· 7 8 9 10 11 12 13 下一页
摘要: 在本文中使用Spring Boot 2.4.1+MyBatis-plus+Druid+Sharding-JDBC+MySQL进行读写分离的案件讲解。 1、数据库准备 1、192.168.8.162 test1主 2、192.168.8.134 test1从 3、192.168.8.176 test1 阅读全文
posted @ 2021-01-19 11:12 hzy_叶子 阅读(369) 评论(0) 推荐(0) 编辑
摘要: 在本文中使用Spring Boot 2.4.1+MyBatis+Druid+Sharding-JDBC+MySQL进行读写分离的案件讲解。 1、数据库准备 1、192.168.8.162 test1主 2、192.168.8.134 test1从 3、192.168.8.176 test1从 2、准 阅读全文
posted @ 2021-01-18 14:38 hzy_叶子 阅读(375) 评论(0) 推荐(0) 编辑
摘要: 在本文中使用Spring Boot 2.4.1+MyBatis-plus+Druid+Sharding-JDBC+MySQL进行读写分离的案件讲解。 1、数据库准备 1、192.168.8.162 test1主 2、192.168.8.134 test1从 3、192.168.8.176 test1 阅读全文
posted @ 2021-01-15 14:17 hzy_叶子 阅读(1109) 评论(0) 推荐(0) 编辑
摘要: 在本文中使用Spring Boot 2.4.1+MyBatis+Druid+Sharding-JDBC+MySQL进行读写分离的案件讲解。 1、数据库准备 1、192.168.8.162 test1主 2、192.168.8.134 test1从 3、192.168.8.176 test1从 2、上 阅读全文
posted @ 2021-01-14 13:51 hzy_叶子 阅读(505) 评论(0) 推荐(0) 编辑
摘要: 1、MySQL 主从复制原理 主库将变更写入 binlog 日志,然后从库连接到主库之后,从库有一个 IO 线程,将主库的 binlog 日志拷贝到自己本地,写入一个 relay 中继日志中。接着从库中有一个 SQL 线程会从中继日志读取 binlog,然后执行 binlog 日志中的内容,也就是在 阅读全文
posted @ 2021-01-14 09:17 hzy_叶子 阅读(794) 评论(0) 推荐(0) 编辑
摘要: 在 Centos 7 或 RHEL 7 或 Fedora 中防火墙由 firewalld 来管理,而不是 iptables。 一、firewalld 防火墙 语法命令如下:启用区域端口和协议组合 firewall-cmd [--zone=<zone>] --add-port=<port>[-<por 阅读全文
posted @ 2021-01-13 15:26 hzy_叶子 阅读(298) 评论(0) 推荐(0) 编辑
摘要: 1、下载Mysql 2、环境配置 检测系统是否自带Mysql # rmp -qa|grep mysql 如果有进行强行卸载 # rpm -e --nodeps mysql-libs-5.1.52-1.el6_0.1.x86_64 检测系统是否自带mariadb # rpm -qa|grep mari 阅读全文
posted @ 2021-01-13 15:00 hzy_叶子 阅读(441) 评论(0) 推荐(0) 编辑
摘要: 在Linux服务器上安装好mysql后登录时出现以下问题 ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' 查找mysql.sock 文件,命令如下: 阅读全文
posted @ 2021-01-13 13:23 hzy_叶子 阅读(884) 评论(0) 推荐(0) 编辑
摘要: mysql安装完成后不能用命令 systemctl start mysqld #启动 systemctl stop mysqld #停止 解决办法: find / -name mysql.server 会出现服务路径: /usr/local/mysql/support-files/mysql.ser 阅读全文
posted @ 2021-01-13 13:04 hzy_叶子 阅读(5789) 评论(0) 推荐(1) 编辑
摘要: 1、官网下载安装包https://downloads.mysql.com/archives/community/ 2、通过xftp将安装包上传至Linux服务器 3、解压压缩包tar -xvf mysql-8.0.18-linux-x86_64-minimal.tar 4、继续解压需要的那一个, t 阅读全文
posted @ 2021-01-13 12:30 hzy_叶子 阅读(110) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 下一页