From: "Juanma Barranquero" <lekktu@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: MySQL exits abnormally in Emacs
Date: Fri, 15 Dec 2006 19:16:55 +0100 [thread overview]
Message-ID: <f7ccd24b0612151016j7ead5b4dw35a709ff80b9a7c0@mail.gmail.com> (raw)
In-Reply-To: <BAY128-F12117D879D4693A79D0356DAD50@phx.gbl>
On 12/14/06, Corey Foote <coreyfoote@hotmail.com> wrote:
> I type my query and press C-c C-c and get the following error:
>
> select now(); C-c C-cnow()
> 2006-12-14 14:11:25
>
> Process SQL exited abnormally with code 1
Where do you type C-c C-c? If it is in the process buffer (the one
where mysql is running), C-c C-c is bound to
`comint-interrupt-subjob', so it's no wonder that it gets interrupted.
In that buffer it's enough to press ENTER after queries:
select count(*) from mysql.user;
+----------+
| count(*) |
+----------+
| 5 |
+----------+
C-c C-c (`sql-send-paragraph') is used from a SQL buffer that you
associate with the inferior process (the subprocess) that is running
mysql. For example, create a buffer in SQL mode (either setting it
with "M-x sql-mode" or visiting a .SQL file), and then do "M-x
sql-product-interactive", or choose the option "Start SQLi Session" in
the SQL menu. That way you'll have a running mysql client in a buffer
associated with your SQL source buffer. Then you can write SQL code in
your source buffer and send it to the inferior process with C-c C-c.
Take a look at the file lisp/progmodes/sql.el.
/L/e/k/t/u
next prev parent reply other threads:[~2006-12-15 18:16 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-14 21:11 MySQL exits abnormally in Emacs Corey Foote
2006-12-15 18:16 ` Juanma Barranquero [this message]
2006-12-16 3:37 ` Corey Foote
2006-12-16 3:42 ` Juanma Barranquero
2006-12-16 4:28 ` Corey Foote
2006-12-16 4:44 ` Juanma Barranquero
[not found] <mailman.1953.1166243333.2155.help-gnu-emacs@gnu.org>
2006-12-16 8:26 ` Tim X
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f7ccd24b0612151016j7ead5b4dw35a709ff80b9a7c0@mail.gmail.com \
--to=lekktu@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).