title: MariaDB connector in Python cannot connect to remote server
body: <p>I was using the connection to the remote Mariadb server for months. Today the connection couldn't be established anymore via the python mariadb module and the mariadb connector on macOS. The basic installation is as follows:</p>
  <pre><code>brew install mariadb-connector-c
  pip install mariadb
  </code></pre>
  <p>To connect to the server via python:</p>
  <pre><code>&gt;&gt;&gt; import mariadb
  &gt;&gt;&gt; mariadb.connect(host=&quot;&lt;IP&gt;&quot;, port=3306)
  </code></pre>
  <p>The return is:</p>
  <pre><code>Traceback (most recent call last):
    File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;
    File &quot;/Users/&lt;name&gt;/miniconda3/lib/python3.8/site-packages/mariadb/__init__.py&quot;, line 142, in connect
      connection = connectionclass(*args, **kwargs)
    File &quot;/Users/&lt;name&gt;/miniconda3/lib/python3.8/site-packages/mariadb/connections.py&quot;, line 83, in __init__
      super().__init__(*args, **kwargs)
  mariadb.OperationalError: Can't connect to server on '&lt;IP&gt;' (60)
  </code></pre>
  <p>I can connect to the MariaDB server via the terminal mysql client (mysql -h ) as well as establish a connection using the telnet module:</p>
  <pre><code>&gt;&gt;&gt; import telnetlib 
  &gt;&gt;&gt; telnetlib.Telnet(host=&quot;&lt;IP&gt;&quot;, port=3306)
  </code></pre>
  <p>I also can connect to a locally installed mariadb server via python and the mariadb module. Remote throws the above error though.</p>
  <p>Anyone an idea why the connection can't be established?</p>