摘要: 一、mysql结构 1.实例 1.什么是单实例 一个进程 + 多个线程 + 一个预分配的内存空间 2.多实例 多个进程 + 多个线程 + 多个预分配的内存空间 ](http://shelldon.51vip.biz/wp-content/uploads/2020/08/wp_editor_md_c6 阅读全文
posted @ 2020-12-02 13:06 Gshelldon 阅读(201) 评论(0) 推荐(0) 编辑
摘要: Linux 系统优化 关闭SELinux [root@workstation ~]# sed -i 's#SELINUX=enforcing#SELINUX=disabled#g' /etc/selinux/config [root@workstation ~]# setenforce 0 [roo 阅读全文
posted @ 2020-12-02 13:04 Gshelldon 阅读(196) 评论(0) 推荐(0) 编辑
摘要: Linux 系统优化 1、修改ip地址、网关、主机名、DNS等 在服务器集群中装好操作系统做的第一件事就是,配置好网络,DNS可以根据服务器是否连接外网设定。 2、关闭selinux,清空iptables 在CentOS7 的系统中加入了firewalld,关闭之后在调试业务有帮助,如果有需求可以在 阅读全文
posted @ 2020-12-02 13:03 Gshelldon 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 1.客户端与服务端模型 1)数据是一个典型的C/S结构的服务 1.mysql自带的客户端工具 mysql mysqladmin mysqldump 3.mysql是一个二进制程序,后台守护进程 单进程 多线程 2)mysql的连接方式 1.TCP/IP连接 2.socket连接 #tcp/ip连接 阅读全文
posted @ 2020-12-02 13:02 Gshelldon 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 1.不小心删除了mysql所有用户 mysql> delete from mysql.user where 1=1; Query OK, 5 rows affected (0.00 sec) #删除用户以后还是可以登陆,但是不要重启 2.解决方式一: 1)停止数据库 #抽根烟冷静一下 [root@d 阅读全文
posted @ 2020-12-02 13:01 Gshelldon 阅读(229) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-12-02 12:59 Gshelldon 阅读(80) 评论(0) 推荐(0) 编辑
摘要: mysql 安装 1.安装方式 1.二进制安装 2.源码包安装 3.rpm包安装 1.二进制安装 1)上传或者下载包 [root@db01 ~]# rz #或者 [root@web01 ~]# wget https://downloads.mysql.com/archives/get/p/23/fi 阅读全文
posted @ 2020-12-02 12:54 Gshelldon 阅读(264) 评论(0) 推荐(0) 编辑