all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Chris Van Dusen <cavandusen@gmail.com>
To: Frank Stutzman <stutzman@cat2.kjsl.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: sql-completion.el messing with sql-mysql?
Date: Thu, 20 Feb 2014 05:06:30 -0600	[thread overview]
Message-ID: <AB51249D-ACC6-452F-9DED-E80655CEFF61@gmail.com> (raw)
In-Reply-To: <le3fqc$24ga$1@news.kjsl.com>


Frank,

On Feb 19, 2014, at 5:47 PM, Frank Stutzman <stutzman@cat2.kjsl.com> wrote:

> Has anyone else had problems with sql-completion.el messing with sql-mysql 
> mode  am I doing something dumb?
> 
> I'm using GNU Emacs 24.3.1.  If I have no init file (--no-init) when I start
> it, I have no problems with going into sql-mode and opening up a SQLi 
> connection to my remote database.  Works great.
> 
> However, if I install sql-completion.el (version 1.1.1.1) and put:
> 
>   (require 'mysql)
>   (require 'sql-completion)
>   (setq sql-interactive-mode-hook
>       (lambda ()
>       (define-key sql-interactive-mode-map "\t" 'comint-dynamic-complete)
>       (sql-mysql-completion-init)))
> 
> Into my .emacs file (that bit is exactly what the is sql-completion.el file
> tells you to do), do a 'M-x sql-mysql' and suddenly things start breaking.  
> Namely, right after I enter the login information I get an error saying:
> 
>   "if: ERROR 2002 (HY000): Can't connect to local MySQL server through 
>    socket '/var/run/mysqld/mysqld.sock' (13)"
> 

I believe this is because sql-completion.el assumes that MySQL is running on
localhost.  See the function mysql-shell-query.


> Oddly enough the *SQL* buffer is created and is functioning, and I can set 
> 'sql-set-sqli-buffer' to it, but if I try to 'c-c c-r' a snippet of
> sql code, I get a 'Wrong type arguement: processp, nil'
> 
> 

This may be a separate issue since you do have a running process.
> 
> -- 
> Frank Stutzman
> 
> 

hth,
Chris.


  reply	other threads:[~2014-02-20 11:06 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-19 23:47 sql-completion.el messing with sql-mysql? Frank Stutzman
2014-02-20 11:06 ` Chris Van Dusen [this message]
     [not found] ` <mailman.15610.1392894407.10748.help-gnu-emacs@gnu.org>
2014-02-20 16:10   ` Frank Stutzman

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=AB51249D-ACC6-452F-9DED-E80655CEFF61@gmail.com \
    --to=cavandusen@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=stutzman@cat2.kjsl.com \
    /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.