Mac上的Emacs和MySQL [英] Emacs and MySQL on Mac

查看:85
本文介绍了Mac上的Emacs和MySQL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试过使用sql-mysql模式,但emacs无法找到文件/目录mysql。但是,我可以从终端访问它。如何将emacs中的mysql指向/ usr / local / mysql / bin / mysql?

I tried using the sql-mysql mode but emacs is unable to find the file/directory mysql. However, I can access it from the terminal. How do I point mysql in emacs to /usr/local/mysql/bin/mysql ?

推荐答案

(setq sql-mysql-program/ path / to / your / mysql)

(setq sql-用户mysql用户)

(setq sql-passwordpassword)

(setq sql-servermysql-server)

(setq sql-mysql-options可选命令行选项)

提供一些值这些变量通过您的 .emacs 应该可以帮助您解决问题。

supplying some values to these variables through your .emacs should help your situation.

这篇关于Mac上的Emacs和MySQL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆