Win安装MySQL数据库
将下载下来的mysql解压到指定目录下,cmd切换到bin目录下
>mysqld -install                    安装服务
>mysqld -remove                    卸载服务
>net start mysql                   启动数据库服务
>net stop mysql                   停止数据库服务
>mysql -uroot -p123456                 登陆数据库

MySQL 常用命令:

>show variables like 'binlog_format';          查询mysql的binlog数据记录模式
>show variables like 'log_%';              查看配置log信息
>sc delete mysql5                  卸载MySQL服务:
>use mysql;                       使用数据库,查询权限,修改root用户密码
>select host,user from user;                查询用户名
#修改root用户密码,每次修改权限必须刷新
>update mysql.user set password=PASSWORD("123456") where user="root";
>flush privileges;
#增加普通权限的远程mysql用户
>grant select,update,insert,delete on mas.* to root@localhost identified by "root";
>grant all on *.* to root@"%" identified by "123456";
#刷新权限
>flush privileges;

 

相关文章:

  • 2021-09-21
  • 2021-08-15
  • 2022-12-23
  • 2022-01-23
  • 2021-11-11
  • 2021-08-25
  • 2021-08-08
猜你喜欢
  • 2021-10-26
  • 2021-11-13
  • 2021-11-14
  • 2021-06-28
  • 2021-10-26
  • 2021-12-14
相关资源
相似解决方案