
数据库
Jaichg
这个作者很懒,什么都没留下…
展开
-
neo4j报错 解决 ServiceUnavailable: WebSocket connection failure. Due to security constraints....
使用brew install neo4j安装neo4j。打开http://localhost:7474/ 后连接数据库,报错,如下所示,无法成功连接数据库。 ServiceUnavailable: WebSocket connection failure. Due to security constraints in your web browser, the reason for the fa...原创 2018-03-14 22:44:07 · 19648 阅读 · 3 评论 -
解决 MySql插入表 中文显示为乱码或者问号
问题: 1.插入MySql数据库中文字符时,中文显示为? 2.报Incorrect String value的错误原因: 数据库字符没有统一设置成为UTF-8解决方法: 1.查看Mysql数据库字符集show variables like 'char%'; 显示编码格式,检查是否更正为utf-82.修改MySql配置文件my.cnf Linux下是...原创 2018-09-06 14:51:11 · 1981 阅读 · 0 评论 -
解决 pymysql : AttributeError: 'NoneType' object has no attribute 'encode'
pymysql连结mysql数据库时报错:AttributeError: 'NoneType' object has no attribute 'encode'错误原因:pymysql.connect()中charset为’utf8’而不是’utf-8’配置文件key值加了单引号pymysql连结数据库:import pymysqltry: self.conn = pymysq...原创 2018-10-11 14:20:30 · 5222 阅读 · 1 评论