#2002 - 连接超时 服务器没有响应(或本地服务器的套接字配置不正确)

#2002 - Connection timed out The server is not responding (or the local server's socket is not correctly configured)

提问人:Àbu Màher 提问时间:11/10/2023 最后编辑:brombeerÀbu Màher 更新时间:11/10/2023 访问量:52

问:

我正在尝试在 Replit 上制作 MySQLphpMyAdmin,但当我尝试从 Node.JSphpMyAdmin.co 或任何其他主机连接到它时出现错误,并且出现错误“#2002 - 连接超时服务器没有响应(或本地服务器的套接字未正确配置)./mysqli_real_connect(): (HY000/2002): 连接超时完整信息 我如何将数据填充到 phpMyAdmin.co- 在服务器输入中,我输入项目的域,例如:(phpmyadmin.myusername.repl.co)PHP version: 8.0.16 (cli)phpMyAdmin version: 5.2.1

- config.inc.php文件(之前是config.sample.inc.php):

$cfg['Servers'][$i]['auth_type'] = 'cookie';

/* Server parameters */

$cfg['Servers'][$i]['host'] = '0.0.0.0';

$cfg['Servers'][$i]['port'] = '3306';

$cfg['Servers'][$i]['connect_type'] = 'tcp';

$cfg['Servers'][$i]['compress'] = false;

$cfg['Servers'][$i]['AllowNoPassword'] = false;

- my.cnf 文件:

[server]
datadir = /home/runner/phpmyadminserver/sql_data
user = runner
bind-address = 0.0.0.0
port = 3306
skip-name-resolve
skip-networking = 0
pid-file = mysqld.pid
log-error = error.log
general_log_file = general.log
general_log = 1
disable-log-bin = 1
innodb-log-file-size = 4194304
lower_case_table_names = 1
default-storage-engine = InnoDB
[mysql]
socket = /var/run/mysqld/mysqld.sock

我正在尝试连接,但它不接受连接。

php mysql mysqli phpmyadmin

评论


答: 暂无答案