all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: jungbin@gmail.com
To: help-gnu-emacs@gnu.org
Subject: Re: Prompt for a Port Number when using sql-mysql
Date: Tue, 19 Aug 2008 15:19:37 -0700 (PDT)	[thread overview]
Message-ID: <71b243ac-468e-4fdb-afd4-71e27a81bf88@m36g2000hse.googlegroups.com> (raw)
In-Reply-To: c5b8b7dd-6caf-4df3-8ab9-9ef7b14816be@a3g2000prm.googlegroups.com

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.


      parent reply	other threads:[~2008-08-19 22:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=71b243ac-468e-4fdb-afd4-71e27a81bf88@m36g2000hse.googlegroups.com \
    --to=jungbin@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.
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.