Home > Backend Development > PHP Tutorial > How to remotely connect to Mysql database?_PHP tutorial

How to remotely connect to Mysql database?_PHP tutorial

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-07-13 10:53:35
Original
816 people have browsed it

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");

www.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...
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template