mysqldbcompare

How do I get pylint to recognize MySQLdb members?

南楼画角 提交于 2019-12-24 02:25:37
问题 import MySQLdb try: dbcon = MySQLdb.connect(host=host_name, user=user_name, passwd=password, db=db_name) except MySQLdb.Error: pass getting this pylint warning Module 'MySQLdb' has no 'Error' member (no-member) 回答1: The Best: Using extension-pkg-whitelist option: A comma-separated list of package or module names from where C extensions may be loaded. Extensions are loading into the active Python interpreter and may run arbitrary code --extension-pkg-whitelist=_mysql PyLint parses (by default)

mysqldbcompare access denied but mysql command works

旧时模样 提交于 2019-12-23 11:13:12
问题 I'm trying to use the mysqldbcompare tool but getting a connection error: $ mysqldbcompare --server1=client --skip-data-check db1:db2 # server1 on <ip>: ... ERROR: Access denied for user 'root'@'<ip>' (using password: YES) I can use mysql and connect just fine, though. I setup my creds using mysql_config_editor --host=<ip> --user=root --port=3306 --password and tested with the mysql command with and without passing all the args ( mysql -u root -p -h <ip> -P 3306 ). I've checked the bind