امیرحسین کفیری
11 ماه پیش توسط امیرحسین کفیری مطرح شد
0 پاسخ

ارور در اتصال پایتون و mysql

با سلام
من قصد ایجاد پایگاه داده با استفاده از اتصال پایتون و mysql را دارم اما با خطای
The Kernel crashed while executing code in the current cell or a previous cell.
Please review the code in the cell(s) to identify a possible cause of the failure.
مواجهه شدم
ممنون میشم راهنمایی بفرمایید

import mysql.connector

mydb = mysql.connector.connect(
  host="localhost",
  user="root",
  password="1234"
)

mycursor = mydb.cursor()

mycursor.execute("CREATE DATABASE mydatabase")

@mjokarr
@AtaBahari
@sinashahoveisi