php和mysql之间的连接操作依靠的是”mysqli“
<?php $conn = mysqli_connect("127.0.0.1","root","926498"); if(! $conn ) { echo "连接失败".mysqli_connect_error(); } else { echo "连接成功"; } ?>至此!PHP+Nginx+MySQL环境完成了基本的搭建!
php和mysql之间的连接操作依靠的是”mysqli“
<?php $conn = mysqli_connect("127.0.0.1","root","926498"); if(! $conn ) { echo "连接失败".mysqli_connect_error(); } else { echo "连接成功"; } ?>至此!PHP+Nginx+MySQL环境完成了基本的搭建!
内容版权声明:除非注明,否则皆为本站原创文章。