Is it possible to somehow get structure of MySQL database, or just some table with simple query?
Or is there another way, how can I do it?
That's the SHOW CREATE TABLE query. You can query the SCHEMA TABLES, too.
SHOW CREATE TABLE YourTableName;