Function: sql-comint-mysql
sql-comint-mysql is a byte-compiled function defined in sql.el.gz.
Signature
(sql-comint-mysql PRODUCT OPTIONS &optional BUF-NAME)
Documentation
Create comint buffer and connect to MySQL.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/sql.el.gz
(defun sql-comint-mysql (product options &optional buf-name)
"Create comint buffer and connect to MySQL."
;; Put all parameters to the program (if defined) in a list and call
;; make-comint.
(let ((params
(append
options
(if (not (string= "" sql-user))
(list (concat "--user=" sql-user)))
(if (not (string= "" sql-password))
(list (concat "--password=" sql-password)))
(if (not (= 0 sql-port))
(list (concat "--port=" (number-to-string sql-port))))
(if (not (string= "" sql-server))
(list (concat "--host=" sql-server)))
(if (not (string= "" sql-database))
(list sql-database)))))
(sql-comint product params buf-name)))