duandong1869 2015-01-13 06:59
浏览 65
已采纳

使用远程MySQL设置LAMP

I am new to linux and I want to set up my network with one centralized MySQL server. I want my Web server to have Apache, PHP, and Wordpress installed with all MySQL references pointing to the database server.

I am having a hard time finding documentation on how to configure this. How do I set up a LAMP configuration across two servers with MySql as a stand alone dbms?

How do I congigure Apache, PHP and Wordpress in this setup?

  • 写回答

1条回答 默认 最新

  • dongre1907 2015-01-13 20:02
    关注

    If you wanna have your mysql on a remote server and let your local applications to connect to it , follow this steps :

    • run your mysql on your server (with a specific ip/computer name)
    • find my.conf in your mysql directory
    • edit my.conf and find the line : bind-address = 127.0.0.1
    • comment the line bind-address = 127.0.0.1 by adding # before it
    • restart your lamp by running this command /opt/lampp/lampp restart
    • in your local application set the mysql host from localhost to server ip or server name

    DO NOT Forget before apply any changes create a backup from you my.conf, And grant all access to a user in your mysql on your server.

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

报告相同问题?

悬赏问题

  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器