Neither navicat nor phpmyadmin can link to the database. Please consult the students.

Environment: centos7, openresty,mariadb php7 (installation background: phpmyadmin is installed by yum, php is compiled and installed)
status: enter ip address to display web page information normally, sudo systemctl status mariadb is active status, but enter ip/phpmyadmin but cannot display, post your own / usr/local/openresty/nginx/conf/nginx.conf configuration:

clipboard.png

clipboard.png

clipboard.png

clipboard.png

:sudo yum phpmyadmin :

clipboard.png

php -v

PHP 7.0.28 (cli) (built: Mar 1 2018 10:03:25) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
You have new mail in /var/spool/mail/root

sudo systemctl status mariadb

clipboard.png

/var/log/nginx/error.log:

clipboard.png

http://104.131.43.152/info.php :
clipboard.png

clipboard.png

/etc/nginx/conf.d/phpMyAdmin.conf:

clipboard.png

Mar.02,2021

can't show what's going on. Is there a php environment on the server, and phpmyadmin depends on the


of the php runtime

? What about the mysql configuration? What about binding ip? What about the screenshot of the error report from phpmyadmin. Nothing?


is the command line OK? Mysql-u root-p

Menu