![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据库
joninie_一只肉圆
这个作者很懒,什么都没留下…
展开
-
Error running query: Illegal mix of collations (utf8mb4_general_ci,IMPLICIT) and (utf8mb4_0900_ai_ci
背景:用mysql做多表联查时,遇到这种报错:Error running query: Illegal mix of collations (utf8mb4_general_ci,IMPLICIT) and (utf8mb4_0900_ai_ci解决:select * from tab1 a left join tab2 bon a.id=CONVERT(b.id USING utf8) COLLATE utf8_unicode_ci参考:https://stackoverflo..原创 2020-09-17 18:22:43 · 780 阅读 · 0 评论 -
python3.6报错ModuleNotFoundError: No module named ‘MySQLdb‘及解决方法
转自:https://blog.csdn.net/liubin9043/article/details/79905645from sqlalchemy import create_enginesqlcont = create_engine('mysql://root:root@127.0.0.1:3306/test?charset=utf8')报错:ModuleNotFoundError: No module named 'MySQLdb'解决方法:MySQLdb只支持Py..转载 2020-09-16 10:45:22 · 10307 阅读 · 1 评论 -
robomongo启动报错,QStandardPaths: XDG_RUNTIME_DIR not set...Could not connect to any X display.
参考自:https://blog.csdn.net/weixin_33928467/article/details/88905592启动mongodb的可视化工具robomongo 时报错:××@localhost:/usr/local/robomongo/bin$ sudo ./robo3t QStandardPaths: XDG_RUNTIME_DIR not set, de...原创 2020-01-13 18:07:02 · 5725 阅读 · 1 评论 -
ERROR 1698 (28000): Access denied for user 'root'@'localhost'安装MySQL时未设置密码,普通用户连接MySQL时需要密码进入的解决办法
1.使用sudo apt-get install mysql-server安装数据库,在安装的过程中未设置密码。2.在普通用户下使用命令mysql -uroot -p连接数据库,由于没有设置密码,所以在需要输入密码的时候,直接按了Enter键,从而导致了错误:ERROR 1698 (28000): Access denied for user 'root'@'localhost'解决办...转载 2019-10-18 14:27:16 · 373 阅读 · 0 评论 -
postgresql 的一些个人使用总结
POATGRESQL 个人使用中的一些总结:1.SQL语句:-复制表结构:CREATE TABLE schema名1.表名1 AS (SELECT * FROM schema名2.表名2 LIMIT 0);-一张表的查询结果更新到另一张表:INSERT INTO 表名1 (SELECT * FROM 表名2 WHERE ...);-一张表的查询结果加上两列一起更新到另一...原创 2019-04-25 15:52:55 · 593 阅读 · 0 评论