# The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead

**URL:** <https://forum.infinityfree.com/t/the-mysql-extension-is-deprecated-and-will-be-removed-in-the-future-use-mysqli-or-pdo-instead/66393>\
**Category:** Hosting Support\
**Created:** [September 20, 2022, 8:19am UTC](https://forum.infinityfree.com/t/the-mysql-extension-is-deprecated-and-will-be-removed-in-the-future-use-mysqli-or-pdo-instead/66393 "2022-09-20T08:19:45Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon7778873](https://forum.infinityfree.com/letter_avatar/anon7778873/32/6_449c533f586939b6e5f246632a46421f.png) [@anon7778873](https://forum.infinityfree.com/u/anon7778873)\
**Post date:** [September 20, 2022, 8:19am UTC](https://forum.infinityfree.com/t/the-mysql-extension-is-deprecated-and-will-be-removed-in-the-future-use-mysqli-or-pdo-instead/66393/1 "2022-09-20T08:19:45Z")

</div>

### Username:

epiz\_28287880

**Warning** : mysqli\_real\_connect(): (HY000/1045): Access denied for user ‘28287880\_5’@‘192(hidden)’ (using password: YES) in **/home/vol7\_7/epizy.com/epiz\_28287880/s(hidden).be/htdocs/wp-includes/wp-db.php** on line **1653**

**Deprecated** : mysql\_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in **/home/vol7\_7/epizy.com/epiz\_28287880/s(hidden).be/htdocs/wp-includes/wp-db.php** on line **1685**

**Warning** : mysql\_connect(): Access denied for user ‘28287880\_5’@‘192(hidden)’ (using password: YES) in **/home/vol7\_7/epizy.com/epiz\_28287880/s(hidden).be/htdocs/wp-includes/wp-db.php** on line **1685**

`Access denied for user '28287880_5'@'192(hidden)' (using password: YES)`

### Other Information

I had problems with my SSL but I fixed that. But I haven’t used my website for some months. Now that (I think) my SSL is fixed, I have a mysql problem.  
When I go to mysqlDetails in infinityfree I can see my own details.  
When I open the Control Panel and click MySQL Databases, there are no databases there. (I’m not sure if the website needs a database there; I do not use databases for shopping or other extra’s inside the website).  
I hope one of the admins knows how to fix this as I am completely lost as to where I need to look.  
I tried `define(` `'WP_ALLOW_REPAIR'` `, true);` for some minutes but that didn’t change anything.  
Do I need to use msqli? I have no idea how that works.

---

<div class="post-metadata">

**Author:** ![KangJL](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/kangjl/32/12130_2.png) [@KangJL](https://forum.infinityfree.com/u/KangJL)\
**Post date:** [September 20, 2022, 8:30am UTC](https://forum.infinityfree.com/t/the-mysql-extension-is-deprecated-and-will-be-removed-in-the-future-use-mysqli-or-pdo-instead/66393/2 "2022-09-20T08:30:37Z")

</div>

> [@anon7778873](#):
>
> When I open the Control Panel and click MySQL Databases, there are no databases there

If you have no backup and database is missing, the WP installation is likely messed up.  
Perhaps you need to start from scratch again

---

<div class="post-metadata">

**Author:** ![anon7778873](https://forum.infinityfree.com/letter_avatar/anon7778873/32/6_449c533f586939b6e5f246632a46421f.png) [@anon7778873](https://forum.infinityfree.com/u/anon7778873)\
**Post date:** [September 20, 2022, 8:33am UTC](https://forum.infinityfree.com/t/the-mysql-extension-is-deprecated-and-will-be-removed-in-the-future-use-mysqli-or-pdo-instead/66393/3 "2022-09-20T08:33:56Z")

</div>

I think I made a WordPress backup, but that’s probably not the kind of backup you mean?  
Would be hassle starting from scratch, it all used to work fine…

---

<div class="post-metadata">

**Author:** ![KangJL](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/kangjl/32/12130_2.png) [@KangJL](https://forum.infinityfree.com/u/KangJL)\
**Post date:** [September 20, 2022, 8:36am UTC](https://forum.infinityfree.com/t/the-mysql-extension-is-deprecated-and-will-be-removed-in-the-future-use-mysqli-or-pdo-instead/66393/4 "2022-09-20T08:36:38Z")

</div>

> [@anon7778873](#):
>
> I made a WordPress backup

Great!! You can use that to restore your website

---

<div class="post-metadata">

**Author:** ![anon7778873](https://forum.infinityfree.com/letter_avatar/anon7778873/32/6_449c533f586939b6e5f246632a46421f.png) [@anon7778873](https://forum.infinityfree.com/u/anon7778873)\
**Post date:** [September 20, 2022, 8:55am UTC](https://forum.infinityfree.com/t/the-mysql-extension-is-deprecated-and-will-be-removed-in-the-future-use-mysqli-or-pdo-instead/66393/5 "2022-09-20T08:55:33Z")

</div>

I can’t find the backups. Softaculous also doesn’t give me an option to make a backup now and the tab for backups isn’t there.  
So I guess I’ll just make a second WordPress installation and try to connect it to my website name, to see if I can quickly start a new website that way…

---

<div class="post-metadata">

**Author:** ![KangJL](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/kangjl/32/12130_2.png) [@KangJL](https://forum.infinityfree.com/u/KangJL)\
**Post date:** [September 20, 2022, 9:07am UTC](https://forum.infinityfree.com/t/the-mysql-extension-is-deprecated-and-will-be-removed-in-the-future-use-mysqli-or-pdo-instead/66393/6 "2022-09-20T09:07:05Z")

</div>

> [@anon7778873](#):
>
> I can’t find the backups. Softaculous also doesn’t give me an option to make a backup now and the tab for backups isn’t there.

Likely due to this

> [@Big Problem - Backup on Softaculous is "gone"](https://forum.infinityfree.com/t/big-problem-backup-on-softaculous-is-gone/65220/12):
>
> Possibly. Using our hosting space for backup storage was never allowed, so it always was kinda weird you could do exactly that through Softaculous. I can totally imagine that someone at iFastNet saw a server getting full, noticed many accounts having multiple GB in a softaculous\_backups folder, noted “hold on, that’s not supposed to be possible” and changed the setting.

---

<div class="post-metadata">

**Author:** ![Admin](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/admin/32/36437_2.png) [@Admin](https://forum.infinityfree.com/u/Admin)\
**Post date:** [September 20, 2022, 7:16pm UTC](https://forum.infinityfree.com/t/the-mysql-extension-is-deprecated-and-will-be-removed-in-the-future-use-mysqli-or-pdo-instead/66393/7 "2022-09-20T19:16:10Z")

</div>

It sounds like your database is just gone. The Softaculous backup option is disabled, but even if it wasn’t, Softaculous also can’t backup a database that doesn’t exist anymore.

And you do need the database. WordPress needs a database to work, it uses it to store basically everything, including posts, pages and settings. So if you lost the database, your website is pretty much gone.

I’m not sure what “WordPress backup” you mean, WordPress doesn’t really have built-in backup functionality. But if it is a backup of your site, you can use it to restore it.

---

<div class="post-metadata">

**Author:** ![anon7778873](https://forum.infinityfree.com/letter_avatar/anon7778873/32/6_449c533f586939b6e5f246632a46421f.png) [@anon7778873](https://forum.infinityfree.com/u/anon7778873)\
**Post date:** [September 24, 2022, 5:46pm UTC](https://forum.infinityfree.com/t/the-mysql-extension-is-deprecated-and-will-be-removed-in-the-future-use-mysqli-or-pdo-instead/66393/8 "2022-09-24T17:46:47Z")

</div>

I deleted my Wordpress installation, made a new installation and rewrote my pages (still had the texts). Luckily it kept my images and the theme and plugins I had used. They were still on the server, so it was easy to build the site again. Thank you both for the advice! The site is running again!

---

<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:** [October 1, 2022, 5:47pm UTC](https://forum.infinityfree.com/t/the-mysql-extension-is-deprecated-and-will-be-removed-in-the-future-use-mysqli-or-pdo-instead/66393/9 "2022-10-01T17:47:12Z")

</div>

Closed on October 1, 2022, 5:47pm UTC

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