随笔 - 502  文章 - 1 评论 - 6 阅读 - 37万
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

随笔分类 -  Mysql 使用

1 2 下一页
Mysql新建日历表
摘要:新建最近几十年的天 CREATE TABLE if not exists calendar(account_day date); INSERT INTO calendar(account_day)SELECT DATE_ADD('2024-01-01', INTERVAL n DAY)FROM ( 阅读全文
posted @ 2024-05-19 13:18 1161588342 阅读(76) 评论(0) 推荐(0) 编辑
解析Navicate密码
摘要:<?php class NavicatPassword { protected $version = 0; protected $aesKey = 'libcckeylibcckey'; protected $aesIv = 'libcciv libcciv '; protected $blowSt 阅读全文
posted @ 2024-01-13 11:29 1161588342 阅读(22) 评论(0) 推荐(0) 编辑
MySQL 导出实体类
摘要:https://github.com/minquiers/DBExportDocTool 阅读全文
posted @ 2022-03-07 11:29 1161588342 阅读(45) 评论(0) 推荐(0) 编辑
Mysql 给表某个字段加唯一约束
摘要:参考网址: http://c.biancheng.net/view/2445.html DROP TABLE IF EXISTS `test`;CREATE TABLE `test` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '自增ID', 阅读全文
posted @ 2022-01-06 09:47 1161588342 阅读(551) 评论(0) 推荐(0) 编辑
MySQL实现自增序列
摘要:参考:https://blog.csdn.net/weixin_42383575/article/details/103023379 新建序列 ### 新建序列表 drop table if exists sequence; create table sequence( seq_name VARCH 阅读全文
posted @ 2022-01-05 13:21 1161588342 阅读(1265) 评论(0) 推荐(0) 编辑
Mysql 清理表, 调整group列记录
摘要:# 基础表8个TRUNCATE t_org;TRUNCATE t_shops;TRUNCATE t_equipment_info;TRUNCATE t_shopping_receipt_template;TRUNCATE t_receipt_daily_template;TRUNCATE t_rec 阅读全文
posted @ 2021-11-08 15:13 1161588342 阅读(40) 评论(0) 推荐(0) 编辑
Mysql 命令查看函数,触发器。。
摘要:https://blog.csdn.net/ymg2010/article/details/9264525 阅读全文
posted @ 2021-01-27 13:45 1161588342 阅读(288) 评论(0) 推荐(0) 编辑
Mysql 报错:The user specified as a definer ('skip-grants user'@'skip-grants host') does not exist
摘要:参考: https://blog.csdn.net/qq_42345108/article/details/103950857 执行命令: grant all privileges on *.* to 'skip-grants user'@'skip-grants host' identified 阅读全文
posted @ 2020-10-28 10:22 1161588342 阅读(1332) 评论(0) 推荐(0) 编辑
Mysql 事件未执行
摘要:1、查看event_scheduler状态情况是ON 还是OFF show VARIABLES like 'event%' 若为OFF,则执行下列指令 SET GLOBAL event_scheduler = 1; /*0不执行,1开始执行*/或SET GLOBAL event_scheduler  阅读全文
posted @ 2020-09-25 09:45 1161588342 阅读(922) 评论(0) 推荐(0) 编辑
Mysql 提示拷贝效率
摘要:https://www.jb51.net/article/147293.htm 阅读全文
posted @ 2020-06-30 16:55 1161588342 阅读(116) 评论(0) 推荐(0) 编辑
Mysql 指定用户拥有指定数据库权限
摘要:新建用户 指定用户名和密码 服务器权限勾中3个 权限-添加权限,去掉勾REference 和 Grant 登入mysql数据库刷新权限 阅读全文
posted @ 2020-01-13 22:38 1161588342 阅读(791) 评论(0) 推荐(0) 编辑
Mysql 解决emoji表情处理问题 - Incorrect string value: '\xF0\x9F\x92\x94' for column
摘要:Incorrect string value: '\xF0\x9F\x92\x94' for column 方式一: 改为UTF8存贮 https://blog.csdn.net/cai454692590/article/details/100016561 方式二 数据库改为utf8mb4 阅读全文
posted @ 2019-08-31 11:41 1161588342 阅读(2954) 评论(0) 推荐(0) 编辑
Mysql ERROR 1071 (42000): Specified key was too long; max key length is 767 bytes
摘要:参考地址: https://www.cnblogs.com/kerrycode/p/9680881.html Mysql5.6默认关闭的,5.7默认打开的 阅读全文
posted @ 2019-05-07 17:31 1161588342 阅读(196) 评论(0) 推荐(0) 编辑
MySQL 游标使用 多字段
摘要:CREATE DEFINER=`root`@`localhost` FUNCTION `FUN_FIX_RECEIPT_CONTENT_PAYMENT`(accountStartDay varchar(10), accountEndDay varchar(10)) RETURNS int(11) BEGIN #解析原始小票前 删除解析小票 #shopsId 商家I... 阅读全文
posted @ 2019-05-05 10:30 1161588342 阅读(319) 评论(0) 推荐(0) 编辑
阿里云 RDS for MySQL 物理备份文件恢复到自建数据库
摘要:想把阿里云的Mysql 生成的RAS 文件.tar文件 恢复到本地自建mysql, 遇到的坑.希望帮助大家 阿里云提供的地址 https://help.aliyun.com/knowledge_detail/41817.html#h2-url-1 1:安装 Mysql 和 innobackup 需要 阅读全文
posted @ 2019-04-26 11:21 1161588342 阅读(403) 评论(0) 推荐(0) 编辑
Mysql 诡异的增加1秒
摘要:https://my.oschina.net/u/2353881/blog/1573811 阅读全文
posted @ 2018-11-27 10:08 1161588342 阅读(114) 评论(0) 推荐(0) 编辑
Mysql 定时任务事件
摘要:参考文献: https://blog.csdn.net/dream_ll/article/details/73499750 阅读全文
posted @ 2018-10-10 14:38 1161588342 阅读(91) 评论(0) 推荐(0) 编辑
Mysql order by 导致 using filesorting
摘要:https://www.cnblogs.com/drcoding/p/4942277.html 阅读全文
posted @ 2018-09-25 17:05 1161588342 阅读(107) 评论(0) 推荐(0) 编辑
在mysql命令行下执行sql文件
摘要:***********在mysql命令行下执行sql文件*********** C:\Windows\system32>cd E:\MySQL\mysql-5.7.16-winx64\bin //将目录切换到mysql的bin文件所在的目录 C:\Windows\system32>mysql -ur 阅读全文
posted @ 2018-07-12 18:40 1161588342 阅读(499) 评论(0) 推荐(0) 编辑
Mysql 主- 开启binlog
摘要:https://www.cnblogs.com/martinzhang/p/3454358.html my.cnf 添加 log_bin=mysql-bin 开启日志,然后重启mysql服务器. 查看是否开启 阅读全文
posted @ 2018-07-03 12:46 1161588342 阅读(127) 评论(0) 推荐(0) 编辑

1 2 下一页
点击右上角即可分享
微信分享提示