Now I have some issues.
I copied the folders, each with a database name, in /var/lib/mysql, and used the console and phpmyadmin.
When I select a specific database, it seems to be corrupt.
Here the console:
Code:
root@old-ub16:# mysql -h localhost -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 6
Server version: 5.7.33-0ubuntu0.16.04.1 (Ubuntu)
Copyright (c) 2000, 2021, 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> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| as*** |
| cretiww2 |
| dati |
| g*** |
| g*** |
| l********* |
| mediatomb |
| mtasa |
| mysql |
| performance_schema |
| sc********* |
| scambiointe |
| soldi |
| sys |
| tut****** |
+--------------------+
16 rows in set (0.00 sec)
mysql> use soldi;
Database changed
mysql> show tables;
+-----------------+
| Tables_in_soldi |
+-----------------+
| avvisi |
| cassa |
| movimenti |
| utenti |
+-----------------+
4 rows in set (0.00 sec)
mysql> select * from avvisi;
ERROR 1146 (42S02): Table 'soldi.avvisi' doesn't exist
mysql> select * from cassa;
ERROR 1146 (42S02): Table 'soldi.cassa' doesn't exist
As you can see, I can see the tables, but they don't exist.
Also when I use phpmyadmin, I try to visit the database "soldi", in the side menu I can see the tables, but in the body it tells me that there are no tables:
f1.jpg
Instead if I visit the database "cretiww2", I can see only one table, although there is a nice list in the side menu:
f2.jpg
Lastly, the database "scambiointe" works correctly.
Now I can't understand why there are some tables which work, and some which don't work.
I want to point out that I have available the entire /var/lib/mysql folder of the old server.
How can I fix?
Thanks
Bookmarks