django搭建网站记录一

环境配置

我的是python3.4 以及django1.7.5
MySQL
python和django就直接官网下载安装啥的,就不说了。

安装MySQL

win8.1 MySQL5.6.24
安装了两天各种出错,真是醉了,其中最让我崩溃的是在start service那里停住了,出现如下提示:
(我忘了截图了,这里盗用了下网上的图)
configuration of MySQL server is taking Longer than expected
网上找了好多方法,什么卸载重装,programe data隐藏文件中的MySQL文件夹以及注册列表清除什么的都做了,重装了很多次,换了几个版本都是同样的问题,最后在stackoverflow上找到了解决方案:
参考:stackoverflow

  1. Installed it with mysql-installer-web-community-5.6.23.0.msi
  2. For my purposes I selected “Custom” install with MySQL servers 5.6.22 - X64 and MySQL Connectors -> Connector ODBC/5.3.4 - 64
  3. Next -> Execute -(ready to configure) -> Next
  4. Config type: Development machine, all defaults (TCP/IP, Port: 3306, Open firewall)
  5. Typed in MySQL Root Password
  6. MySQL user Accounts -> Add user (username, password, OK) -> Next
  7. Configure MySQL Server as a Windows Service (CHECKED)
  8. Windows Service Name: MySQL56 (default)
  9. Start the MySQL Serve at System Startup
  10. THIS IS CRUCIAL (BUG IS HERE): Run Service as… Standard System Account (CHECKED - but it will be disregarded and that is BUG)
  11. Next -> Execute, Installation hangs on Starting server, so wait for a while to time out (or don’t, your choice). When Dialog (might be covered with other windows) popup with message “Configuration of MySQL Server is taking longer than expected…, here click OK (so to wait longer)
  12. Meanwhile go to Start -> Control Panel -> Administrative Tools -> Services -> find MySQL56, right click on it -> Properties -> select Log On Tab AND HERE IS BUG -> Although Local System Account was selected, Somehow “This a
  • 4
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值