使用python连接mysql报错:
pymysql.err.InternalError: (1236, 'Misconfigured master - server_id was not set')
报错原因:my.cnf文件中没有设置server_id
查找文件命令:whereis my.cnf
本文详细解析了使用Python的pymysql模块连接MySQL时出现的InternalError错误,具体表现为'misconfigured master-server_id was not set'。文章指出,问题根源在于my.cnf配置文件中未设置server_id参数,并提供了定位my.cnf文件的方法。
使用python连接mysql报错:
pymysql.err.InternalError: (1236, 'Misconfigured master - server_id was not set')
报错原因:my.cnf文件中没有设置server_id
查找文件命令:whereis my.cnf
357
4800

被折叠的 条评论
为什么被折叠?