MYSQL共39篇
Debian安装mysql提示签名错误-Ddmit

Debian安装mysql提示签名错误

背景:在Debian平台安装mysql时,配置完软件包信息,执行 apt update 报错。 错误信息: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY ...
ddmit的头像-DdmitDdmit9个月前
01270
MySQL为某用户赋予指定数据库的远程连接权限-Ddmit

MySQL为某用户赋予指定数据库的远程连接权限

GRANT ALL PRIVILEGES ON db_name.* TO 'user_name'@'%'; FLUSH PRIVILEGES;
ddmit的头像-DdmitDdmit1年前
06010
MySQL数据库blob类型转文本-Ddmit

MySQL数据库blob类型转文本

select CONVERT(SQL_PARAM USING utf8) from t_sem_model where `ID` = 1679878042040000;
ddmit的头像-DdmitDdmit2年前
07580
记一次MySQL时间排序/时间过滤查询速度优化过程(innodb_buffer_pool_size)-Ddmit

记一次MySQL时间排序/时间过滤查询速度优化过程(innodb_buffer_pool_size)

记一次对MySQL按时间查询SQL的速度优化过程。 一、环境信息 MySQL: 8.0.22; 二、待优化SQL SELECT * FROM sys_leave_records r LEFT JOIN sys_dept d ON r.dept_id = d.dept_id where ( d.dept...
ddmit的头像-DdmitDdmit3年前
07430
MariaDB Galera集群如何增加新节点-Ddmit

MariaDB Galera集群如何增加新节点

有一个在运行的MariaDB Galera集群,如果想添加一个节点或者想让一个节点重新连接到集群,该如何配置? 环境信息: CentOS Linux release 7.9.2009 (Core); mariadb-10.6.8; MariaDB Galera集...
ddmit的头像-DdmitDdmit3年前
09560
MySQL修改max_open_files设置-Ddmit

MySQL修改max_open_files设置

MYSQL默认的最大允许打开文件数为32768,但是可以通过修改启动服务的LimitNOFILE对应值来增大允许打开的文件数。 环境信息: CentOS Linux release 7.9.2009 (Core); mariadb-10.6.8; MariaDB...
ddmit的头像-DdmitDdmit3年前
010270
基于Mariadb 10.6.8在CentOS 7环境下配置Galera Cluster集群-Ddmit

基于Mariadb 10.6.8在CentOS 7环境下配置Galera Cluster集群

这篇文章主要内容是MariaDB Galera Cluster集群搭建过程,至于这个集群的工作原理、优缺点比较,不在这里讨论。 环境信息: CentOS Linux release 7.9.2009 (Core); mariadb-10.6.8; 集群搭建...
ddmit的头像-DdmitDdmit3年前
09010
如何安全的关闭/重启MySQL Galera集群-Ddmit

如何安全的关闭/重启MySQL Galera集群

原文:如何安全的关闭/重启MySQL Galera集群。 搭建过程:基于Mariadb 10.6.4在CentOS 7环境下配置Galera Cluster集群。 如何安全的关闭/重启MySQL多主集群(Galera Cluster)环境呢?这里记录下...
ddmit的头像-DdmitDdmit3年前
013710
安装Mariadb时Mariadb依赖库跟原来安装的mysql community版本依赖冲突解决-Ddmit

安装Mariadb时Mariadb依赖库跟原来安装的mysql community版本依赖冲突解决

原文:安装Mariadb时Mariadb依赖库跟原来安装的mysql community版本依赖冲突解决。 在一台原来安装了mysql community版本的机器上,安装Mariadb,出错: Transaction check error: file /etc/my...
ddmit的头像-DdmitDdmit3年前
010510
MySQL如开启定时任务-Ddmit

MySQL如开启定时任务

原文:https://www.4spaces.org/mysql-set-shedule/ MySQL开启定时任务的步骤如下: 1.检查event事件是否开启 show variables like '%sche%'; 没开启的话,执行命令开启: set global event_sch...
ddmit的头像-DdmitDdmit3年前
09890