Python PyMySQL Tutorial 1 : Connect Python Application to MySQL Database

preview_player
Показать описание
Python PyMySQL Tutorial Connect Python Application to MySQL Database using pymysql.

To Connect Python Application to Mysql Database using Pymysql.
First you need to import the pymysql module in python script and then create the connection object and pass the authentication parameters or arguments in the connect function and create the cursor object and using that object execute sql query and fetch the result set and display on the console. In case if you use try except statement, it will help you in debugging the exception occured while connecting your python application to mysql database.
Рекомендации по теме
Комментарии
Автор

Hello, i have this error:
What I did bad ?

Kesounek