* Prompt for a Port Number when using sql-mysql
@ 2008-08-16 18:52 Cristian
2008-08-16 20:26 ` Chat
2008-08-19 22:19 ` jungbin
0 siblings, 2 replies; 3+ messages in thread
From: Cristian @ 2008-08-16 18:52 UTC (permalink / raw)
To: help-gnu-emacs
Hi. I've been using the sql-mysql function for a while to interact
with our
databases and it's worked out well. Recently a coworker set up another
database on a separate port that I need to access, but I don't know
how switch between the ports easily.
Is there a way to have sql-mysql prompt you for a port number (and use
the default if you don't specify one)?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Prompt for a Port Number when using sql-mysql
2008-08-16 18:52 Prompt for a Port Number when using sql-mysql Cristian
@ 2008-08-16 20:26 ` Chat
2008-08-19 22:19 ` jungbin
1 sibling, 0 replies; 3+ messages in thread
From: Chat @ 2008-08-16 20:26 UTC (permalink / raw)
To: help-gnu-emacs
Cristian <super.sgt.pepper@gmail.com> writes:
> Hi. I've been using the sql-mysql function for a while to interact
> with our
> databases and it's worked out well. Recently a coworker set up another
> database on a separate port that I need to access, but I don't know
> how switch between the ports easily.
>
> Is there a way to have sql-mysql prompt you for a port number (and use
> the default if you don't specify one)?
sql-mysql does not prompt for port number.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Prompt for a Port Number when using sql-mysql
2008-08-16 18:52 Prompt for a Port Number when using sql-mysql Cristian
2008-08-16 20:26 ` Chat
@ 2008-08-19 22:19 ` jungbin
1 sibling, 0 replies; 3+ messages in thread
From: jungbin @ 2008-08-19 22:19 UTC (permalink / raw)
To: help-gnu-emacs
On Aug 16, 11:52 am, Cristian <super.sgt.pep...@gmail.com> wrote:
> Hi. I've been using the sql-mysql function for a while to interact
> with our
> databases and it's worked out well. Recently a coworker set up another
> database on a separate port that I need to access, but I don't know
> how switch between the ports easily.
>
> Is there a way to have sql-mysql prompt you for a port number (and use
> the default if you don't specify one)?
Try to add follwoing line in your dot emacs file
(setq sql-mysql-options '("-C" "-t" "-f" "-n" "--
port=your_port_number"))
Let me know if it works. I think I got it from some where on the net.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-08-19 22:19 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-16 18:52 Prompt for a Port Number when using sql-mysql Cristian
2008-08-16 20:26 ` Chat
2008-08-19 22:19 ` jungbin
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).