概述
pythonanywhere為python開發(fā)者提供了免費(fèi)的云端環(huán)境(額外功能需付費(fèi))。
優(yōu)點(diǎn):
- 簡單配置wsgi直接部署web應(yīng)用
- 提供MySQL和Postgres
- 免費(fèi)賬戶兩個console,我一個Bash,一個MySQL
- 圖形化文件編輯頁面
- 簡單夠用的web監(jiān)控面板,顯示訪問量、日志登服務(wù)
- 計劃功能,設(shè)置時間,自動執(zhí)行腳本
- 簡潔、便捷、易用
用本地機(jī)器鏈接pythonanywhere的數(shù)據(jù)庫
我想從本機(jī)向云端的數(shù)據(jù)庫導(dǎo)入一些數(shù)據(jù),未果。
從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"
轉(zhuǎn)到該link:
How to use a local MySQL GUI with PythonAnywhere
This requires a paid account for the SSH access
It's needs money.
over.