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

MYSQL: Unexpected EOF while in a multi-line comment #284

Open
mirkanglanz opened this issue Oct 11, 2023 · 0 comments
Open

MYSQL: Unexpected EOF while in a multi-line comment #284

mirkanglanz opened this issue Oct 11, 2023 · 0 comments

Comments

@mirkanglanz
Copy link

mirkanglanz commented Oct 11, 2023

Hello there, I have the following problem while trying to create a database dump.

Is there any way to solve this, or doesn't it work with this kind of database I'm trying to use?

Error

replibyte -c .replibyte.yaml dump create
⠤ [00:00:01] [###>---------------------------------------] 8.26MiB/100.00MiB (19s)
failing query: '
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `country_tax_free_insert` BEFORE INSERT ON `country` FOR EACH ROW BEGIN
                IF @TRIGGER_DISABLED IS NULL OR @TRIGGER_DISABLED = 0 THEN
                    IF NEW.tax_free = 1 OR NEW.customer_tax IS NULL THEN
                        SET NEW.customer_tax = JSON_OBJECT("enabled", NEW.tax_free, "currencyId", 'b7d2554b0ce847cd82f3ac9bd1c0dfca', "amount", 0);'
thread 'main' panicked at 'TokenizerError { message: "Unexpected EOF while in a multi-line comment", line: 2, col: 5 }', dump-parser/src/mysql/mod.rs:760:13
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Failed to execute command replibyte -c .replibyte.yaml dump create: exit status 101

My config file:

#encryption_key: $MY_PRIVATE_ENC_KEY # optional - encrypt data on datastore
source:
  connection_uri: mysql://x:x@x:3306/x # you can use $DATABASE_URL
datastore:
  local_disk:
    dir: replibyte
destination:
  connection_uri: mysql://x:x@x:3306/x_replibyte # you can use $DATABASE_URL

Best Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant