作者:T岛T_387 | 来源:互联网 | 2022-03-01 08:12
mysql解压式安装的方法:首先新建my文本,以管理员身份运行cmd并进入到mysql的bin目录;然后配置环境变量;接着设置root管理员密码;最后完成后启动mysql服务即可。
mysql解压式安装的方法:首先新建my文本,以管理员身份运行cmd并进入到mysql的bin目录;然后配置环境变量;接着设置root管理员密码;最后完成后启动mysql服务即可。
6、设置root管理员密码
关闭mysql服务,打开一个cmd窗口输入mysqld --skip-grant-tables
再开启另外一个cmd窗口
C:\Users\Administrator>mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 4
Server version: 5.7.19 MySQL Community Server (GPL)
Copyright (c) 2000, 2017, 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> use mysql
Database changed
mysql> update user set authentication_string=password('123456') where user='root';
Query OK, 1 row affected, 1 warning (0.00 sec)
Rows matched: 1 Changed: 1 Warnings: 1
完成后启动mysql服务
以上就是mysql如何进行解压式安装的详细内容,更多请关注其它相关文章!