from email.
mime import base
import [Link]
#MI PRIMERA CONEXION
database = [Link](
host = "localhost",
user = "root",
passwd = "",
port = "3308",
database = "coltis_python"
)
#try:
# print(f"felicitaciones se conecto!! : {database}")
#except:
# print("Ha fallado la conexion")
#try:
# cursor = [Link]()
# [Link]("CREATE DATABASE IF NOT EXISTS coltis_python")
# [Link]("SHOW DATABASES")
# for basesDatos in cursor:
# print(basesDatos)
#except:
# print("La creaci�n de la base de datos ha fallado")
cursor = [Link]()
try:
[Link]("""
CREATE TABLE IF NOT EXISTS estudiante (
id int (12) auto_increment not null,
nombre varchar (55) not null,
apellidos varchar (12) not null,
celular varchar(12) not null,
CONSTRAINT pk_estudiante PRIMARY KEY (id)
)
"""
)
print("Funcionando ")
except:
print("Error al crear la tabla")