文章分类 -  Python

Python MySQLdb模块中的ping()
摘要:MySQLdb.connection.ping()函数可以用来检测在访问前检测数据库的连接是否存在使用help函数获得帮助信息如下:Checks whether or not the connection to the server isworking. If it has gone down, an automatic reconnection isattempted.This function can be used by clients that remain idle for along while, to check whether or not the server has clo 阅读全文
posted @ 2012-04-12 22:40 o笨熊o 阅读(12414) 评论(1) 推荐(1)