![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mysql
Vinson Sheep
这个作者很懒,什么都没留下…
展开
-
mysql安装及utf8编码的设置
安装可以参考http://jingyan.baidu.com/article/cd4c2979033a17756f6e6047.htmlutf8编码讲道理,用installer下载的mysql(我这里下载的5.7.13)部分编码为gbk,为了能正常显示中文,得设置为utf8编码。1、 编辑MySql的配置文件MySql的配置文件Windows下一般在系统目录下或者在MySql的安装目录下名字叫my转载 2017-05-20 21:53:32 · 1700 阅读 · 0 评论 -
Mysql删除或者更新出错 Error Code: 1175. You are using safe update
使用MySQL执行update的时候报错:Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column To disable safe mode, toggle the option in Preferences -> SQ转载 2017-05-25 15:23:44 · 573 阅读 · 0 评论 -
mysql解决 Access denied for user ‘root’@’localhost’ 问题
mysql5.7 win10先是,博主用pymysql操作mysql原本挺顺利的,后来发现写的python代码屡屡无效。在IDLE中发现: db = pymysql.connect("localhost","testuser","test123","TESTDB" )报错显示 Access denied for user ‘root’@’localhost’网上的解决方法是修改root的原创 2017-05-25 17:05:20 · 799 阅读 · 0 评论 -
pymysql 连接mysql数据库---不支持中文解决
mysql5.7 win10 往数据库里插入中文时出现异常: UnicodeEncodeError: 'latin-1' codec can't encode characters 就是编码的问题,pymysql默认的编码是latin1,我们只需要把它改成utf8就好了. 方法: 打开Python的安装目录: Python34\Lib\site-packages\PyMySQL-0.7.转载 2017-05-25 17:20:14 · 1338 阅读 · 0 评论