Answers for "db in python"

SQL
5

connect python to mysql

import mysql.connector
mydb = mysql.connector.connect(
  host="localhost",
  user="yourusername",
  password="yourpassword",
  port = 8888, #for Mamp users
  database='whatever db you want'
)
print(mydb)
Posted by: Guest on June-01-2020
0

building a database with python

import json
import os
Posted by: Guest on November-30-2020

Code answers related to "SQL"

Browse Popular Code Answers by Language