Error SQL 1049

francisco's profile image francisco posted 2 months ago in Feature discussion Permalink

So I have many tables, and when I click them, it shows an error.

image.png

I have tried to repair them, but nothing makes them disappear. What can I do to remove them?

Also, here is more info about my software: image.png

ansgar's profile image ansgar posted 2 months ago Permalink

That looks quite strange. Please post the results of SHOW DATABASES; (exclude sensitive details).

francisco's profile image francisco posted 2 months ago Permalink

No problem

image.png

ansgar's profile image ansgar posted 2 months ago Permalink

Thanks. Your server responds it has a database named "igest". But when you try to use it, it says "unknown database". You likely have a stale, incomplete, or manually created datadir directory, e.g.:

/var/lib/mysql/igest/

but it does not contain a valid set of database/table files — or it is otherwise unreadable/incompatible with the running server.

MariaDB implements schemas as directories, and SHOW DATABASES can include directories "that do not correspond to actual databases." By contrast, USE igest must successfully resolve and open the schema; error 1049 means it could not do so.

francisco's profile image francisco posted 2 months ago Permalink

I have these folders:

image.png

But not the others with errors... they keep appearing on the UI for no reason.

ansgar's profile image ansgar posted 2 months ago Permalink

How did you set up the databases? Hope you did not just copy from one server to another one, just by copying files, did you?

francisco's profile image francisco posted 2 months ago Permalink

I set up the database with a Docker Compose file. When I add a new table in the UI, it stays that way.

francisco's profile image francisco posted 2 months ago Permalink

even on Export they come as a table: image.png

ansgar's profile image ansgar posted 2 months ago Permalink

What did the Docker compose file do actually? If it fired some CREATE DATABASE command, then this should have been correct. But probably composer just created a directory for you?

gruppenhaus's profile image gruppenhaus posted 2 months ago Permalink

Hi

Is the a way to sort the columns alphabeticaly?

Regards Chris

francisco's profile image francisco posted 1 month ago Permalink

What did the Docker compose file do actually? If it fired some CREATE DATABASE command, then this should have been correct. But probably composer just created a directory for you?

I'm creating it with a Dockerfile. When I run docker compose down and docker compose up, it keeps the older tables. The docker-compose.yml file probably copies the volumes with that non-existent DB.

I've tried with no success, like:

SET FOREIGN_KEY_CHECKS = 0;
DROP TABLE table_to_drop;
SET FOREIGN_KEY_CHECKS = 1;

I've dropped the Docker images and Docker volumes to pull it and build it again, with no success either.

francisco's profile image francisco posted 1 month ago Permalink

in my init.sql I have just CREATE DATABASE IF NOT EXISTS x;GRANT ALL ON *.* TO 'me'@'%';FLUSH PRIVILEGES;

and none of those are the non-existent tables

francisco's profile image francisco posted 1 month ago Permalink

So I noticed that when I'm accessing the database, I can add/remove the tables I want by name: image.png

with this, I don't have more problems of opening tables with errors

Please login to leave a reply, or register at first.