pythonanywhere笔记

概述

pythonanywhere为python开发者提供了免费的云端环境(额外功能需付费)。
优点:

  • 简单配置wsgi直接部署web应用
  • 提供MySQL和Postgres
  • 免费账户两个console,我一个Bash,一个MySQL
  • 图形化文件编辑页面
  • 简单够用的web监控面板,显示访问量、日志登服务
  • 计划功能,设置时间,自动执行脚本
  • 简洁、便捷、易用

用本地机器链接pythonanywhere的数据库

我想从本机向云端的数据库导入一些数据,未果。
从stackoverflow找到了同样的问题
http://stackoverflow.com/questions/29295628/django-remotely-access-a-pythonanywhere-mysql-database

"I think It's not possible to connect directly to your mysqlserver instance from remote, for security reason, the port 3306 is blocked. They suggest to connect through SSH Tunnel, follow this link.I don't know If you can do an ssh tunnelling within Django, You should probably write a custom configuration. It's simpler to install an SSH Tunnel software on your PC and then connect your Django App to localhost on a port You have to choose.Bye"

转到该link:

How to use a local MySQL GUI with PythonAnywhere
This requires a paid account for the SSH access

It's needs money.
over.

你可能感兴趣的:(pythonanywhere笔记)