Skip to content

Instantly share code, notes, and snippets.

@01yildizmustafa
Created September 23, 2022 14:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 01yildizmustafa/34401636589d9d4c9f21c4c99192fb98 to your computer and use it in GitHub Desktop.
Save 01yildizmustafa/34401636589d9d4c9f21c4c99192fb98 to your computer and use it in GitHub Desktop.
import pymysql.cursors
mysql = pymysql.connect(
host='localhost',
user='root',
password='arkhembilgi',
charset='utf8mb4',
cursorclass=pymysql.cursors.DictCursor)
imleç = mysql.cursor()
veri_tabanı = imleç.execute("""CREATE DATABASE KÜTÜPHANE""")
düzen = imleç.execute("""CREATE TABLE KÜTÜPHANE (ID varchar(45), KİTAP_ADI varchar(45), YAZAR varchar(45), YAYINEVİ varchar(45))""")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment