随笔分类 -  mysql

摘要:SELECT TABLE_NAME 表名, COLUMN_NAME 字段名, COLUMN_TYPE 字段类型, IS_NULLABLE 是否为空, COLUMN_DEFAULT 默认值, COLUMN_COMMENT 字段注释 FROM information_schema.COLUMNS WHE 阅读全文
posted @ 2026-03-17 14:14 SimpleSmile 阅读(6) 评论(0) 推荐(0)
摘要:select * from system_organization where id = 1 union all select * from system_organization where id in ( select t3.id from ( select t1.id, if(find_in_ 阅读全文
posted @ 2021-09-04 08:43 SimpleSmile 阅读(88) 评论(0) 推荐(0)
摘要:select replace(replace(val,char(10),''),char(13),'') from tab char(10) : ascii码的 换行符 (换行) char(13) : ascii码的 水平制表符 (换列) 阅读全文
posted @ 2021-01-25 18:09 SimpleSmile 阅读(352) 评论(0) 推荐(0)
摘要:1.查看模式 select @@sql_mode 2.将 ONLY_FULL_GROUP_BY 模式去掉 SET sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY','')); 3.设置全局变量set global sql_mode='S 阅读全文
posted @ 2021-01-20 09:34 SimpleSmile 阅读(354) 评论(0) 推荐(0)
摘要:操作系统:centos7 mysql版本: mysql-8.0.16-el7-x86_64.tar.gz 配置文件: my.cnf Mysql 8.0.5 提示 consider upgrading MySQL client 解决方法 USE mysql; ALTER USER 'root'@'lo 阅读全文
posted @ 2020-11-24 11:16 SimpleSmile 阅读(79) 评论(0) 推荐(0)
摘要:1.查看端口数 netsh int ipv4 show dynamicportrange tcp 协议 tcp 动态端口范围 启动端口 : 49152 端口数 : 16384 2.设置端口数 netsh int ipv4 set dynamicport tcp start=2000 num=6300 阅读全文
posted @ 2020-11-18 10:25 SimpleSmile 阅读(333) 评论(0) 推荐(0)
摘要:cd C:\mysql-8.0.12-winx64\bin mysqld --initialize-insecure --user=mysql --console mysqld install net start mysql pause echo use mysql;>in.txt echo upd 阅读全文
posted @ 2020-05-28 10:16 SimpleSmile 阅读(1526) 评论(0) 推荐(0)
摘要://查看mysql连接进程列表show full processlist;//查看连接数show variables like '%max_connections%';show global status like 'Max_used_connections'; //查看进程休息多少秒后清除连接sh 阅读全文
posted @ 2020-05-28 10:12 SimpleSmile 阅读(850) 评论(0) 推荐(0)