更新时间:2023-01-31 09:00:52
如果您的数据库和应用程序位于同一台服务器上,请使用 $中的"locahost" dbhost .
If your database and application is on same server then use "locahost" in $dbhost.
并且如果您的数据库和应用程序位于不同的服务器上,则需要使用 $ dbhost 中的 IP地址或主机名和数据库用户应该添加到具有必需特权的数据库服务器上.
And if your database and application is on different servers then you need to use IP address or hostname in $dbhost and the database user should be added on database server provided with required privileges.