-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem exporting and importing Databases caused by MariaDB Dump File Compatibility Change #384
Comments
Thanks for sharing this here @TheMetMan . I had an issue a while ago where my host switched from MariaDB to MySQL:8 and I ended up having to drop the local, switch to MySQL then import from host. I wonder, do you think there is anything |
I don't think bee need to do anything @yorkshire-pudding, but I thought giving a 'Heads Up' might help someone else who hits this problem. |
I have had another look at this. It would seem that if you are using MariaDB version 10.6.18 on any server the database will be exported with the header as above. This same version imports it, no problem. |
I came across this and found another workaround. Modify the local version of The line that says
modified to:
I'll not change this in bee as it will break things where this isn't an issue. However, I'll look at a more sustainable change. |
Need to do for unzipped |
This is for anyone else who might come across this problem.
I was trying to do an update to all my sites yesterday and came across this error when importing the Production Export to Local:
Looking at line 1 in the database I had exported I see this:
/*!999999\- enable the sandbox mode */
However on older exports this line is not there.
So from the MariaDB site here you will see the reason for this which is dated 2024-05-17 so very recent.
The solution is to remove this line if it exists from the database dump before importing it.
Here are the MariaDB Versions I am using:
Hosting Server (Ubuntu):
mariadb Ver 15.1 Distrib 10.6.18-MariaDB, for Linux (x86_64)
Local Server (Linux Mint):
mariadb Ver 15.1 Distrib 10.6.16-MariaDB, for debian-linux-gnu (x86_64)
My PC using Ansible (Gentoo):
mariadb Ver 15.1 Distrib 10.6.17-MariaDB, for Linux (x86_64)
My Local Server is up to date on upgrades, but the MariaDB version is not the same as the Hosting Server, hence the problem.
The text was updated successfully, but these errors were encountered: