更新时间:2022-11-24 18:38:06
之所以发生这种情况,是因为您在计算机上本地运行MySQL(通过使用 127.0.0.1
给出).换句话说,您有一个进程/程序(MySQL)在 only 计算机的后台运行.为了使您的朋友能够访问此数据库,您需要执行以下两项操作之一:
This is happening because you are running MySQL locally on your computer (as given by your use of 127.0.0.1
). In other words, you have a process/program (MySQL) running in the background of only your computer. For your friend to have access to this database, you will need to either of two things:
mysql://website.com:33060/path/to/your/database
127.0.0.1
>方法2是最简单的.您可以在线使用免费服务来创建您和您的朋友可以访问的MySQL服务器.
Method 2 is the easiest. You can use free services online to create a MySQL server that you and your friend can access.