Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Vous êtes un professionnel et vous avez besoin d'une formation ? Coder avec une
Intelligence Artificielle
Voir le programme détaillé
Classe « CMySQLConnection »

Méthode mysql.connector.CMySQLConnection.ping

Signature de la méthode ping

def ping(self, reconnect: bool = False, attempts: int = 1, delay: int = 0) -> None 

Description

help(CMySQLConnection.ping)

Check availability of the MySQL server

When reconnect is set to True, one or more attempts are made to try
to reconnect to the MySQL server using the reconnect()-method.

delay is the number of seconds to wait between each retry.

When the connection is not available, an InterfaceError is raised. Use
the is_connected()-method if you just want to check the connection
without raising an error.

Raises InterfaceError on errors.


Vous êtes un professionnel et vous avez besoin d'une formation ? RAG (Retrieval-Augmented Generation)
et Fine Tuning d'un LLM
Voir le programme détaillé