我有Windows OS 7,并且正在运行NGINX,php 7.3和MAria DB 10.3。我试图从php连接到mysqli,但出现错误,这实际上是一个警告,但无济于事。
mysqli::__construct(): (HY000/2002): An attempt was made to access a socket in a way forbidden by its access permissions
我正在尝试使用名为“ MariaDB”的套接字进行连接。 有人可以帮忙吗?
这是my.ini文件。
[mysqld]
datadir=C:/Program Files/MariaDB 10.3/data
skip-networking
named-pipe=ON
socket=MariaDB
port=3306
innodb_buffer_pool_size=1007M
character-set-server=utf8
[client]
socket=MariaDB
protocol=pipe
plugin-dir=C:/Program Files/MariaDB 10.3/lib/plugin