Ryan Matheus Posted March 16, 2021 Share Posted March 16, 2021 I'm creating a client area, however, I would like to know how to obtain the address of the sql server, that address that must be put to start the connection in mysql, ex: <?php # No Localhost $pdo = new PDO('mysql:host=localhost; dbname=hosting', 'root', ''); The address of the sql server is different from localhost, for some users it can be sql123.mysite.com.br and for others it can be sql321.mysite.com.br How can I get that address? Obs: I'm already using the InfinityFree code Quote Link to comment Share on other sites More sharing options...
uHost Posted March 19, 2021 Share Posted March 19, 2021 Hi @Ryan Matheus The sql address of each new account created will be posted to the call back url which you entered on mofh admin panel. Once the account becomes active the system automatically posts the sql address, you can analyse the post data for more details. ? Quote Link to comment Share on other sites More sharing options...
Ryan Matheus Posted March 19, 2021 Author Share Posted March 19, 2021 17 hours ago, uHost said: Oi @Ryan Matheus O endereço sql de cada nova conta criada será postado no url de retorno que você inseriu no painel de administração do mofh. Assim que a conta se torna ativa, o sistema publica automaticamente o endereço sql, você pode analisar os dados de postagem para obter mais detalhes. ? Thank you very much Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.