in reply to Re: Does DBI::Shell work for you?
in thread Does DBI::Shell work for you?
Supplying DSN, user and password on the command line as in
brings up a list of databases, selecting one by number asks for the password again (tsk, tsk!):dbish dbi:mysql root ""
which, after confirming it's empty, brings up a shell accepting SQL commands and executing them after entering a semicolon. Very similar to the mysql command line utility.Connecting to 'DBI:mysql:sometable' as 'root'... Password for root ( not echoed to screen):
But how would I get back out to the previous view, to get the list of databases again? Are there ways other than the native SQL commands (show tables; show columns from tablename) to display the schema(s)? Can I load data into variables and look at them? Guess I'm just confused with the interface. I was expecting more than what a native SQL client provides, guess it's somewhere hidden in there, I'm just not sure how to submit shell commands other than SQL statements, executed as soon as the semicolon gets entered.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Does DBI::Shell work for you?
by jZed (Prior) on Mar 05, 2005 at 21:01 UTC | |
by saintmike (Vicar) on Mar 05, 2005 at 22:42 UTC |
In Section
Seekers of Perl Wisdom