I can't remember the ID and name of Maria db.

0

I'm using an instance as an Amazon LightSail Ubuntu. But I can't remember Maria db's name and ID. I only remember the password. Please tell me how to check the db name and ID.

질문됨 일 년 전183회 조회
1개 답변
1
수락된 답변

Once you're logged into the MariaDB command line, you can list all databases with the following SQL command:

SHOW DATABASES;

This will show you a list of all the databases on your MariaDB instance.

To list all users, you can use the following SQL command:

SELECT User,Host FROM mysql.user;

This will show you a list of all the user IDs and the hosts they're associated with.

profile picture
전문가
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠