supress error messages when can't pars my.cnf

Bug #1469527 reported by Aleksandr Kuzminsky
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fix Committed
Aleksandr Kuzminsky

Bug Description

when python ConfigParser can't parse my.cnf it doesn't read user/password from it.
It also produces a lot of error messages which may be confusing.

2015-06-26 18:01:20,801: twindb: ERROR: get_mysql_connection():212: File contains parsing errors: /etc/mysql/my.cnf
        [line 43]: ...
        [line 82]: ...
        [line 117]: ...
        [line 118]: ...
        [line 122]: ...
        [line 131]: ...
2015-06-26 18:01:21,236: twindb: ERROR: get_mysql_connection():213: Ignoring options file /etc/mysql/my.cnf
2015-06-26 18:01:21,660: twindb: ERROR: get_mysql_connection():226: Can not connect to local MySQL server
2015-06-26 18:01:22,095: twindb: ERROR: get_mysql_connection():227: MySQL said: Access denied for user 'root'@'localhost' (using password: YES)
2015-06-26 18:01:22,516: twindb: INFO: get_mysql_connection():229: Try to call the agent with -u and -p options to specify MySQL user and password

Changed in twindb-agent:
milestone: none → 0.1.36
assignee: nobody → Aleksandr Kuzminsky (akuzminsky)
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.