我从命令行运行了以下命令
C:Program FilesMySQLMySQL Server 8.0bin>mysql -u root -p and after entering the pass word I gave the below command.
mysql> status
返回以下结果:
--------------
mysql Ver 8.0.22 for Win64 on x86_64 (MySQL Community Server - GPL)
Connection id: 87
Current database:
Current user: root@localhost
SSL: Cipher in use is TLS_AES_256_GCM_SHA384
Using delimiter: ;
Server version: 8.0.22 MySQL Community Server - GPL
Protocol version: 10
Connection: localhost via TCP/IP
Server characterset: utf8mb4
Db characterset: utf8mb4
Client characterset: cp850
Conn. characterset: cp850
TCP port: 3306
Binary data as: Hexadecimal
Uptime: 2 hours 11 min 59 sec
Threads: 2 Questions: 1434 Slow queries: 0 Opens: 208 Flush tables: 3 Open tables: 129 Queries per second avg: 0.181
它显示MySQL服务器在端口3306处连接。但是,当我试图通过http://localhost:3306
打开它时,会显示一个错误,但没有显示任何内容。
访问MySQL服务器本地主机实例时出错
停止服务器并重新启动服务。
$> sudo server mysql status
$> sudo server mysql stop
$> sudo server mysql start
$> sudo /etc/init.d/mysqld status
$> sudo /etc/init.d/mysqld stop
$> sudo /etc/init.d/mysqld start