douxia5179 2014-01-19 18:44
浏览 21
已采纳

如何将MySQL添加到我在Windows 7上运行的nginx? [关闭]

I used this tutorial to set up PHP on my server, but now my question is about MySQL. There are a lot of tutorials for unix like systems but for windows I can't find one which would work for me.

I took a look at this one, but it seems to be out of date, cause I can't find some files (my-medium.ini, my.ini) in mysql-5.6.15 folder.

  • 写回答

1条回答 默认 最新

  • dpmpa26468 2014-01-19 19:05
    关注

    I'll try an answer, easier to format ;)

    You need to realize that there is no link between Nginx and MySQL. Nginx doesn't need to know that MySQL exists and the opposite is true.

    And there is a small link with Php and MySQL, but in fact, it doesn't matter if the database is on your computer or another server. Php will just take the URL of the database to connect to it. If it's on your computer or somewhere else, it will work. You could even connect to multiple different databases on different computers.

    All this to say that all you need to do (related to the MySQL installation) is to install MySQL on your Windows 7 machine. If the installation worked (normally, only executing an EXE file and pressing next, next, next), you'll be able to connect to it with php. Just note the PORT where MySQL will listen (it should be displayed in the wizard installation) and also remember the username password that you'll set for connecting to your MySQL server (it should be asked throughout the installation wizard).

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥50 导入文件到网吧的电脑并且在重启之后不会被恢复
  • ¥15 (希望可以解决问题)ma和mb文件无法正常打开,打开后是空白,但是有正常内存占用,但可以在打开Maya应用程序后打开场景ma和mb格式。
  • ¥20 ML307A在使用AT命令连接EMQX平台的MQTT时被拒绝
  • ¥20 腾讯企业邮箱邮件可以恢复么
  • ¥15 有人知道怎么将自己的迁移策略布到edgecloudsim上使用吗?
  • ¥15 错误 LNK2001 无法解析的外部符号
  • ¥50 安装pyaudiokits失败
  • ¥15 计组这些题应该咋做呀
  • ¥60 更换迈创SOL6M4AE卡的时候,驱动要重新装才能使用,怎么解决?
  • ¥15 让node服务器有自动加载文件的功能