数据库
Zoey今天
挺懒,也挺认真
展开
-
python连接数据库并获取表中内容
python连接MySQL数据库import pymysql#导入pymysql库mysql_dict = { 'port': 3306, 'user':'root', 'host':'localhost', 'password':'123456', 'database':'userinfo'}db=pymysql.connect(**mysql_dict) #连接数据库cursor = db.cursor() #定义一个游标cursor.execute原创 2020-12-02 10:42:40 · 2093 阅读 · 0 评论 -
navicat 连接 mysql 出现Client does not support authentication protocol requested by server完美解决
navicat链接MySQL数据库报错解决办法如下mysql> alter user 'root'@'localhost' identified with mysql_native_password by '123456';Query OK, 0 rows affected (0.02 sec)mysql> flush privileges;Query OK, 0 rows affected (0.02 sec)原创 2020-11-30 21:41:48 · 187 阅读 · 0 评论