因在ubuntu下練習django發現一個問題: 如果不是用 Ctrl c而是用Ctrl z去離開runserver的話,再runserver會有port還在使用的問題( That port is already in use. ). 參考解決方法 #ps aux | grep -i manage 列出pid後(左邊算來第二排都是數字的就是pid #kill -9 3144 上面3144就是指pid 這樣port就free了
主要是參考 How to set up Django with MySql on Ubuntu Hardy 當安裝完mysql的時候,在linux root下可以改mysql 登入密碼 root#mysqladmin -u root password 'YourPasswordHere' YourPasswordHere是指隨你喜好設想要的密碼在此 mysql的一些指令可以 參考這個blog