title: Connect to mySQL with python 3
body: <p>I have a problem with mySQL</p>
  
  <p>I installed it on my raspberry pi - python 3 virtual environment with the following command:</p>
  
  <pre><code>sudo pip install mysql-connector
  </code></pre>
  
  <p>I have the following script:</p>
  
  <pre><code>import mysql.connector
  
  mydb = mysql.connector.connect(
      host="127.0.0.1",
      port="11300",
      user="pi",
      passwd="1234"
   )
  
  print(mydb)
  </code></pre>
  
  <p>But nothing happens, no error, no connection, ... I found the port number with the command 'netstat' under TCP connection</p>