And database installation problems mysql-8.0.19-winx64 solution

Download: https: //dev.mysql.com/downloads/mysql/, I downloaded 187.8M above that.

Incidentally, the recent Sina Weibo is really bad, and actually not log on.

Sina has been written before.

After the change here, suddenly I found this style very much.

==================================================
after download, extract, exact file is not installed, then Baidu, found first create a my.ini and data directory, I feel very nonsense, installation actually need.

Then After installation, perform a "mysql -u root -p", enter the password online tutorial, but after entering an error:
"ERROR 2003 (HY000): MySQL of Can not Connect to Server ON 'localhost' ( 10061) "

And then continue to search the Internet, a bunch of solutions, they were all resolved, but I can not solve.

Here a small interpolation error:
the PS C: \ the WINDOWS \ system32> MySQL --install MySQL
MySQL:. [ERROR] Unknown Option '-install'
rearmost letter d has, in fact mysqld, not mysql. look down.

================================================== =
later put yourself delete the data, the my.ini also deleted.
And then follow the steps below step by step.

PS C:\WINDOWS\system32> mysqld --initialize --console
2020-03-07T11:07:18.159694Z 0 [System] [MY-013169] [Server] D:\Program Files\mysql-8.0.19-winx64\bin\mysqld.exe (mysqld 8.0.19) initializing of server in progress as process 5900
2020-03-07T11:07:22.120685Z 5 [Note] [MY-010454] [Server] A temporary password is generated for root@localhost: Qy_kuyaC)1qg
PS C:\WINDOWS\system32> mysqld --install
The service already exists!
The current server installed: "D:\Program Files\mysql-8.0.19-winx64\bin\mysqld.exe" mysql
PS C:\WINDOWS\system32> net start mysql
mysql 服务正在启动 .
mysql 服务已经启动成功。

PS C:\WINDOWS\system32> mysql -uroot -p
Enter password: ************
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 8
Server version: 8.0.19
Copyright (c) 2000, 2020, 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> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'xxxxxx';
Query OK, 0 rows affected (0.01 sec)

It is behind the operation of the database.

Enter the mysql directory, find the data folder automatically generated.

发布了3 篇原创文章 · 获赞 1 · 访问量 597

Guess you like

Origin blog.csdn.net/weixin_42218499/article/details/104720112
Recommended