记录一下已有mysql8的情况下安装mysql5

E:\mysql-5.7.44-winx64\bin>mysqld --initialize --console
2023-11-28T01:58:18.443097Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2023-11-28T01:58:18.515512Z 0 [Warning] InnoDB: New log files created, LSN=45790
2023-11-28T01:58:18.535227Z 0 [Warning] InnoDB: Creating foreign key constraint system tables.
2023-11-28T01:58:18.615933Z 0 [Warning] No existing UUID has been found, so we assume that this is the first time that this server has been started. Generating a new UUID: 99dbb680-8d91-11ee-935b-9c2dcd7086ce.
2023-11-28T01:58:18.620646Z 0 [Warning] Gtid table is not ready to be used. Table ‘mysql.gtid_executed’ cannot be opened.
2023-11-28T01:58:19.096781Z 0 [Warning] A deprecated TLS version TLSv1 is enabled. Please use TLSv1.2 or higher.
2023-11-28T01:58:19.097037Z 0 [Warning] A deprecated TLS version TLSv1.1 is enabled. Please use TLSv1.2 or higher.
2023-11-28T01:58:19.099256Z 0 [Warning] CA certificate ca.pem is self signed.
2023-11-28T01:58:19.165470Z 1 [Note] A temporary password is generated for root@localhost: i=nL*Q1Pg:qz

E:\mysql-5.7.44-winx64\bin>mysqld --install mysql5
Service successfully installed.

E:\mysql-5.7.44-winx64\bin>mysql -u root -p
Enter password: ************
ERROR 2003 (HY000): Can’t connect to MySQL server on ‘localhost’ (10061)

E:\mysql-5.7.44-winx64\bin>mysql -u root -p
Enter password: ************
ERROR 2003 (HY000): Can’t connect to MySQL server on ‘localhost’ (10061)

E:\mysql-5.7.44-winx64\bin>mysql -u root -p
Enter password: ************
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.7.44 MySQL Community Server (GPL)

Copyright © 2000, 2023, Oracle and/or its affiliates.

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.

成功!!!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值