MySQL 5.1 架构安装程序

发布于 2024-09-05 03:55:21 字数 139 浏览 2 评论 0 原文

我需要为 MySQL 5.1 数据库制作一个安装程序,但对于安装程序我完全是个菜鸟。

我一直在研究 NSIS 并学到了一些东西,但我真的不知道如何使用它来执行脚本。

有人有在多台计算机上安装数据库架构的经验吗?

谢谢

I need to make an installer for a MySQL 5.1 Database, but I'm totally a noob when it comes to installers.

I've been looking at NSIS and learned a little but I don't really know how to use it to just to execute a script.

Anyone out there has experience installing database schemas in multiple computers?

thanks

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

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

发布评论

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

评论(1

听,心雨的声音 2024-09-12 03:55:21

所以我没有时间弄清楚,但我制作了一个执行 mysql 脚本的批处理文件

http://dev.mysql.com/doc/refman/5.0/en/batch-mode.html

所以批处理文件有这个

cmd /c mysql -h host -u user - p < scirpt_file_in_same_folder_as_batch.sql

唯一的问题是必须设置mysql默认为环境变量路径。

要取消脚本执行,您只需在提示时不写密码即可,

希望这对其他人有帮助。

So I didn't have time to figure it out but I made a batch file that executes a mysql script

http://dev.mysql.com/doc/refman/5.0/en/batch-mode.html

so batch file had this

cmd /c mysql -h host -u user - p < scirpt_file_in_same_folder_as_batch.sql

The only problem was that mysql had to be set as enviroment variable path by default.

To cancel script execution you just dont write a password when promped

hope this helps someone out there.

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