You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
383 B
11 lines
383 B
2 years ago
|
import mysql.connector
|
||
|
import logging
|
||
|
|
||
|
logging.basicConfig( format='%(asctime)-15s [%(levelname)s] %(funcName)s: %(message)s', level=logging.DEBUG)
|
||
|
|
||
|
mydb = mysql.connector.connect(host='database', user='ploeger',password='SW_Ep.6:ROTJ',database='weather')
|
||
|
logging.debug(f'Datenbankverbindung aufgebaut ${mydb}')
|
||
|
mycursor = mydb.cursor()
|
||
|
logging.debug(f'Cursor gesetzt ${mycursor}')
|
||
|
|