简体   繁体   English

Perl:是否可以在没有安装Mysql的情况下安装Mysql模块?

[英]Perl: Is it possible to install Mysql module without having Mysql installation?

I'm trying to install the Mysql module on my development machine but it seems to want a local Mysql installation before it will install. 我正在尝试在我的开发机器上安装Mysql模块,但它似乎想在安装之前安装本地Mysql。

Is there a work around? 有工作吗?

I don't need or want a local installation of Mysql, I'm querying a network machine with the installation. 我不需要或想要本地安装Mysql,我正在使用安装查询网络机器。

DBD::mysql is a wrapper around the MySQL client libraries. DBD::mysql是MySQL客户端库的包装器。 You will at least need to install a client, just like you would need to a client to connect to a remove MySQL server anyway. 您至少需要安装客户端,就像您需要客户端连接到删除MySQL服务器一样。

You don't specify what system you're on or how you are trying to install DBD::mysql. 您没有指定您正在使用的系统或您尝试安装DBD :: mysql的方式。 You'll need the client libraries (and if you're installing from CPAN - the source of the client libraries) but you should not need MySQL Server. 您将需要客户端库(如果您从CPAN安装 - 客户端库的源代码),但您不需要MySQL服务器。 If on a linux the mysql-server package is a dependency of DBD::mysql, it would be a bug. 如果在linux上mysql-server包是DBD :: mysql的依赖项,那将是一个bug。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM