diff --git a/mha_helper/mysql_helper.py b/mha_helper/mysql_helper.py
index <HASH>..<HASH> 100644
--- a/mha_helper/mysql_helper.py
+++ b/mha_helper/mysql_helper.py
@@ -32,6 +32,9 @@ class MySQLHelper(object):
         return False
 
     def __init__(self, host, port, user, password):
+        if port is None or port < 1:
+            port = 3306
+
         self._host = host
         self._port = int(port)
         self._user = user
Use <I> as the mysql port if no port is specified