随笔 - 404  文章 - 4  评论 - 0  阅读 - 25万
06 2018 档案
MySQL的性能指标计算和优化方法
摘要:MySQL的性能指标计算和优化方法1 QPS计算(每秒查询数) 针对MyISAM引擎为主的DB mysql> show global status like 'questions';+ + +| Variable_name | Value |+ + +| Questions | 2805815665 阅读全文
posted @ 2018-06-20 19:03 HelonTian 阅读(193) 评论(0) 推荐(0) 编辑
mysqlbinlog读懂binlog
摘要:binlog 报unknown variable 'default-character-set=utf8' 方法1: 在/etc/my.cnf 中将default-character-set=utf8修改成charater-set-server=utf8 方法2: mysqlbinlog --no- 阅读全文
posted @ 2018-06-20 10:38 HelonTian 阅读(277) 评论(0) 推荐(0) 编辑
将MSQL中的数据导出至EXCEL
摘要:mysql> show variables like '%secure%';+ + +| Variable_name | Value |+ + +| secure_auth | ON || secure_file_priv | /data/var-3307 |+ + +2 rows in set ( 阅读全文
posted @ 2018-06-14 22:46 HelonTian 阅读(142) 评论(0) 推荐(0) 编辑
ERROR 1366 (HY000): Incorrect string value:MySQL数据库、表的字符集为GBK
摘要:mysql> update userinfo set MEDIASOURCE = 'CS02-北京' where IMPORTNO = 'IMP201640613101206';ERROR 1366 (HY000): Incorrect string value: '\x91' for column 阅读全文
posted @ 2018-06-14 22:38 HelonTian 阅读(161) 评论(0) 推荐(0) 编辑
ORACLE表空间offline谈起,表空间备份恢复
摘要:从ORACLE表空间offline谈起,表空间备份恢复将表空间置为offline,可能的原因包括维护、备份恢复等目的;表空间处于offline状态,那么Oracle不会允许任何对该表空间中对象的SQL执行,表空间置为offline时仍处于活动状态的语句在交易级别并不会受影响。 实验一:RMAN备份恢 阅读全文
posted @ 2018-06-14 22:31 HelonTian 阅读(400) 评论(0) 推荐(0) 编辑
Oracle Flashback Transaction Query with Oracle Flashback Version Query
摘要:Oracle Flashback Transaction Query with Oracle Flashback Version Query In this example, a database administrator does this: Now emp and dept have one 阅读全文
posted @ 2018-06-08 15:47 HelonTian 阅读(150) 评论(0) 推荐(0) 编辑
Oracle Flashback Database
摘要:Oracle Flashback Database To use the FLASHBACK DATABASE command to return your database contents to points in time within the flashback window, your d 阅读全文
posted @ 2018-06-08 15:46 HelonTian 阅读(120) 评论(0) 推荐(0) 编辑
Oracle Flashback Drop
摘要:The following list summarizes the user privileges required for the operations related to Flashback Drop and the recycle bin: DROP Any user with DROP p 阅读全文
posted @ 2018-06-08 15:35 HelonTian 阅读(196) 评论(0) 推荐(0) 编辑
Oracle Flashback Table
摘要:Ensure that the prerequisites described in Prerequisites for Flashback Table are met. To use the Flashback Table feature on one or more tables, use th 阅读全文
posted @ 2018-06-08 15:27 HelonTian 阅读(188) 评论(0) 推荐(0) 编辑
新上线MySQL数据库规划
摘要:新上线MySQL数据库规划1.删除test库2.删除root用户或者让root用户只可在本机登陆而对于有业务访问的数据库,在做删除root用户前需要依次确认 function、procedure、event、view、trigger的definer;有definer为root@%或root@xxx需 阅读全文
posted @ 2018-06-08 11:03 HelonTian 阅读(142) 评论(0) 推荐(0) 编辑
oracle RMAN备份
摘要:生产系统ORACLE数据库备份实施 采用RMAN差异增量备份 策略:每4个月一次全备;每周日RMAN0级备份、周一至周六rman1级差异增量备份; Rman备份脚本: 阅读全文
posted @ 2018-06-07 12:00 HelonTian 阅读(107) 评论(0) 推荐(0) 编辑
MySQL部分索引
摘要:部分索引 char/varchar2太长,全部做索引的话,效率低,浪费存储空间 select avg(length(username)) from 索引统计: show index from table select * from I_S.STATISTICS mysql.innodb_index_ 阅读全文
posted @ 2018-06-04 23:07 HelonTian 阅读(216) 评论(0) 推荐(0) 编辑
ERROR 1292 (22007): Truncated incorrect DOUBLE value: 'asfsda1'
摘要:mysql> UPDATE financial_sales_order SET ASSIGN_TIME = '2018-05-02 00:00:00' where CUSTOMER_ID=3541535;ERROR 1292 (22007): Truncated incorrect DOUBLE v 阅读全文
posted @ 2018-06-04 18:16 HelonTian 阅读(375) 评论(0) 推荐(0) 编辑
MySQL定义数据库对象之指定definer
摘要:mysql创建view、trigger、function、procedure、event时都会定义一个Definer: SQL SECURITY 有两个选项,一个为DEFINER,一个为INVOKER;SQL SECURITY { DEFINER | INVOKER } :指明谁有权限来执行。DEF 阅读全文
posted @ 2018-06-01 17:30 HelonTian 阅读(403) 评论(0) 推荐(0) 编辑

< 2025年2月 >
26 27 28 29 30 31 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 1
2 3 4 5 6 7 8

点击右上角即可分享
微信分享提示