MySQL Connector/Python 发行说明
语法
cnx.cmd_refresh(options)
弃用
此 MySQL 服务器功能已弃用。
此方法刷新表或缓存,或重置复制服务器信息。连接的用户必须具有 RELOAD 权限。
options 参数应为使用 constants.RefreshOption 类中的常量构造的位掩码值。
有关选项的列表,请参见 第 10.11 节“constants.RefreshOption 类”。
示例
>>> from mysql.connector import RefreshOption
>>> refresh = RefreshOption.LOG | RefreshOption.THREADS
>>> cnx.cmd_refresh(refresh)