-
-
Notifications
You must be signed in to change notification settings - Fork 493
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
mariadb can't create table FEDERATED #789
Labels
Comments
We probably need to add a dummy for ➜ ~ mysql -P9306 -h0
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.0.0 b4cb7da02@220518 dev from tarball
Copyright (c) 2000, 2022, Oracle and/or its affiliates.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> set time_zone='+00:00';
ERROR 1064 (42000): Unknown session variable 'time_zone' in SET statement
mysql> |
MREdocker-compose:
Start:
Wait for mariadb to come up. Problem: snikolaev@dev:~/issue_813/maria$ docker-compose exec db mysql default -v
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 4
Server version: 10.8.3-MariaDB-1:10.8.3+maria~jammy mariadb.org binary distribution
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Reading history-file /root/.mysql_history
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [default]> CREATE TABLE t (id INTEGER UNSIGNED NOT NULL, f VARCHAR(1024) NOT NULL, query VARCHAR(1024) NOT NULL, INDEX(query)) ENGINE=FEDERATED DEFAULT CHARSET=utf8 CONNECTION='mysql://FEDERATED@manticore:9306/DB/t';
--------------
CREATE TABLE t (id INTEGER UNSIGNED NOT NULL, f VARCHAR(1024) NOT NULL, query VARCHAR(1024) NOT NULL, INDEX(query)) ENGINE=FEDERATED DEFAULT CHARSET=utf8 CONNECTION='mysql://FEDERATED@manticore:9306/DB/t'
--------------
ERROR 1434 (HY000): Can't create federated table. Foreign data src error: database: 'DB' username: 'FEDERATED' hostname: 'manticore'
MariaDB [default]> CREATE TABLE t (id INTEGER UNSIGNED NOT NULL, f VARCHAR(1024) NOT NULL, query VARCHAR(1024) NOT NULL, INDEX(query)) ENGINE=FEDERATED DEFAULT CHARSET=utf8 CONNECTION='mysql://FEDERATED@manticore_old:9306/DB/t';
--------------
CREATE TABLE t (id INTEGER UNSIGNED NOT NULL, f VARCHAR(1024) NOT NULL, query VARCHAR(1024) NOT NULL, INDEX(query)) ENGINE=FEDERATED DEFAULT CHARSET=utf8 CONNECTION='mysql://FEDERATED@manticore_old:9306/DB/t'
--------------
ERROR 1434 (HY000): Can't create federated table. Foreign data src error: database: 'DB' username: 'FEDERATED' hostname: 'manticore_old' Query log:
|
Fixed in 03652ac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Can't create FEDERATED table in mariadb as in the documentation https://manual.manticoresearch.com/Extensions/FEDERATED
To Reproduce
Steps to reproduce the behavior:
1.
mariadb says: #1434 - Can't create federated table.
manticore says: Unknown session variable 'time_zone' in SET statement
Describe the environment:
Messages from log files:
/* Tue May 24 19:51:00.961 2022 conn 163 */ set time_zone=' 00:00' # error=Unknown session variable 'time_zone' in SET statement
Additional context
Found a similar issue https://forum.manticoresearch.com/t/got-error-10000-error-on-remote-system-1064-unknown-session-variable-time-zone-in-set-statement-from-federated /778.
The text was updated successfully, but these errors were encountered: