# PhpMyAdmin with my code

**URL:** <https://forum.infinityfree.com/t/phpmyadmin-with-my-code/61428>\
**Category:** Hosting Support\
**Created:** [May 10, 2022, 1:57pm UTC](https://forum.infinityfree.com/t/phpmyadmin-with-my-code/61428 "2022-05-10T13:57:31Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon28915960](https://forum.infinityfree.com/letter_avatar/anon28915960/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon28915960](https://forum.infinityfree.com/u/anon28915960)\
**Post date:** [May 10, 2022, 1:57pm UTC](https://forum.infinityfree.com/t/phpmyadmin-with-my-code/61428/1 "2022-05-10T13:57:31Z")

</div>

### Username : epiz\_30720945

### Error Message :

```auto
PDOException: PDO::__construct(): php_network_getaddresses: getaddrinfo failed: H�te inconnu. in C:\wamp64\www\PHP\liste des mods.php on line 31
Call Stack
#	Time	Memory	Function	Location
1	0.0002	361144	{main}( )	...\liste des mods.php:0
2	0.0004	361488	__construct( $dsn = 'mysql:host=185.27.134.10/db_structure.php?db=epiz_30720945_packetcodeofficial;dbname=liste de mod;charset=utf8', $username = 'epiz_30720945_packetcodeofficial', $passwd = 'HIDDEN BY MOD' )	...\liste des mods.php:31

```

(please share the FULL error message you see)

### Other Information

how i can connect my PhpMyAdmin account to my website to use some database ?

---

<div class="post-metadata">

**Author:** ![jaikrishna.t](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/jaikrishna.t/32/57109_2.png) [@jaikrishna.t](https://forum.infinityfree.com/u/jaikrishna.t)\
**Post date:** [May 10, 2022, 2:05pm UTC](https://forum.infinityfree.com/t/phpmyadmin-with-my-code/61428/2 "2022-05-10T14:05:01Z")

</div>

use database host which is mentioned in client area

---

<div class="post-metadata">

**Author:** ![Oxy](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/oxy/32/37989_2.png) [@Oxy](https://forum.infinityfree.com/u/Oxy)\
**Post date:** [May 10, 2022, 2:06pm UTC](https://forum.infinityfree.com/t/phpmyadmin-with-my-code/61428/3 "2022-05-10T14:06:14Z")

</div>

@anon28915960  
Do not share your password publicly  
I edited your post

> [@Connecting to MySQL from an external application](https://forum.infinityfree.com/t/connecting-to-mysql-from-an-external-application/49339):
>
> Sometimes, you may want to connect to your MySQL database on your free hosting account using external software, like a desktop database manager (like MySQL Workbench) or an external program you wrote yourself (like an Android or iOS app). You cannot connect to a free hosting MySQL database from outside your hosting account. You can only interact with your free hosting database through PHP scripts uploaded to your free hosting account, or through our phpMyAdmin installation. The ability to con…

---

<div class="post-metadata">

**Author:** ![jaikrishna.t](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/jaikrishna.t/32/57109_2.png) [@jaikrishna.t](https://forum.infinityfree.com/u/jaikrishna.t)\
**Post date:** [May 10, 2022, 2:10pm UTC](https://forum.infinityfree.com/t/phpmyadmin-with-my-code/61428/4 "2022-05-10T14:10:39Z")

</div>

How do you know whether @anon28915960 is connecting externally?

---

<div class="post-metadata">

**Author:** ![Oxy](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/oxy/32/37989_2.png) [@Oxy](https://forum.infinityfree.com/u/Oxy)\
**Post date:** [May 10, 2022, 2:11pm UTC](https://forum.infinityfree.com/t/phpmyadmin-with-my-code/61428/5 "2022-05-10T14:11:33Z")

</div>

![image](https://forum-cdn.infinityfree.net/original/3X/4/c/4c54010d80d6d610357c75aba349d6240553022b.png)

---

<div class="post-metadata">

**Author:** ![anon28915960](https://forum.infinityfree.com/letter_avatar/anon28915960/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon28915960](https://forum.infinityfree.com/u/anon28915960)\
**Post date:** [May 11, 2022, 9:04am UTC](https://forum.infinityfree.com/t/phpmyadmin-with-my-code/61428/6 "2022-05-11T09:04:47Z")

</div>

il s’agit d’un mot de passe temporaire et qui ne mène nul part… mais merci

---

<div class="post-metadata">

**Author:** ![anon28915960](https://forum.infinityfree.com/letter_avatar/anon28915960/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon28915960](https://forum.infinityfree.com/u/anon28915960)\
**Post date:** [May 11, 2022, 9:07am UTC](https://forum.infinityfree.com/t/phpmyadmin-with-my-code/61428/7 "2022-05-11T09:07:17Z")

</div>

ha très bien je vais tester cela dès que je réaliserais une mise à jour pour mon site internet, en tout cas merci de votre aide, dans le cas où je passe beaucoup de temps à la programmation de mon code et que cela dépasse les 7 jours du chanel, comment puis-je vous joindre plus facilement ? (je l’utiliserais que si ce chanel se ferme)

---

<div class="post-metadata">

**Author:** ![anon28915960](https://forum.infinityfree.com/letter_avatar/anon28915960/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon28915960](https://forum.infinityfree.com/u/anon28915960)\
**Post date:** [May 11, 2022, 9:11am UTC](https://forum.infinityfree.com/t/phpmyadmin-with-my-code/61428/8 "2022-05-11T09:11:37Z")

</div>

et si j’ai bien compris dans la lecture de se message d’infinityfree, c’est que je ne peut connecter mon site internet à ma base de donnée avec WAMP. Dans ce cas, comment connecter ma base de donné proposé gratuitement par infinityfree sur PhpMyAdmin avec mon site web ? (dans le cas où j’utilise la base de donnée de infinityfree, puis-je connecter mon site internet que j’utilise en local pour des testes et faire mes futures mises à jours ?)

---

<div class="post-metadata">

**Author:** ![jaikrishna.t](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/jaikrishna.t/32/57109_2.png) [@jaikrishna.t](https://forum.infinityfree.com/u/jaikrishna.t)\
**Post date:** [May 11, 2022, 9:12am UTC](https://forum.infinityfree.com/t/phpmyadmin-with-my-code/61428/9 "2022-05-11T09:12:10Z")

</div>

You can send a PM to @Oxy

> **[Directing users to send a PM](https://meta.discourse.org/t/directing-users-to-send-a-pm/135294)**
>
> Hi, I’m using Discourse SSO (and a tiny bit of Discourse API) in order to have members of my community site use the forum. Instead of adding private messaging to my community site, I would like to direct people to send private messages through...

---

<div class="post-metadata">

**Author:** ![anon28915960](https://forum.infinityfree.com/letter_avatar/anon28915960/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon28915960](https://forum.infinityfree.com/u/anon28915960)\
**Post date:** [May 11, 2022, 9:14am UTC](https://forum.infinityfree.com/t/phpmyadmin-with-my-code/61428/10 "2022-05-11T09:14:49Z")

</div>

merci beaucoup !

---

<div class="post-metadata">

**Author:** ![jaikrishna.t](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/jaikrishna.t/32/57109_2.png) [@jaikrishna.t](https://forum.infinityfree.com/u/jaikrishna.t)\
**Post date:** [May 11, 2022, 9:22am UTC](https://forum.infinityfree.com/t/phpmyadmin-with-my-code/61428/11 "2022-05-11T09:22:25Z")

</div>

Please keep in mind that it’s an English forum, mind telling me which language you’re typing in?

---

<div class="post-metadata">

**Author:** ![anon28915960](https://forum.infinityfree.com/letter_avatar/anon28915960/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon28915960](https://forum.infinityfree.com/u/anon28915960)\
**Post date:** [May 11, 2022, 10:07am UTC](https://forum.infinityfree.com/t/phpmyadmin-with-my-code/61428/12 "2022-05-11T10:07:52Z")

</div>

en français

---

<div class="post-metadata">

**Author:** ![jaikrishna.t](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/jaikrishna.t/32/57109_2.png) [@jaikrishna.t](https://forum.infinityfree.com/u/jaikrishna.t)\
**Post date:** [May 11, 2022, 10:17am UTC](https://forum.infinityfree.com/t/phpmyadmin-with-my-code/61428/13 "2022-05-11T10:17:02Z")

</div>

You cannot connect to the infinity free database from your WAMP. And WAMP indeed comes with MySQL. So you can test locally with them. Once you’re confident, upload the file and PHPMyAdmin export file and import them to an infinity free database. And don’t forget to update the connection credentials 🙂

* * *

## Translation:

Vous ne pouvez pas vous connecter à la base de données infinity free depuis votre WAMP. Et WAMP est en effet livré avec MySQL. Vous pouvez donc tester localement avec eux. Une fois que vous êtes confiant, téléchargez le fichier et le fichier d’exportation PHPMyAdmin et importez-les dans une base de données gratuite à l’infini. Et n’oubliez pas de mettre à jour les identifiants de connexion 🙂

---

<div class="post-metadata">

**Author:** ![anon28915960](https://forum.infinityfree.com/letter_avatar/anon28915960/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon28915960](https://forum.infinityfree.com/u/anon28915960)\
**Post date:** [May 11, 2022, 10:42am UTC](https://forum.infinityfree.com/t/phpmyadmin-with-my-code/61428/14 "2022-05-11T10:42:00Z")

</div>

oui c’est ce qui me semble le plus probable or j’ai 2 problèmes :

1. Quel code doit-je inscrire pour que celle-ci fonctionne (pour connecter mon site en ligne avec MySQL de infinityfree).  
2)Quel mot de passe doit-je inscrire dans mon code pour m’y connecter ?

---

<div class="post-metadata">

**Author:** ![jaikrishna.t](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/jaikrishna.t/32/57109_2.png) [@jaikrishna.t](https://forum.infinityfree.com/u/jaikrishna.t)\
**Post date:** [May 11, 2022, 10:47am UTC](https://forum.infinityfree.com/t/phpmyadmin-with-my-code/61428/15 "2022-05-11T10:47:34Z")

</div>

To clarify, your code to connect should be hosted on InfinityFree and should be accessed from the domain you assigned.

## Question 1

Since, the original code you posted, you are using PHP? I suggest you read this guide :-  
[https://www.javatpoint.com/php-mysql-connect](https://www.javatpoint.com/php-mysql-connect)

## Question 2

You can find those credentials and hostnames in the client area under MySQL Details

# Translation

Pour clarifier, votre code pour vous connecter doit être hébergé sur InfinityFree et doit être accessible depuis le domaine que vous avez attribué.

## Question 1

Depuis le code original que vous avez posté, vous utilisez PHP ? Je vous suggère de lire ce guide :-  
[https://www.javatpoint.com/php-mysql-connect](https://www.javatpoint.com/php-mysql-connect)

## Question 2

Vous pouvez trouver ces informations d’identification et noms d’hôte dans la zone client sous MySQL Details

---

<div class="post-metadata">

**Author:** ![Greenreader9](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/greenreader9/32/22847_2.png) [@Greenreader9](https://forum.infinityfree.com/u/Greenreader9)\
**Post date:** [May 11, 2022, 11:58am UTC](https://forum.infinityfree.com/t/phpmyadmin-with-my-code/61428/16 "2022-05-11T11:58:33Z")

</div>

Just to clarify, you CANNOT use your database here with code that is hosted outside of InfinityFree. InfinityFree is a Webhosting provider, not a database host. If you want to access your database externally, please find a host that advertises database hosting.

Thanks

---

<div class="post-metadata">

**Author:** ![Greenreader9](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/greenreader9/32/22847_2.png) [@Greenreader9](https://forum.infinityfree.com/u/Greenreader9)\
**Post date:** [May 11, 2022, 11:58am UTC](https://forum.infinityfree.com/t/phpmyadmin-with-my-code/61428/17 "2022-05-11T11:58:48Z")

</div>

> [@Connecting to MySQL from an external application](https://forum.infinityfree.com/t/connecting-to-mysql-from-an-external-application/49339):
>
> Sometimes, you may want to connect to your MySQL database on your free hosting account using external software, like a desktop database manager (like MySQL Workbench) or an external program you wrote yourself (like an Android or iOS app). You cannot connect to a free hosting MySQL database from outside your hosting account. You can only interact with your free hosting database through PHP scripts uploaded to your free hosting account, or through our phpMyAdmin installation. The ability to con…

---

<div class="post-metadata">

**Author:** ![system](https://infinityfree-forum-uploads.s3.dualstack.eu-central-1.amazonaws.com/original/3X/b/0/b024fd3fa88bae093c9576e55c2c94e33f890206.svg) [@system](https://forum.infinityfree.com/u/system)\
**Post date:** [May 18, 2022, 11:59am UTC](https://forum.infinityfree.com/t/phpmyadmin-with-my-code/61428/18 "2022-05-18T11:59:23Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
