
MySQL
文章平均质量分 76
Smookey
这个作者很懒,什么都没留下…
展开
-
报错'“can't connect to local mysql server through socket '/var/run/mysqld/mysqld.sock'”找不到文件
参考:https://blog.youkuaiyun.com/qingyuanluofeng/article/details/51508880删除 mysqlsudo apt-get autoremove --purge mysql-server-5.0sudo apt-get remove mysql-serversudo apt-get autoremove mysql-serversudo apt-ge...转载 2018-07-05 10:31:41 · 421 阅读 · 0 评论 -
用python3对数据库mysql进行创建库、表、增删改查操作
import pymysql import sys # python mysql 创建库、表增删改查标准语句 print('----------------------------') print('载入mysql模块完成') con = pymysql.connect(host='localhost', user='root', passwd='123...原创 2018-07-05 21:01:13 · 13181 阅读 · 11 评论 -
mysql 删除外键常见报错原因
show create table 数据表名;找到CONSTRAINT `外键名` FOREIGN KEY (`xxxx`) REFERENCES `xxxxxx` (`id`)alter table drop foreign key 外键名; 注意:跟主动设定的item名不一致原创 2018-07-06 09:41:52 · 1365 阅读 · 0 评论