
mysql
文章平均质量分 77
苗克
共同学习、共同进步
展开
-
mysql权限修改
转载自:http://www.cnblogs.com/candle806/p/4048651.html未给localhost root用户授权,新建一个localhost root用户,然后授权给他create user 'root'@'localhost' identified by '你的密码';grant all privileges on *.* to root@'localhost'转载 2017-05-20 20:11:52 · 725 阅读 · 0 评论 -
PageHelper的成员变量说明
以下是PageHelper中默认PageInfo的成员变量,方便以后自己使用[java] view plain copy//当前页 private int pageNum; //每页的数量 private int pageSize; //当前页的数量 private int size; //由于startRow和endRow不常用,这里说...翻译 2018-05-19 10:56:32 · 1818 阅读 · 0 评论 -
mysql/mybatis 批量新增/删除/修改
1、mybatis相关:新增:--返回值为增加的的行数int insertLableBatch(@Param("list")List<UserGroupFilterLabel> list);<insert id="insertLableBatch" parameterType="com.sf.cps.mana.model.UserGroupFilterLabel...原创 2019-04-24 15:11:11 · 2473 阅读 · 0 评论 -
索引、分区
mysql索引:例:建立索引:KEY `ind_kn_ex_type` (`type_id`,`knowledge_id`,`exam_id`) USING BTREE要想强制MySQL使用或建议使用或忽视possible_keys列中的索引,在查询中使用FORCE INDEX、USE INDEX或者IGNORE INDEX。例:SELECT * FROM ti_novice_knowle...原创 2019-06-10 14:49:29 · 155 阅读 · 0 评论 -
存储过程学习
基础语法:DELIMITER // CREATE PROCEDURE myproc(OUT s int) BEGIN SELECT COUNT(*) INTO s FROM students; END//DELIMITER ;入参参数:IN参数的值必须在调用存储过程时指定,在存储过程中修改该参数的值不能被返回,为默认值OUT:该值可在存储过程内部被改变,...原创 2019-06-10 14:52:29 · 382 阅读 · 0 评论 -
自用的一些东西
现在比较常用的是 zabbix 普罗米休息zabbix nagios promithusdruid日志可以搞elkread -p "请输入IP地址:" ip_addrread -p "请输入子网掩码:" net_maskread -p "请输入网关地址:" gate_wayread -p "请输入DNS地址:" dns_ddnsto 远程穿透动态ddns:h...原创 2019-07-09 20:40:49 · 291 阅读 · 0 评论 -
mysql备份转译常用操作(不含具体导出的基本操作)
1、mysql默认的导入大小是:768M,当超过时,会报错如下:There was error(s) while executing the queries .The query and the error message has been logged at:C:\Users\Administrator\AppData\Roaming\SQLyog\sqlyog.err.Please ...原创 2019-07-05 16:44:28 · 290 阅读 · 0 评论