Mysql的一些命令

1,启动mysql

net start mysql

2,进入mysql>下

mysql -uroot -p

3.停止mysql

net stop mysql

4,修改密码


mysql> set password for 用户名@localhost=password('新密码')

mysql> set password for root@localhost=password('123');

5,显示数据库

mysql>show databases;

6,使用哪个数据库

mysql>use crm

7,查看该数据库里面的所有表

mysql>show tables;

8,输入mysql>mysql -uroot -p显示

mysql' is not recognized as an internal or external command, operable program or batch file.

进入mysql的安装包的bin里面进入命令符号

eg.cd C:\BtSoft\WebSoft\mysql\MySQL5.7\bin

bin>mysql -uroot -p

9,设置密码如果是

输入命令  use mysql

select Host,User from user

将用'%'替换localhost

mysql>set password for 'root'@'%'=password('123456');

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值