# Backup failed due to mysql dump

**URL:** <https://forum.hestiacp.com/t/backup-failed-due-to-mysql-dump/5469>\
**Category:** Backups\
**Created:** [January 30, 2022, 10:39am UTC](https://forum.hestiacp.com/t/backup-failed-due-to-mysql-dump/5469 "2022-01-30T10:39:45Z")\
**Posts on this page:** 8\
**Page:** 2

<div class="post-metadata">

**Author:** ![eris](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/eris/32/1241_2.png) [@eris](https://forum.hestiacp.com/u/eris)\
**Post date:** [February 1, 2022, 11:16am UTC](https://forum.hestiacp.com/t/backup-failed-due-to-mysql-dump/5469/21 "2022-02-01T11:16:50Z")

</div>

Check contents of /usr/local/data/users/user.conf

---

<div class="post-metadata">

**Author:** ![fatih](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/f/d9b06d/32.png) [@fatih](https://forum.hestiacp.com/u/fatih)\
**Post date:** [February 1, 2022, 11:29am UTC](https://forum.hestiacp.com/t/backup-failed-due-to-mysql-dump/5469/22 "2022-02-01T11:29:55Z")

</div>

I just checked /usr/local/hestia/data/users/fatih/user.conf  
It looks fine to me. What should I check specifically?  
I believe the problem is in the last line in log: Error: Connection to localhost failed  
I didn’t change database password lately, by the way.

---

<div class="post-metadata">

**Author:** ![fatih](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/f/d9b06d/32.png) [@fatih](https://forum.hestiacp.com/u/fatih)\
**Post date:** [February 1, 2022, 11:43am UTC](https://forum.hestiacp.com/t/backup-failed-due-to-mysql-dump/5469/23 "2022-02-01T11:43:20Z")

</div>

Oops, my apologies.  
I just remembered I changed the database charset lately, from utf8 to utf8mb4.

---

<div class="post-metadata">

**Author:** ![eris](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/eris/32/1241_2.png) [@eris](https://forum.hestiacp.com/u/eris)\
**Post date:** [February 1, 2022, 12:51pm UTC](https://forum.hestiacp.com/t/backup-failed-due-to-mysql-dump/5469/24 "2022-02-01T12:51:07Z")

</div>

And it now works?

We do a check for the current database size in:

> <https://github.com/hestiacp/hestiacp/blob/83cfa9804d3346b42fa879ed6f40f7366767b904/bin/v-backup-user#L109-L122>

And for some reasons it fails to connect.

---

<div class="post-metadata">

**Author:** ![fatih](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/f/d9b06d/32.png) [@fatih](https://forum.hestiacp.com/u/fatih)\
**Post date:** [February 1, 2022, 5:15pm UTC](https://forum.hestiacp.com/t/backup-failed-due-to-mysql-dump/5469/25 "2022-02-01T17:15:34Z")

</div>

@eris You are right. I deleted the exclusion, it works perfect now. Nothing wrong with utf8mb4.  
Something weird is happening in the backup exclusion.

---

<div class="post-metadata">

**Author:** ![eris](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/eris/32/1241_2.png) [@eris](https://forum.hestiacp.com/u/eris)\
**Post date:** [February 1, 2022, 5:23pm UTC](https://forum.hestiacp.com/t/backup-failed-due-to-mysql-dump/5469/26 "2022-02-01T17:23:48Z")

</div>

You had an backup exclusion active?

---

<div class="post-metadata">

**Author:** ![fatih](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/f/d9b06d/32.png) [@fatih](https://forum.hestiacp.com/u/fatih)\
**Post date:** [February 1, 2022, 5:27pm UTC](https://forum.hestiacp.com/t/backup-failed-due-to-mysql-dump/5469/27 "2022-02-01T17:27:03Z")

</div>

Yes. I had backup exclusion: [files.\*\*\*\*\*\*\*\*.com:public\_html]  
It was working fine before. Backup file is 1.2GB without exclusion. When I use the exclusion it is only 250MB.

---

<div class="post-metadata">

**Author:** ![system](https://forum.hestiacp.com/uploads/default/original/1X/d9a5b68bf50ced83e880b56452e592b204761b19.png) [@system](https://forum.hestiacp.com/u/system)\
**Post date:** [March 3, 2022, 5:27pm UTC](https://forum.hestiacp.com/t/backup-failed-due-to-mysql-dump/5469/28 "2022-03-03T17:27:22Z")

</div>

Closed on March 3, 2022, 5:27pm UTC

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

[Previous page](https://forum.hestiacp.com/t/backup-failed-due-to-mysql-dump/5469.md?page=1)
