mysql8.0.17 win7免安装版

下载地址https://dev.mysql.com/downloads/mysql/
mysql8.0.17 win7免安装版_第1张图片
解压后新建data
!!!不需要my.ini

安装mysql

D:\tools\mysql-8.0.17-winx64\bin>mysqld --initialize-insecure

D:\tools\mysql-8.0.17-winx64\bin>mysql -u root -p
Enter password:
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)

D:\tools\mysql-8.0.17-winx64\bin>net start mysql
服务名无效。

请键入 NET HELPMSG 2185 以获得更多的帮助。


D:\tools\mysql-8.0.17-winx64\bin>mysqld --install
Service successfully installed.

D:\tools\mysql-8.0.17-winx64\bin>net start mysql
MySQL 服务正在启动 ......
MySQL 服务已经启动成功。


D:\tools\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 MySQL Community Server - GPL

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.

mysql>

你可能感兴趣的:(MySQL)