---
title: "Discussion on \"python - MySQL\" | Hashnode"
description: "Discussion on \"python - MySQL\". # Python-MySQL Integration:\n# Lab-1    [to create DB and show all DBs]\nimport mysql.connector\nmydb=mysql.connector.connect(host=\"localhost\", user=\"root\", password=\"xxxxxxx\")\nprint(mydb)\nmycursor = mydb.cursor()\n#mycursor.execute(\"create database pooj..."
url: "https://hashnode.com/posts/python-mysql/65a1e4745dcd6e1e1b7227cc"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [python - MySQL](https://naren-cloud.hashnode.dev/python-mysql?utm_source=hashnode&utm_medium=feed)

\# Python-MySQL Integration: # Lab-1 \[to create DB and show all DBs\] import mysql.connector mydb=mysql.connector.connect(host="localhost", user="root", password="xxxxxxx") print(mydb) mycursor = mydb.cursor() #mycursor.execute("create database pooj...

Jan 13, 2024 · 1 min read · naren-cloud.hashnode.dev  
Read the article

-   [#python-mysql](https://hashnode.com/tag/python-mysql)

## Written by

[Narendra N](https://hashnode.com/@naren980)

@naren980

  
[View profile](https://hashnode.com/@naren980)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
