all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* 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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.