python中的pymysql模块

环境的配置

1.需要在自己的linux 中安装mariadb-server 程序(端口为3306),并且开启。注意,不能进行网络的安全设定(vim /etc/my.cf vim skip-networking=1),因为通过网络来在pycharm中进行操作。
2.在pycharm中导入pymysql模块。
python中的pymysql模块python中的pymysql模块或者
在联网的情况下,执行下列命令。
python中的pymysql模块

pycharm如何操作数据库

1.先连接数据库,再操作。
python中的pymysql模块
python中的pymysql模块3.插入数据
python中的pymysql模块提交的第二种方式:
python中的pymysql模块
4.插入多条数据
python中的pymysql模块python中的pymysql模块python中的pymysql模块python中的pymysql模块

对数据库的查询

python中的pymysql模块python中的pymysql模块
2.
python中的pymysql模块

python中的pymysql模块

3.python中的pymysql模块
4.python中的pymysql模块
python中的pymysql模块

5.python中的pymysql模块python中的pymysql模块

6.python中的pymysql模块
python中的pymysql模块

cursor.scroll的用法

python中的pymysql模块

mariadb中如何修改数据库的编码格式

python中的pymysql模块