Connecting to remote mysql works in terminal, not via PHP PDO script

后端 未结 3 1775
一生所求
一生所求 2021-01-17 03:52

I am facing a weird problem here we have a server A where the app files are stored and B server with database

Tried to connect via command prompt from server A to B

3条回答
  •  醉话见心
    2021-01-17 04:41

    I got it working by running a command in the database server :)

    setsebool httpd_can_network_connect_db=1
    

    thanks for the replies yycdev

提交回复
热议问题