10 2018 档案

摘要:mysql> ALTER USER 'gao'@'%' IDENTIFIED WITH mysql_native_password BY '123456'; 修改用户密码 阅读全文
posted @ 2018-10-29 16:50 香蕉都驼背 阅读(120) 评论(0) 推荐(0)
摘要:>>>cur.execute("update users set username=%s where id=2",("mypython")) >>>cur.execute("select * from users where id=2") >>>cur.fetchone() >>>conn.comm 阅读全文
posted @ 2018-10-29 00:00 香蕉都驼背 阅读(3891) 评论(0) 推荐(0)
摘要:>>>cur.execute("select * from 表名") >>>lines=cur.fetchall() >>>for line in lines: print(line) >>>cur.scroll(1) 游标上移一个位置 阅读全文
posted @ 2018-10-28 23:52 香蕉都驼背 阅读(445) 评论(0) 推荐(0)
摘要:1、cmd pip3 install PyMySQL2、>>>import pymysql3、mysql>create database bookdb character set utf8;4、>>>conn=pymysql.connect(host='localhost',port=3306,us 阅读全文
posted @ 2018-10-28 23:46 香蕉都驼背 阅读(548) 评论(0) 推荐(0)