linux mysql-server找不到mysql_config [英] linux mysql-server can't find mysql_config

查看:308
本文介绍了linux mysql-server找不到mysql_config的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个运行(生产)mysql实例在我的linux服务器(ubuntu-10.10),但我找不到我的mysql_config文件。

I have a running (in production) mysql instance on my linux server (ubuntu-10.10) however I cannot find my mysql_config file.

命令和输出:

~$ locate mysql_config
~$

我听说/读取我需要安装libmysqlclient-dev软件包使用mysql_config但我不想打破我当前的生产实例。我想确保安装此开发包不会对我当前的mysql数据库有不利影响。

I've heard/read that I need the libmysqlclient-dev package installed to be able to use mysql_config but I don't want to break my current production instance. I want to make sure installing this dev package is not going to have adverse effects on my current mysql databases.

此外,在哪里可以找到libmysqlclient-dev的源代码下载来手动安装?

Furthermore, where can I find the source download for libmysqlclient-dev to install manually? In my current situation (behind corporate proxy) I am not permitted to use apt-get's.

UPDATE

这是源于尝试从源代码安装python-MySQLdb。 setup.py文件需要mysql_config路径,并且在尝试使用该文件以外的任何内容时继续断开。

this is stemming from attempting to install python-MySQLdb from source. the setup.py file is requiring the mysql_config path and continues to break when trying to use anything but that file.

推荐答案

mysql_config可执行文件如果你从预编译的二进制文件安装它是默认位于mysql服务器安装的bin目录。但是如果你使用apt-get安装它可能不存在于你的服务器

mysql_config executable is by default located in the bin directory of the mysql server installation if you install it from precompiled binaries.But if you install it using apt-get it may not exist on your server

try:

sudo apt-get install libmysqlclient-dev

sudo apt-get install libmysqlclient-dev

这篇关于linux mysql-server找不到mysql_config的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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