This is a discussion on escape mysql prompt without quitting? within the MySQL Database forums, part of the Database Forums category; is it possible to escape from the mysql command prompt to the shell without quitting altogether?...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
stephen.durkin@gmail.com wrote:
> is it possible to escape from the mysql command prompt to the shell > without quitting altogether? I don't think so, but you can run shell commands from the mysql prompt using \! For example: mysql> \! uptime 22:28:15 up 160 days, 15:38, 5 users, load average: 0.47, 0.51, 0.50 mysql> \! perl -e 'print "Hello, World!\n"' Hello, World! -- Brian Wakem Email: http://homepage.ntlworld.com/b.wakem/myemail.png |
|
|||
|
On Mar 5, 2:30 pm, Brian Wakem <n...@email.com> wrote:
> stephen.dur...@gmail.com wrote: > > is it possible to escape from the mysql command prompt to the shell > > without quitting altogether? > > I don't think so, but you can run shell commands from the mysql prompt using > \! > > For example: > > mysql> \! uptime > 22:28:15 up 160 days, 15:38, 5 users, load average: 0.47, 0.51, 0.50 > mysql> \! perl -e 'print "Hello, World!\n"' > Hello, World! > > -- > Brian Wakem > Email:http://homepage.ntlworld.com/b.wakem/myemail.png thank you...furthermore, try this... mysql> \! bash |