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

Databases with weird character names break queries #617

Open
Znuff opened this issue Oct 31, 2022 · 5 comments
Open

Databases with weird character names break queries #617

Znuff opened this issue Oct 31, 2022 · 5 comments
Assignees

Comments

@Znuff
Copy link

Znuff commented Oct 31, 2022

As per title, one of my users has a database called: dragon_Ul)e@k!#dERs$_OLD.

This in turn breaks MySQL Tuner:

-------- Storage Engine Statistics -----------------------------------------------------------------
[--] Status: +Aria +CSV +InnoDB +MEMORY +MRG_MyISAM +MyISAM +PERFORMANCE_SCHEMA +SEQUENCE
[--] Data in MyISAM tables: 18.1G (Tables: 27599)
[--] Data in InnoDB tables: 18.4G (Tables: 52391)
[--] Data in MEMORY tables: 0B (Tables: 250)
[OK] Total fragmented tables: 0
[!!] Failed to execute: SHOW TABLE STATUS FROM \`dragon_Ul)e@k!#dERs$_OLD\`
[!!] FAIL Execute SQL / return code: 256
@jmrenouard
Copy link
Collaborator

Hi @Znuff
Nice name for a database

I try to find what going wrong with that !

@jmrenouard jmrenouard self-assigned this Nov 30, 2022
@Znuff
Copy link
Author

Znuff commented Nov 30, 2022

Well, the DB name seems to actually be valid.

I know, I couldn't believe it myself.

Yes, it's a terrible name.

@jmrenouard
Copy link
Collaborator

hi @Znuff
Can you send me a show create database result ?

@Znuff
Copy link
Author

Znuff commented Jun 26, 2023

Sure:

MariaDB [(none)]> show create database `dragon_Ul)e@k!#dERs$_OLD` \G
*************************** 1. row ***************************
       Database: dragonpc_Ul)e@k!#dERs$_OLD
Create Database: CREATE DATABASE `dragon_Ul)e@k!#dERs$_OLD` /*!40100 DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci */
1 row in set (0.000 sec)

@Znuff
Copy link
Author

Znuff commented Dec 9, 2023

Still happening with mysqltuner 2.5.0 (same DB).

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