概述
pythonanywhere為python開發(fā)者提供了免費(fèi)的云端環(huán)境(額外功能需付費(fèi))融蹂。
優(yōu)點(diǎn):
- 簡(jiǎn)單配置wsgi直接部署web應(yīng)用
- 提供MySQL和Postgres
- 免費(fèi)賬戶兩個(gè)console,我一個(gè)Bash续膳,一個(gè)MySQL
- 圖形化文件編輯頁(yè)面
- 簡(jiǎn)單夠用的web監(jiān)控面板算途,顯示訪問量、日志登服務(wù)
- 計(jì)劃功能,設(shè)置時(shí)間,自動(dòng)執(zhí)行腳本
- 簡(jiǎn)潔奔则、便捷、易用
用本地機(jī)器鏈接pythonanywhere的數(shù)據(jù)庫(kù)
我想從本機(jī)向云端的數(shù)據(jù)庫(kù)導(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.