第一种解决方案:
在cmd中输入启动命令后提示这个:
C:\web\mysql-8.0.17-winx64\bin>net start mysql
服务没有响应控制功能。
输入如下命令:
C:\web\mysql-8.0.17-winx64\bin>mysqld --console
2019-08-22T11:13:12.118311Z 0 [System] [MY-010116] [Server] C:\web\mysql-8.0.17-
winx64\bin\mysqld.exe (mysqld 8.0.17) starting as process 4200
2019-08-22T11:13:12.125312Z 0 [Warning] [MY-013242] [Server] --character-set-ser
ver: 'utf8' is currently an alias for the character set UTF8MB3, but will be an
alias for UTF8MB4 in a future release. Please consider using UTF8MB4 in order to
be unambiguous.
2019-08-22T11:13:16.860582Z 0 [Warning] [MY-010068] [Server] CA certificate ca.p
em is self signed.
2019-08-22T11:13:17.482618Z 0 [System] [MY-010931] [Server] C:\web\mysql-8.0.17-
winx64\bin\mysqld.exe: ready for connections. Version: '8.0.17' socket: '' por
t: 3306 MySQL Community Server - GPL.
2019-08-22T11:13:17.571623Z 0 [System] [MY-011323] [Server] X Plugin ready for c
onnections. Bind-address: '::' port: 33060
看到这些提示后不要关闭这个窗口,另外再开一个命令窗口:
Microsoft Windows [版本 6.1.7601]
版权所有 (c) 2009 Microsoft Corporation。保留所有权利。
C:\Users\Administrator>cd c:\web\mysql-8.0.17-winx64\bin
c:\web\mysql-8.0.17-winx64\bin>mysql -u root -p
Enter password: ************
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 8
Server version: 8.0.17
Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
第二种解决方案(推荐):
下载微软常用运行库合集,安装之后,重启电脑,就不会有这个提示了