Bug #75909 [ERROR] Invalid (old?) table or database name

Submitted: 15 Feb 2015 20:16 Modified: 16 Feb 2015 6:04
Reporter: Roel Van de Paar Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Server: DML Severity:S2 (Serious)
Version:5.7.5-m15 OS:Any
Assigned to: CPU Architecture:Any

[15 Feb 2015 20:16] Roel Van de Paar
Description:
2015-02-15T20:14:35.538563Z 1 [ERROR] Invalid (old?) table or database name '-1'

How to repeat:
DROP DATABASE test;CREATE DATABASE test;USE test;
CREATE DATABASE `#mysql50#-1`;
select count(*) from information_schema.columns;

Check error log. Database can be used normally, but error appears.
[15 Feb 2015 21:57] Peter Laursen
Reproducible for me on Windows:

-- starting server with an empty error log file:

2015-02-15T21:50:40.779584Z 0 [Note] Plugin 'FEDERATED' is disabled.
2015-02-15T21:50:40.781584Z 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2015-02-15T21:50:40.782585Z 0 [Note] InnoDB: Uses event mutexes
2015-02-15T21:50:40.782585Z 0 [Note] InnoDB: _mm_lfence() and _mm_sfence() are used for memory barrier
2015-02-15T21:50:40.783585Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.3
2015-02-15T21:50:40.784585Z 0 [Note] InnoDB: Number of pools: 1
2015-02-15T21:50:40.785585Z 0 [Note] InnoDB: Not using CPU crc32 instructions
2015-02-15T21:50:40.787585Z 0 [Note] InnoDB: Initializing buffer pool, total size = 1.0G, instances = 8, chunk size = 128.0M
2015-02-15T21:50:40.855589Z 0 [Note] InnoDB: Completed initialization of buffer pool
2015-02-15T21:50:40.877590Z 0 [Note] InnoDB: Highest supported file format is Barracuda.
2015-02-15T21:50:40.909592Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2015-02-15T21:50:40.909592Z 0 [Note] InnoDB: Setting file '.\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2015-02-15T21:50:40.963595Z 0 [Note] InnoDB: File '.\ibtmp1' size is now 12 MB.
2015-02-15T21:50:40.964595Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active.
2015-02-15T21:50:40.965595Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active.
2015-02-15T21:50:40.966595Z 0 [Note] InnoDB: Waiting for purge to start
2015-02-15T21:50:41.016598Z 0 [Note] InnoDB: 5.7.5 started; log sequence number 2273756
2015-02-15T21:50:41.017598Z 0 [Warning] Failed to setup SSL
2015-02-15T21:50:41.017598Z 0 [Warning] SSL error: SSL context is not usable without certificate and private key
2015-02-15T21:50:41.018598Z 0 [Note] Server hostname (bind-address): '*'; port: 3311
2015-02-15T21:50:41.019598Z 0 [Note] IPv6 is available.
2015-02-15T21:50:41.019598Z 0 [Note]   - '::' resolves to '::';
2015-02-15T21:50:41.019598Z 0 [Note] Server socket created on IP: '::'.
2015-02-15T21:50:41.049600Z 0 [Note] Event Scheduler: Loaded 0 events
2015-02-15T21:50:41.050600Z 0 [Note] C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqld: ready for connections.
Version: '5.7.5-m15-log'  socket: ''  port: 3311  MySQL Community Server (GPL)

-- after executing the statements provided by Roel this gets added to the log.

2015-02-15T21:51:51.865650Z 1 [ERROR] Invalid (old?) table or database name '-1'
[16 Feb 2015 6:04] MySQL Verification Team
Hello Roel,

Thank you for the report.
imho this is duplicate of Bug #73920

Thanks,
Umesh

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.043 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.