Re: How to list databases from Linux command list?
Posted by: Peter Brawley
Date: May 18, 2020 04:14PM

For user root ...

mysql -uroot -p -e 'show databases;'


or if you want them on one logical line ...

mysql -uroot -p -e 'select group_concat(schema_name) from information_schema.schemata;'

Options: ReplyQuote


Subject
Written By
Posted
Re: How to list databases from Linux command list?
May 18, 2020 04:14PM


Sorry, only registered users may post in this forum.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.