上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 17 下一页
摘要: 1.安装java 1.8 mycat 1.6要求的Java需要Java 1.8或1.8以上,安装Java参考以下链接: https://blog.csdn.net/weixin_43893397/article/details/102636437 2.配置主从复制,主库创建远程用户用作数据连接 gr 阅读全文
posted @ 2020-06-19 01:18 orcl 阅读(103) 评论(0) 推荐(0) 编辑
摘要: 1.关闭selinux SELINUX=disabled 2.yum安装keepalived yum install -y keepalived 3.修改配置文件 主库配置文件: ! Configuration File for keepalived global_defs { notificati 阅读全文
posted @ 2020-06-19 01:04 orcl 阅读(204) 评论(0) 推荐(0) 编辑
摘要: ip addr add 192.168.12.4/24 dev eno16777728但是每次重启会失效 如果希望每次重启会重新绑定IP,可以将:ip addr add 192.168.12.X/24 dev eth0 命令写入文件/etc/rc.local chmod +x /etc/rc.d/r 阅读全文
posted @ 2020-06-17 23:26 orcl 阅读(368) 评论(0) 推荐(0) 编辑
摘要: 1.问题 使用mycat配置主从读写分离,启动mycat报错信息如下: STATUS | wrapper | 2020/06/17 17:00:11 | --> Wrapper Started as Daemon STATUS | wrapper | 2020/06/17 17:00:11 | La 阅读全文
posted @ 2020-06-17 17:59 orcl 阅读(3398) 评论(0) 推荐(0) 编辑
摘要: 一、环境准备(关闭防火墙) 1、清除已安装数据库 [root@mysql01 ~]# rpm -qa | grep mariadb mariadb-libs-5.5.35-3.el7.x86_64 [root@mysql01 ~]# yum remove mariadb-libs-5.5.35-3. 阅读全文
posted @ 2020-06-09 23:20 orcl 阅读(266) 评论(0) 推荐(0) 编辑
摘要: 一、环境准备(关闭防火墙) 1、清除已安装数据库 [root@mysql01 ~]# rpm -qa | grep mariadb mariadb-libs-5.5.35-3.el7.x86_64 [root@mysql01 ~]# yum remove mariadb-libs-5.5.35-3. 阅读全文
posted @ 2020-06-09 23:16 orcl 阅读(570) 评论(0) 推荐(0) 编辑
摘要: 不知道用户密码,并且不改变用户密码的情况下,批量刷新MySQL数据库用户的密码 select concat('alter user \'',user,'\'@\'',host,'\' identified by \'',authentication_string,'\';') as change_p 阅读全文
posted @ 2020-05-29 16:09 orcl 阅读(302) 评论(0) 推荐(0) 编辑
摘要: floor往下取整 floor(1.1,0.5)往下取整等于1 ceiliing网上取整 ceiling(1.6,0.5)往上取整等于2 阅读全文
posted @ 2020-05-26 16:53 orcl 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 启动(指定参数文件): [root@mysql01 ~]# mysqld_safe --defaults-file=/data/3306/my.cnf & [root@mysql01 ~]# mysqld_safe --defaults-file=/data/3307/my.cnf & 关闭(指定s 阅读全文
posted @ 2020-05-06 11:29 orcl 阅读(825) 评论(0) 推荐(0) 编辑
摘要: 1、关闭mysql [root@mysql ~]# /etc/init.d/mysqld stopShutting down MySQL.. SUCCESS! 2、修改参数文件/etc/my.cnf [root@mysql ~]# cat /etc/my.cnf[mysqld]user=mysqlb 阅读全文
posted @ 2020-04-27 23:50 orcl 阅读(266) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 17 下一页