duanmei1536 2015-10-05 12:14
浏览 293

如何在ubuntu上将MySQL主机设置为“localhost”以外的其他东西?

I have two server bought and I have 2 real IP's. One for files and another for database. I setup mysql database to second server but I cannot connecting it from my first server because mysql hostname is localhost. How can I connect 2nd server database from first one?

  • 写回答

2条回答

  • douchao1879 2015-10-05 12:15
    关注

    Use the IP Address of the Database server as the host name

    i.e

    host = '192.168.1.10`;
    

    you will of course also have to make sure you are using a MySQL user account that is allowed to login from your applcation servers ip address

    评论

报告相同问题?

悬赏问题

  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 shape_predictor_68_face_landmarks.dat
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 对于相关问题的求解与代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料