Skip to content
← Back to Community
Why can't i connect to mysql with php in php web server
Profile icon
TheDevBest

Why can't i connect to mysql with php in php web server

Answered by elipie [earned 5 cycles]
View Answer
Voters
Profile icon
TheDevBest
Comments
hotnewtop
Profile icon
elipie

Can you please show the repl?

Profile icon
TheDevBest

@elipie like is there a different way to connect to mysql db in php web

Profile icon
elipie
Profile icon
Baconman321

Are you talking about the mysql server in repl? If not, you have to make sure your database is set up to handle remote connections. That is, connections from different domains/computers.

Profile icon
TheDevBest
Profile icon
Baconman321

@TheDevBest The mysql repl? I don't know of any way to connect to that sadly.