MySQL can be called remotely, but the user must have remote calling permissions.
When adding a user, there is a host option, which is any host or locahost. You select any host, so that you can call it remotely.
mysql_pconnect("192.168.0.2:3306","root","password");
http://www.bkjia.com/PHPjc/632397.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/632397.htmlTechArticleMySQL can be called remotely, but the user must have remote calling permission. When adding users, there is a host option, which is any host or locahost. You choose any host. In this way, you...
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn