Run this command:

mysql> show databases;

To use nextcloud DB:

mysql> use nextcloud;

To list tables or nextcloud DB:

mysql> show tables;