window环境配置Mysql 5.7.21 windowx64.zip免安装版教程详解


当前第2页 返回上一页

6.登录数据库,修改密码(默认为空)

E:\mysql\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.21 MySQL Community Server (GPL) 
Copyright (c) 2000, 2018, 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> show databases; 
+--------------------+ 
| Database      | 
+--------------------+ 
| information_schema | 
| mysql       | 
| performance_schema | 
| sys        | 
+--------------------+ 
4 rows in set (0.00 sec)
mysql> use mysql; 
Database changed 
mysql> set password for 'root'@'localhost'=password('新密码');
mysql> flush privileges;

退出测试是否成功

mysql> quit;
E:\mysql\bin> mysql -u root -p;
Enter password:

注释:

在mysql中一条语句结束加;号

开始mysql服务net start mysql;
停止mysql服务net stop mysql;
生成服务mysqld -install;
删除服务mysqld -remove;
登录数据库mysql -u root -p;
退出mysql> quit;

总结

以上所述是小编给大家介绍的window环境配置Mysql 5.7.21 windowx64.zip免安装版教程详解,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对网站的支持!

更多相关Mysql内容来自木庄网络博客


标签:Mysql

返回前面的内容

相关阅读 >>

mysql建表语句中显示双引号的方法介绍

navicat121 mysql怎么破解

带你聊聊mysql中的事务隔离

怎么看电脑里有没有mysql

如何将sql文件导入mysql数据库

mysql模糊查询语句是什么?

怎么查到mysql的账号密码是什么?

mysql中关于正则表达式查询的使用方法介绍

怎么样避免mysql死锁

mysql怎么查看已建的表

更多相关阅读请进入《mysql》频道 >>


数据库系统概念 第6版
书籍

数据库系统概念 第6版

机械工业出版社

本书主要讲述了数据模型、基于对象的数据库和XML、数据存储和查询、事务管理、体系结构等方面的内容。



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...