# Need help connecting MYSQL and php

**URL:** <https://forum.infinityfree.com/t/need-help-connecting-mysql-and-php/74558>\
**Category:** Hosting Support\
**Created:** [April 9, 2023, 2:31pm UTC](https://forum.infinityfree.com/t/need-help-connecting-mysql-and-php/74558 "2023-04-09T14:31:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon88403812](https://forum.infinityfree.com/letter_avatar/anon88403812/32/6_449c533f586939b6e5f246632a46421f.png) [@anon88403812](https://forum.infinityfree.com/u/anon88403812)\
**Post date:** [April 9, 2023, 2:31pm UTC](https://forum.infinityfree.com/t/need-help-connecting-mysql-and-php/74558/1 "2023-04-09T14:31:13Z")

</div>

### Website URL

(please specify the URL of the site on which you are experiencing the problem)

### Error Message

(please share the FULL error message you see, if applicable)

### Other Information

(other information and details relevant to your question)

 ![Screenshot_20230409-151152](https://forum-cdn.infinityfree.net/original/3X/4/e/4eafbcd0be5959b19c0ef51b759390b3412ef483.jpeg)

---

<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:** [April 9, 2023, 2:55pm UTC](https://forum.infinityfree.com/t/need-help-connecting-mysql-and-php/74558/2 "2023-04-09T14:55:45Z")

</div>

Hi and welcome to the forum

You did not provide enough information, but I assume that this is the reason

> [@Connecting to MySQL from an external application](https://forum.infinityfree.com/t/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:** [April 16, 2023, 2:56pm UTC](https://forum.infinityfree.com/t/need-help-connecting-mysql-and-php/74558/3 "2023-04-16T14:56:27Z")

</div>

Closed on April 16, 2023, 2:56pm UTC

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