随笔分类 -  Mysql

摘要:1.linux下 https://www.cnblogs.com/letcafe/p/mysqlautodump.html 2.windows下 https://www.imooc.com/article/15372 定时任务执行bat文件 https://blog.csdn.net/jlq_dil 阅读全文
posted @ 2019-11-22 18:07 夏天丷 阅读(95) 评论(0) 推荐(0)
摘要:1.xml写法 <!-- 联查用户users表 --> <resultMap type="nanh.entity.Tasks" id="selectTasksAllLeftUsers"> <id column="id" property="id"/> <result column="tasknumb 阅读全文
posted @ 2019-10-14 17:41 夏天丷 阅读(634) 评论(0) 推荐(0)
摘要:1、创建新用户 CREATE USER 'admin'@'%' IDENTIFIED BY '123456'; '%' 表示可以远程登录访问、操作 ‘localhost’ 表示只能本地登录访问、操作2、给用户赋权 需要使用root账户赋权 grant all privileges on *.* to 阅读全文
posted @ 2019-09-05 14:57 夏天丷 阅读(254) 评论(0) 推荐(0)
摘要:1、查看最大连接量 show variables like '%max_connections%'; 2、修改最大连接量 //修改完记得重启 set GLOBAL max_connections = 32000; //经过测试这个设置好像是暂时的,重启服务器或Mysql服务的话会重置为默认连接大小, 阅读全文
posted @ 2019-09-03 16:48 夏天丷 阅读(241) 评论(0) 推荐(0)