Jump to content
[MUST READ] Forum Rules ×

How to get the sql server address


Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...