问题遇到的现象和发生背景
如下:我的数据库
show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| test |
| zabbix |
+--------------------+
3 rows in set (0.00 sec)
MariaDB [(none)]>
下面是我的php连接mysql方式
问题相关代码,请勿粘贴截图
运行结果及报错内容
curl http://172.16.66.142/ -I
HTTP/1.0 500 Internal Server Error
Date: Tue, 15 Mar 2022 16:54:07 GMT
Server: Apache/2.4.44 (KylinSecOS) PHP/5.4.16
X-Powered-By: PHP/5.4.16
Connection: close
Content-Type: text/html; charset=UTF-8