# MySQL was unavailable

**URL:** <https://community.localwp.com/t/mysql-was-unavailable/11597>\
**Category:** Support\
**Created:** [March 18, 2019, 9:17am UTC](https://community.localwp.com/t/mysql-was-unavailable/11597 "2019-03-18T09:17:28Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Epmale](https://avatars.discourse-cdn.com/v4/letter/e/3da27b/32.png) [@Epmale](https://community.localwp.com/u/Epmale)\
**Post date:** [March 18, 2019, 9:17am UTC](https://community.localwp.com/t/mysql-was-unavailable/11597/1 "2019-03-18T09:17:28Z")

</div>

Hello, forgive me for the language, I use a translator, I’m French. I am under mac  
I have a problem with one of my sites, when I closed it, I received a message "Uh-oh! MySQL was unavailable when Local tried to back up … database. by-flywheel.log file for more details, and when I wanted to go on the BDD, I had a form, can you tell me what to do please?  
I do not know what to do.  
Thanks a lot for your help

---

<div class="post-metadata">

**Author:** ![Epmale](https://avatars.discourse-cdn.com/v4/letter/e/3da27b/32.png) [@Epmale](https://community.localwp.com/u/Epmale)\
**Post date:** [March 18, 2019, 4:11pm UTC](https://community.localwp.com/t/mysql-was-unavailable/11597/2 "2019-03-18T16:11:09Z")

</div>

I am under mac

---

<div class="post-metadata">

**Author:** ![clay](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/clay/32/8248_2.png) [@clay](https://community.localwp.com/u/clay)\
**Post date:** [March 18, 2019, 4:34pm UTC](https://community.localwp.com/t/mysql-was-unavailable/11597/3 "2019-03-18T16:34:15Z")

</div>

Hi @Epmale,

Sorry about that! This is usually caused by views in MySQL that don’t have the proper “definer” set.

Can you please provide your `local-by-flywheel.log` file? See [How do I retrieve Local's log file?](https://local.getflywheel.com/community/t/how-do-i-retrieve-locals-log-file/3720?u=clay) for instructions on how to do so.

---

<div class="post-metadata">

**Author:** ![Epmale](https://avatars.discourse-cdn.com/v4/letter/e/3da27b/32.png) [@Epmale](https://community.localwp.com/u/Epmale)\
**Post date:** [March 19, 2019, 9:05am UTC](https://community.localwp.com/t/mysql-was-unavailable/11597/4 "2019-03-19T09:05:30Z")

</div>

138/5000

A big thank you for your help, but a French person who uses local has managed to help me and the problem is solved. Have a good day.

---

<div class="post-metadata">

**Author:** ![Typhaine](https://avatars.discourse-cdn.com/v4/letter/t/a6a055/32.png) [@Typhaine](https://community.localwp.com/u/Typhaine)\
**Post date:** [March 19, 2019, 9:25am UTC](https://community.localwp.com/t/mysql-was-unavailable/11597/5 "2019-03-19T09:25:39Z")

</div>

Bonjour @Epmale,  
J’ai le même problème que toi… Pourrais tu expliquer comment vous avez fait pour réparer ?  
Merci !  
Bonne journée

---

<div class="post-metadata">

**Author:** ![Epmale](https://avatars.discourse-cdn.com/v4/letter/e/3da27b/32.png) [@Epmale](https://community.localwp.com/u/Epmale)\
**Post date:** [March 19, 2019, 9:07pm UTC](https://community.localwp.com/t/mysql-was-unavailable/11597/6 "2019-03-19T21:07:42Z")

</div>

Bonjour Typhaine,  
Pardon de répondre aussi tardivement, finalement c’est tout simple, il suffit de prendre le dossier qui est localisé quelque part, le compresser et l’importer sur LbF.  
Il faut bien reprendre les mêmes éléments pour se reconnecter.  
N’hésitez pas.

---

<div class="post-metadata">

**Author:** ![Typhaine](https://avatars.discourse-cdn.com/v4/letter/t/a6a055/32.png) [@Typhaine](https://community.localwp.com/u/Typhaine)\
**Post date:** [March 20, 2019, 7:57am UTC](https://community.localwp.com/t/mysql-was-unavailable/11597/7 "2019-03-20T07:57:32Z")

</div>

Bonjour,  
Merci beaucoup pour votre réponse. J’avais réussi hier en plongeant dans différents forum à trouver la solution.  
Bonne journée

---

<div class="post-metadata">

**Author:** ![Epmale](https://avatars.discourse-cdn.com/v4/letter/e/3da27b/32.png) [@Epmale](https://community.localwp.com/u/Epmale)\
**Post date:** [March 20, 2019, 8:45am UTC](https://community.localwp.com/t/mysql-was-unavailable/11597/8 "2019-03-20T08:45:40Z")

</div>

Je suis vraiment désolée d’avoir répondu aussi tardivement. J’espère que vous avez réussi. Vous pouvez mettre un petit like quand même sur ma réponse si ça peu aider une autre personne ?  
N’hésitez, on se comprend un peu mieux en tant que Français 😉  
Bonne journée

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/system/32/1_2.png) [@system](https://community.localwp.com/u/system)\
**Post date:** [March 20, 2019, 8:45pm UTC](https://community.localwp.com/t/mysql-was-unavailable/11597/9 "2019-03-20T20:45:42Z")

</div>

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