MAMP - 在线存储数据库?

发布于 2024-09-28 05:21:24 字数 146 浏览 0 评论 0原文

我想知道使用MAMP是否可以使数据库在线?

我正在工作和家庭之间本地开发几个站点,最初认为我可以使用 mamp 来存储或指向我的外部驱动器。没有布埃诺。

所以我想我仍然可以在工作或在家运行 mamp 指向我的外部驱动器,但它要连接的数据库将在线?

I am wondering if it is possible while using MAMP to have the database online?

I am developing a couple sites locally between work and home, and initially thought I could get mamp to store or point to my external drive. No bueno.

SO am thinking I can still run mamp at work or at home pointing to my external drive but the DB that it would connect to would be online?

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

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

发布评论

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

评论(1

耳根太软 2024-10-05 05:21:24

根据您的系统,您可以设置通往另一台运行数据库的计算机的 SSH 隧道。 SSH 隧道允许您将计算机上的端口(例如 MAMP 默认情况下用于 MySQL 端口的端口 8889)定向到另一台计算机上的端口。如果设置正确,您可以告诉 MAMP 您正在使用本地端口 8889,但 ssh 会将所有流量定向到远程计算机的 mySQL 端口,您可以在该端口运行数据库。这个链接有一个关于如何执行此操作的很好的教程,前提是您有ssh已安装。

Depending on your system you could set up an SSH tunnel to another computer running the database. SSH tunneling allows you to direct a port on your computer (For example port 8889 which MAMP uses by default for the MySQL port) to a port on another computer. If set up correctly, you tell MAMP that you are using local port 8889, but ssh will then direct all traffic to the remote computer's mySQL port which is where you could run your database. This link has a good tutorial on how to do this provided that you have ssh installed.

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