I've just set up Metabase to run on AWS Elastic Beanstalk with a connection to an RDS MySQL instance.
When querying in the SQL editor, all the data runs well and there are no problems.
However, when viewing the data model / databases - the tables and schemas lists are all empty. I've hit the manual sync button as well, but nothing has helped.
The size of the database that needs to be loaded is under 1GB, so I'd be surprised if it's a size issue.
There's 3 different schemas that I expect to show up.
hi @flamber
thanks for the reply. I've checked the link and tried the suggestions. I am already running an SQL query and visualisation, which has been updating as new data comes into the tables. I still don't see the schemas and tables, however. I've checked the logs and the manual sync request is finalised very quickly.
Here is the diagnostic info, I hope it helps. Thank you
[a53fb094-aa7a-48db-bf03-e607a58eb614] 2021-12-01T12:58:15+00:00 DEBUG metabase.server.middleware.log POST /api/database/2/sync_schema 200 1.7 ms (1 DB calls) App DB connections: 0/13 Jetty threads: 4/50 (3 idle, 0 queued) (108 total active threads) Queries in flight: 0 (0 queued)
[a53fb094-aa7a-48db-bf03-e607a58eb614] 2021-12-01T12:58:15+00:00 INFO metabase.sync.util STARTING: Sync metadata for mysql Database 2 'awsfree'
[a53fb094-aa7a-48db-bf03-e607a58eb614] 2021-12-01T12:58:15+00:00 INFO metabase.sync.util STARTING: step 'sync-timezone' for mysql Database 2 'awsfree'
[a53fb094-aa7a-48db-bf03-e607a58eb614] 2021-12-01T12:58:15+00:00 INFO metabase.sync.util FINISHED: step 'sync-timezone' for mysql Database 2 'awsfree' (2.9 ms)
[a53fb094-aa7a-48db-bf03-e607a58eb614] 2021-12-01T12:58:15+00:00 INFO metabase.sync.util STARTING: step 'sync-tables' for mysql Database 2 'awsfree'
[a53fb094-aa7a-48db-bf03-e607a58eb614] 2021-12-01T12:58:15+00:00 INFO metabase.sync.util FINISHED: step 'sync-tables' for mysql Database 2 'awsfree' (5.2 ms)
[a53fb094-aa7a-48db-bf03-e607a58eb614] 2021-12-01T12:58:15+00:00 INFO metabase.sync.util STARTING: step 'sync-fields' for mysql Database 2 'awsfree'
[a53fb094-aa7a-48db-bf03-e607a58eb614] 2021-12-01T12:58:15+00:00 INFO metabase.sync.util FINISHED: step 'sync-fields' for mysql Database 2 'awsfree' (826.6 µs)
[a53fb094-aa7a-48db-bf03-e607a58eb614] 2021-12-01T12:58:15+00:00 INFO metabase.sync.util FINISHED: step 'sync-fks' for mysql Database 2 'awsfree' (681.5 µs)
[a53fb094-aa7a-48db-bf03-e607a58eb614] 2021-12-01T12:58:15+00:00 INFO metabase.sync.util STARTING: step 'sync-fks' for mysql Database 2 'awsfree'
[a53fb094-aa7a-48db-bf03-e607a58eb614] 2021-12-01T12:58:15+00:00 INFO metabase.sync.util STARTING: step 'sync-metabase-metadata' for mysql Database 2 'awsfree'
[a53fb094-aa7a-48db-bf03-e607a58eb614] 2021-12-01T12:58:15+00:00 INFO metabase.sync.util FINISHED: step 'sync-metabase-metadata' for mysql Database 2 'awsfree' (3.7 ms)
[a53fb094-aa7a-48db-bf03-e607a58eb614] 2021-12-01T12:58:15+00:00 INFO metabase.sync.util FINISHED: Sync metadata for mysql Database 2 'awsfree' (30.2 ms)
[a53fb094-aa7a-48db-bf03-e607a58eb614] 2021-12-01T12:58:15+00:00 INFO metabase.sync.util STARTING: Analyze data for mysql Database 2 'awsfree'
[a53fb094-aa7a-48db-bf03-e607a58eb614] 2021-12-01T12:58:15+00:00 INFO metabase.sync.util FINISHED: step 'fingerprint-fields' for mysql Database 2 'awsfree' (480.8 µs)
[a53fb094-aa7a-48db-bf03-e607a58eb614] 2021-12-01T12:58:15+00:00 INFO metabase.sync.util STARTING: step 'fingerprint-fields' for mysql Database 2 'awsfree'
[a53fb094-aa7a-48db-bf03-e607a58eb614] 2021-12-01T12:58:15+00:00 INFO metabase.sync.util FINISHED: step 'classify-fields' for mysql Database 2 'awsfree' (143.2 µs)
[a53fb094-aa7a-48db-bf03-e607a58eb614] 2021-12-01T12:58:15+00:00 INFO metabase.sync.util STARTING: step 'classify-fields' for mysql Database 2 'awsfree'
[a53fb094-aa7a-48db-bf03-e607a58eb614] 2021-12-01T12:58:15+00:00 INFO metabase.sync.util FINISHED: step 'classify-tables' for mysql Database 2 'awsfree' (159.6 µs)
[a53fb094-aa7a-48db-bf03-e607a58eb614] 2021-12-01T12:58:15+00:00 INFO metabase.sync.util STARTING: step 'classify-tables' for mysql Database 2 'awsfree'
[a53fb094-aa7a-48db-bf03-e607a58eb614] 2021-12-01T12:58:15+00:00 INFO metabase.sync.util FINISHED: Analyze data for mysql Database 2 'awsfree' (6.1 ms)
@simeon Which version of MySQL is it? Seems like you'll need to enable debug logging:
JAR - example, expecting MB_DB_* variables are already used otherwise include those as well:
@flamber managed to identify the issue. Within MySQL, 'schema' represents a different thing. When prompted to input the database name if you add the 'MySQL schema', all the tables will correctly show up.
Hopefully this resolves the issue for anyone else connecting to a MySQL dataset.