使用python连接MySQL,无需安装Mysql

发布于 2024-12-27 12:28:11 字数 236 浏览 3 评论 0原文

感谢您阅读本文。

我正在开发一个涉及 python 数据库同步的项目。远程机器是一台带有 MySQL 的 Linux 机器。客户不希望我安装除项目所需的 python 和 python 库之外的任何东西。尽管它是远程计算机,但是否可以在不安装 MySQL 的情况下连接到 MySQL。

或者建议我一些解决方法。我不介意保留可执行文件,但我不想安装任何东西,需要一些解决方法。如果这个库像 MySQLdb 一样工作,我会很高兴。

Thanks for reading this.

I am working on a project that involves database sync with python. The remote machine is a linux machine with MySQL. The client does not want me to install anything except python and python libraries required for the project. Is it possible to connect to MySQL without installing MySQL though it is a remote machine.

Or suggest me some workaround. I do not mind keeping the executable but I do not want anything to be installed, some workaround. I would love it if the library works just like MySQLdb does.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

恍梦境° 2025-01-03 12:28:11

您可能对 PyMySql 感兴趣。我没有自己测试,但我读到它不需要在本地计算机上安装 MySql。

You might be interested in PyMySql. I didn't test myself but I read that it doesn't require MySql to be installed on the local machine.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文