escape mysql prompt without quitting?

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?...


Go Back   Usenet Forums > Database Forums > MySQL Database

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-05-2007
stephen.durkin@gmail.com
 
Posts: n/a
Default escape mysql prompt without quitting?

is it possible to escape from the mysql command prompt to the shell
without quitting altogether?

Reply With Quote
  #2 (permalink)  
Old 03-05-2007
Brian Wakem
 
Posts: n/a
Default Re: escape mysql prompt without quitting?

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
Reply With Quote
  #3 (permalink)  
Old 03-05-2007
stephen.durkin@gmail.com
 
Posts: n/a
Default Re: escape mysql prompt without quitting?

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

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:34 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0