MySQL Forums
Forum List  »  Newbie

Re: Command to automatically display a list of databases after logging in
Posted by: Peter Brawley
Date: July 06, 2015 10:35AM

An oddity of the mysql client program, to put it mildly, is that its only execute command-line option is an execute-and-exit option.

A workaround: you could write a shell script that invokes mysql with -e "show schemas" to show you the list, then invokes mysql again without that command.

Options: ReplyQuote


Subject
Written By
Posted
Re: Command to automatically display a list of databases after logging in
July 06, 2015 10:35AM


Sorry, you can't reply to this topic. It has been closed.

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.