Tag: MYSQL-CONNECTOR-PYTHON
Salida de workbench La fila coincidente no está incluida en el documento pydocument de MySQL MySQLCursor.columnnames, Propiedad MySQLCursor.columnnames MySQLCursor.description, Propiedad MySQLCursor.description MySQLCursor.lastrowid, Propiedad MySQLCursor.lastrowid MySQLCursor.rowcount, Propiedad MySQLCursor.rowcount MySQLCursor.statement, Propiedad MySQLCursor.statement MySQLCursor.withrows, Propiedad MySQLCursor.withrows
Obtuve el siguiente error: TypeError: MySQLConnectionAbstract.init() toma 1 argumento posicional pero se dieron 2 Aquí está mi db.py: “` import mysql.connector localhost = “localhost” username = “Admin” password = “test123” db = “testing” Connect = “host='{}’, user='{}’, password='{}’, db='{}’”.format(localhost, username, password, db) cnn = mysql.connector.connect(Connect) # línea 16 error cnn . . . Read more
Tengo una consulta como parte de un código Python en la que la consulta requiere hacer uso de variables en el programa, así como valores de otra base de datos. Estoy utilizando mysql-connector-python. Los valores de name están presentes en el programa Python y quiero usar eso y los valores . . . Read more
Estoy tratando de crear un sistema de puntos para tweets. He transmitido tweets con #Python a una base de datos MySQL y estoy tratando de crear un sistema de puntos para lo mismo. from typing_extensions import Self import requests import os import json import mysql.connector from mysql.connector import Error bearer_token . . . Read more
Tengo este procedimiento almacenado: CREATE DEFINER=`user`@`%` PROCEDURE `create_merkmal`(IN malter int, IN geschlecht tinyint(1), IN groesse int, IN Tier_tierID int) BEGIN insert into Merkmal(malter , geschlecht , groesse, Tier_tierID) values (malter , geschlecht , groesse, Tier_tierID); SELECT LAST_INSERT_ID(); END La ID de Merkmal está configurada para AutoIncremento. Y el procedimiento almacenado . . . Read more