第一次出错:

出现如下错误:

正确做法如下:

显示:yes,说明连接成功!

注意事项:
$db=new mysqli('localhost','root','','test',3307);
第一个:主机名:localhost;(Apache是:localhost:88,但是主机名:localhost)
第二个:数据库用户名;
第三个:数据库密码;
第四个:数据库名称;
第五个:MariaDB数据库端口:3307(必须填)【Mysql是3306,MariaDB 是3307】

出现如下错误:
本文标题:PHPStorm连接WampServer数据库MariaDB基本
本文链接:https://www.haomeiwen.com/subject/aymgzqtx.html
网友评论