* no output in sql mode of GNU Emacs on WinXP
@ 2006-08-12 7:52 sparkw
2006-08-18 10:49 ` Koocyton
0 siblings, 1 reply; 3+ messages in thread
From: sparkw @ 2006-08-12 7:52 UTC (permalink / raw)
I am using WinXP, GNU Emacs 23, MySQL 5.
When I start a mysql process with `sql-mysql' in emacs, no output is
displayed in the buffer until I quit or kill the process.
After I add the following line into the initialization file of emacs,
(setq sql-mysql-options '("-C" "-t" "-f" "-n"))
the output comes out, but the status line still doesn't show up. (e.g.
1
row in set (0.02 sec))
What's worse, I try to log the session with `\T logfile', but no
logfile
is generated. ( I check that with Google Desktop)
Thanks for your help.
Jieqi
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: no output in sql mode of GNU Emacs on WinXP
2006-08-12 7:52 no output in sql mode of GNU Emacs on WinXP sparkw
@ 2006-08-18 10:49 ` Koocyton
2006-08-18 15:54 ` sparkw
0 siblings, 1 reply; 3+ messages in thread
From: Koocyton @ 2006-08-18 10:49 UTC (permalink / raw)
;; set MySQL
(setq sql-mysql-program "d:/mysoft/mysql5/bin/mysql")
(setq sql-mysql-options '("-C" "-t" "-f" "-n" "--port=22222"))
;; truncate lines for long tables
(add-hook 'sql-interactive-mode-hook
(function (lambda ()
(setq truncate-lines t))))
(setq auto-mode-alist
(append
(list
;; insert entries for other modes here if needed.
(cons "\.sq$" 'sql-mode))
auto-mode-alist))
(add-hook 'sql-mode-hook 'font-lock-mode)
"sparkw" <jieqiwang@gmail.com>
??????:1155369154.208955.98080@i42g2000cwa.googlegroups.com...
>I am using WinXP, GNU Emacs 23, MySQL 5.
> When I start a mysql process with `sql-mysql' in emacs, no output is
> displayed in the buffer until I quit or kill the process.
>
> After I add the following line into the initialization file of emacs,
>
>
> (setq sql-mysql-options '("-C" "-t" "-f" "-n"))
>
> the output comes out, but the status line still doesn't show up. (e.g.
> 1
> row in set (0.02 sec))
>
> What's worse, I try to log the session with `\T logfile', but no
> logfile
> is generated. ( I check that with Google Desktop)
>
> Thanks for your help.
>
> Jieqi
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: no output in sql mode of GNU Emacs on WinXP
2006-08-18 10:49 ` Koocyton
@ 2006-08-18 15:54 ` sparkw
0 siblings, 0 replies; 3+ messages in thread
From: sparkw @ 2006-08-18 15:54 UTC (permalink / raw)
Koocyton wrote:
> ;; set MySQL
> (setq sql-mysql-program "d:/mysoft/mysql5/bin/mysql")
> (setq sql-mysql-options '("-C" "-t" "-f" "-n" "--port=22222"))
when I added "--port=22222", I can't connect to the local mysql server
which is using the default 3306 port. The erros message is
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost'
(10061)
Process SQL exited abnormally with code 1
> ;; truncate lines for long tables
> (add-hook 'sql-interactive-mode-hook
> (function (lambda ()
> (setq truncate-lines t))))
> (setq auto-mode-alist
> (append
> (list
> ;; insert entries for other modes here if needed.
> (cons "\.sq$" 'sql-mode))
> auto-mode-alist))
> (add-hook 'sql-mode-hook 'font-lock-mode)
>
> "sparkw" <jieqiwang@gmail.com>
> ??????:1155369154.208955.98080@i42g2000cwa.googlegroups.com...
> >I am using WinXP, GNU Emacs 23, MySQL 5.
> > When I start a mysql process with `sql-mysql' in emacs, no output is
> > displayed in the buffer until I quit or kill the process.
> >
> > After I add the following line into the initialization file of emacs,
> >
> >
> > (setq sql-mysql-options '("-C" "-t" "-f" "-n"))
> >
> > the output comes out, but the status line still doesn't show up. (e.g.
> > 1
> > row in set (0.02 sec))
> >
> > What's worse, I try to log the session with `\T logfile', but no
> > logfile
> > is generated. ( I check that with Google Desktop)
> >
> > Thanks for your help.
> >
> > Jieqi
> >
> >
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-08-18 15:54 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-12 7:52 no output in sql mode of GNU Emacs on WinXP sparkw
2006-08-18 10:49 ` Koocyton
2006-08-18 15:54 ` sparkw
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).