对不起,我想问一个常见问题,但我对所有现有的答案都没有用。 CENTOS 7上的全新设置 MySQL的8 phpmyadmin 4.4.15.10 PHP 5.4.16
默认配置设置
$cfg['Servers'][$i]['host'] = 'localhost'; // MySQL hostname or IP address
$cfg['Servers'][$i]['port'] = ''; // MySQL port - leave blank for default port
$cfg['Servers'][$i]['socket'] = ''; // Path to the socket - leave blank for default socket
$cfg['Servers'][$i]['connect_type'] = 'tcp'; // How to connect to MySQL server ('tcp' or 'socket')
$cfg['Servers'][$i]['extension'] = 'mysqli'; // The php MySQL extension to use ('mysql' or 'mysqli')
$cfg['Servers'][$i]['compress'] = FALSE; // Use compressed protocol for the MySQL connection
// (requires PHP >= 4.3.0)
$cfg['Servers'][$i]['controluser'] = ''; // MySQL control user settings
// (this user must have read-only
$cfg['Servers'][$i]['controlpass'] = ''; // access to the "mysql/user"
// and "mysql/db" tables).
// The controluser is also
// used for all relational
// features (pmadb)
$cfg['Servers'][$i]['auth_type'] = 'cookie'; // Authentication method (config, http or cookie based)?
MySQL启动日志
2020-08-08T22:17:47.303766Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.21) starting as process 12712
2020-08-08T22:17:47.315318Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2020-08-08T22:17:48.285337Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
2020-08-08T22:17:48.507535Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060, socket: /var/run/mysqld/mysqlx.sock
2020-08-08T22:17:48.840424Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
2020-08-08T22:17:48.841150Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.
我已经从命令行创建了一个新的mysqluser并在CLI上验证了登录名。无论如何,浏览器都会显示“无法登录MySQL服务器”。
我尝试将端口更改为33060,将主机更改为127.0.0.1 我很茫然,怀疑我缺少一些简单的东西。有什么建议? 预先感谢。
答案 0 :(得分:0)
我在Manjaro遇到了同样的问题。安装网络工具为我修复了它。 你有这个吗? https://centos.pkgs.org/7/centos-x86_64/net-tools-2.0-0.25.20131004git.el7.x86_64.rpm.html