MySQL
xiaoxiaoqunqun
github:https://github.com/happydayhappyday
展开
-
mysql服务开启关闭命令
1.开启mysql服务 net start mysql 2.关闭mysql服务 net stop mysql原创 2018-11-14 16:11:02 · 3369 阅读 · 0 评论 -
使用 PyMySQL 连接数据库,并实现简单的增删改查
首先需要 import pymysql 1.连接数据库 #获取数据库连接 def getDBConn(): conn = pymysql.connect( host = 'localhost', port = 3306, user = 'root', password = '123', db = 'insurancedata', charset = 'utf8'...原创 2018-11-21 09:50:50 · 646 阅读 · 0 评论