Skip to content
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

[MySQL8.3] Review FUNCTION columns #1431

Open
mmalutinde opened this issue Mar 11, 2024 · 3 comments
Open

[MySQL8.3] Review FUNCTION columns #1431

mmalutinde opened this issue Mar 11, 2024 · 3 comments

Comments

@mmalutinde
Copy link

Describe the bug
No problem within backup process.
In the restore process MySQL server reports what "You have an error in your SQL syntax"
** (myloader:23502): CRITICAL **: 16:59:54.496: Thread 15: Error restoring: SET character_set_client = ;

To Reproduce
Command executed:
mydumper -h 127.0.0.1 -u root -p PASS -B dbname --checksum-all -v 3 -t 6 -R -G -E -c -o /home/user/mysql-testdata

myloader -h 127.0.0.1 -u root -p PASS --innodb-optimize-keys -B dbname2 -t 6 -d /home/user/mysql-testdata

What mydumper and myloader version has been used?

mydumper v0.16.1-1, built against MySQL 8.0.36-28 with SSL support
myloader v0.16.1-1, built against MySQL 8.0.36-28 with SSL support

Expected behavior
Dump should be loaded in database.

Log

** Message: 17:15:58.147: Thread 15: restoring post on `dbname2` from dbname-schema-post.sql.gz. Tables 126 of 137 completed

** (myloader:24602): WARNING **: 17:15:58.149: Thread 15: Error restoring 1: SET character_set_client = ;
 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1

** (myloader:24602): WARNING **: 17:15:58.150: Thread 15: Retrying last failed executed statement

** (myloader:24602): CRITICAL **: 17:15:58.150: Thread 15: Error restoring: SET character_set_client = ;
 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
Trace/breakpoint trap (core dumped)

Backup
Metadata is attached
metadata.txt

Environment (please complete the following information):

  • OS version: Ubuntu 22.04.3 LTS
  • MyDumper version: mydumper v0.16.1-1, built against MySQL 8.0.36-28 with SSL support
  • MySQL: latest:8.3

Additional context
Content of -schema-post file

/*!40101 SET NAMES binary*/;
/*!40014 SET FOREIGN_KEY_CHECKS=0*/;
/*!40101 SET SQL_MODE='NO_AUTO_VALUE_ON_ZERO,NO_ENGINE_SUBSTITUTION'*/;
/*!40103 SET TIME_ZONE='+00:00' */;
SET @PREV_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT;
SET @PREV_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS;
SET @PREV_COLLATION_CONNECTION=@@COLLATION_CONNECTION;
SET character_set_client = ;
SET character_set_results = ;
SET collation_connection = utf8mb4;
@mmalutinde mmalutinde added the bug label Mar 11, 2024
@davidducos
Copy link
Member

Hi @mmalutinde,
Thank you for reporting this bug, but this is related to MySQL 8.3 which is not supported yet by MyDumper.
The issue here is that column Language has been added to the result when we execute SHOW FUNCTION STATUS

@davidducos davidducos added this to the Release 0.16.5-1 milestone Mar 12, 2024
@mmalutinde
Copy link
Author

Thanks for your job!
This problem was also with MySQL 8.2
I'm looking forward to future support of the newest versions of MySQL.
BR.

@davidducos
Copy link
Member

Hi @mmalutinde, I will left this ticket open as a reminder that we need to implement it.

@davidducos davidducos reopened this Mar 18, 2024
@davidducos davidducos changed the title [BUG] Unable to restore dump [MySQL8.3] Review FUNCTION columns Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants