title: Cant connect to Mysql by using Python
body: <p>I tried to connect into MySQL database by using simple script python but unsuccessful. Below is my code,</p>
  <pre><code>[root@vn pyceaudio]# python
  Python 2.7.5 (default, Aug  7 2019, 00:51:29)
  [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] on linux2
  Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.
  &gt;&gt;&gt; import mysql.connector
  &gt;&gt;&gt; cnx = mysql.connector.connect(host = 'hostname',database = 'testdb',user = 'test',password = 'test1234')
  </code></pre>
  <p>But I getting this error,</p>
  <pre><code>Traceback (most recent call last):
    File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;
    File &quot;/usr/lib64/python2.7/site-packages/mysql/connector/__init__.py&quot;, line 172, in connect
      return CMySQLConnection(*args, **kwargs)
    File &quot;/usr/lib64/python2.7/site-packages/mysql/connector/connection_cext.py&quot;, line 80, in __init__
      self.connect(**kwargs)
    File &quot;/usr/lib64/python2.7/site-packages/mysql/connector/abstracts.py&quot;, line 780, in connect
      self._open_connection()
    File &quot;/usr/lib64/python2.7/site-packages/mysql/connector/connection_cext.py&quot;, line 200, in _open_connection
      self._cmysql.connect(**cnx_kwargs)
  TypeError: function takes at most 14 arguments (15 given)
  </code></pre>
  <p>Please advice and show me if I did it wrong. I am really new to Python and still leaning. By the way, I'm using Python2.7 in Centos7.</p>