数据库
文章平均质量分 60
舒克hands
成为你想成为的人
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
mysql设置允许远程连接
连接数据库的时候报如下错误,原因是本机的ip未被允许访问该数据库服务。我们可以修改为所有ip都可以访问。java.sql.SQLException: null, message from server: "Host '192.168.1.103' is not allowed to connect to this MySQL server"我们先看下用户表首先切到mysql数据库mysql> use mysql;Database changed然后查看user表下的用户及允许访问..转载 2021-05-10 13:16:56 · 738 阅读 · 0 评论 -
mysqldump只导出数据或表结构的命令
mysql mysqldump 只导出表结构 不导出数据复制代码代码如下:mysqldump --opt -d 数据库名 -u root -p > xxx.sql备份数据库复制代码代码如下:#mysqldump 数据库名 >数据库备份名#mysqldump -A -u用户名 -p密码 数据库名>数据库备份名#mysqldump -d -A --add-drop-table -uroot -p >xxx.sql1.导出结构不导出数据复制代码代码如...转载 2021-04-21 15:40:53 · 1104 阅读 · 0 评论 -
设置MySQL配置允许远程连接
进入mysql:mysql -uroot -p运行mysql:use mysql;查看用户表:SELECT `Host`,`User` FROM user;更新用户表:UPDATE user SET `Host` = '%' WHERE `User` = 'root' LIMIT 1;强制刷新权限:flush privileges;关闭mysql:exit;————————————————原文链接:https://bl...转载 2021-03-10 11:00:34 · 261 阅读 · 0 评论 -
2021-02-26
关键字:在windows安装mosquitto,在mosquitto中配置日志,在mosquitto中配置用户账号密码关于Mosquitto配置的资料网上还是有几篇的,但是看来看去,基本上都是基于Linux。基于Window的凤毛麟角,看上去貌似配置的东西相差不大,实操过程中真的烦透了,配置就是不成功,这次把自己实践过程中的东西记录一下,分享出来。一、概念梳理1、Mosquitto是一款实现了消息推送协议MQTT 3.1的开源消息代理软件,提供轻量级的、支持可订阅/可发布的消息推送模式,是设备.转载 2021-02-26 17:21:50 · 524 阅读 · 0 评论 -
SELECT list is not in GROUP BY clause and contains nonaggregated column
SELECT list is not in GROUP BY clause and contains nonaggregated column报错如下:Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated column ‘sss.month_id’ which is not functionally dependent on columns in GROUP BY clause; th转载 2021-01-11 12:08:38 · 250 阅读 · 0 评论 -
SQL查询语句
一:模糊匹配字符串,主要用like,表如下1.查询以Y为首个字母的国家 select name from world where name Like 'Y%'2.查询以Yq为结尾的国家 select name from world where name Like '%Yq'3.查询包含字母Y的国家 select name from world where name Like '%Y%'4.查询以c开头、以ia结尾的国家 select n...原创 2021-01-07 16:46:42 · 1360 阅读 · 0 评论 -
In aggregated query without GROUP BY, expression #2 of SELECT list contains nonaggregated column
maven项目报错error:expression #2 of SELECT list contains nonaggregated column 'newhelp.appr.title'; this is incompatible with sql_mode=only_full_group_by这是因为随着MySQL版本更新带来的问题,在MySQL5.7版本之后对group by进行了优化。他默认启动改进之后的版本启动了ONLY_FULL_GROUP_BY模式。这种模式的官方解释:ONLY转载 2020-12-28 15:50:09 · 4401 阅读 · 1 评论
分享