title: google django "Can't connect to MySQL server on '127.0.0.1'
body: <p>I am trying use Google app engine to deploy my Django and I followed the steps until "Run the Django migrations to set up your models:"</p>
  
  <p>When I type <code>python manage.py makemigrations</code> and run, it just reports cannot connect.</p>
  
  <p>I do not know why I cannot connect to this port.  I have closed my firewall and the IP address is 127.0.0.1.  Pymysql is installed already but still cannot connect.</p>
  
  <pre><code>System check identified no issues (0 silenced).
  Unhandled exception in thread started by &lt;function check_errors.&lt;locals&gt;.wrapper at 0x000002ADF1FA38C8&gt;
  Traceback (most recent call last):
    File "C:\Users\USER\python-docs-samples\appengine\standard_python37\django\env\lib\site-packages\pymysql\connections.py", line 582, in connect
      **kwargs)
    File "c:\users\user\appdata\local\programs\python\python37\Lib\socket.py", line 727, in create_connection
      raise err
    File "c:\users\user\appdata\local\programs\python\python37\Lib\socket.py", line 716, in create_connection
      sock.connect(sa)
  ConnectionRefusedError: [WinError 10061] 無法連線，因為目標電腦拒絕連線。
  
  pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on '127.0.0.1' ([WinError 10061] 無法連線，因為目標電腦拒絕連線。)")
  
  
    File "C:\Users\USER\python-docs-samples\appengine\standard_python37\django\env\lib\site-packages\pymysql\connections.py", line 629, in connect
      raise exc
  django.db.utils.OperationalError: (2003, "Can't connect to MySQL server on '127.0.0.1' ([WinError 10061] 無法連線，因為目標電腦拒絕連線。)")
  </code></pre>