yanxiaoge

 下载:

注意

1. MySQL Community Server 社区版本,开源免费,但不提供官方技术支持。
2. MySQL Enterprise Edition 企业版本,需付费,可以试用30天。
3. MySQL Cluster 集群版,开源免费。可将几个MySQL Server封装成一个Server。
4. MySQL Cluster CGE 高级集群版,需付费。
5. MySQL Workbench(GUITOOL)一款专为MySQL设计的ER/数据库建模工具。它是著名的数据库设计工具DBDesigner4的继任者。MySQLWorkbench又分为两个版本,分别是社区版(MySQL Workbench OSS)、商用版(MySQL WorkbenchSE)。

具体版本了解参考:https://blog.csdn.net/chenlycly/article/details/39015497

Window安装教程

mac安装教程

  • 下载:https://www.cnblogs.com/nickchen121/p/11145123.html
  • 安装:https://www.cnblogs.com/lyd447113735/p/7929026.html

 

 

 服务启动:

windows

#启动服务
net start mysql57
#断开服务
net stop mysql57
#连接服务
mysql -u root -p
#断开连接
exit|quit
#查看版本
select version();
#显示当前时间
select now();

#远程连接
mysql -h ip地址 -P 端口号 -u 用户名 -p
mysql -h192.168.2.112 -uroot -p123456

用户管理

创建用户
    create user \'用户名\'@\'IP地址\' identified by \'密码\';
删除用户
    drop user \'用户名\'@\'IP地址\';
修改用户
    rename user \'用户名\'@\'IP地址\'; to \'新用户名\'@\'IP地址\';
修改密码
  ALTER USER "root"@"localhost" IDENTIFIED  BY "你的新密码";
  ALTER USER "root"@"%" IDENTIFIED  BY "你的新密码"; (如果上面的不可以,使用下面的命令

grant授权管理

show grants for \'用户\'@\'IP地址\'                  -- 查看权限
grant  权限 on 数据库.表 to   \'用户\'@\'IP地址\'      -- 授权
revoke 权限 on 数据库.表 from \'用户\'@\'IP地址\'      -- 取消权限

 具体权限

all privileges  除grant外的所有权限
select          仅查权限
select,insert   查和插入权限
...
usage                   无访问权限
alter                   使用alter table()
alter routine           使用alter procedure和drop procedure
create                  使用create table
create routine          使用create procedure
create temporary tables 使用create temporary tables
create user             使用create user、drop user、rename user和revoke  all privileges
create view             使用create view
delete                  使用delete
drop                    使用drop table
execute                 使用call和存储过程
file                    使用select into outfile 和 load data infile
grant option            使用grant 和 revoke
index                   使用index
insert                  使用insert
lock tables             使用lock table
process                 使用show full processlist
select                  使用select
show databases          使用show databases
show view               使用show view
update                  使用update
reload                  使用flush
shutdown                使用mysqladmin shutdown(关闭MySQL)
super                   

分类:

技术点:

相关文章:

  • 2021-07-01
  • 2021-11-15
  • 2021-08-15
  • 2021-07-30
  • 2021-12-12
  • 2021-05-10
  • 2021-11-02
  • 2021-11-02
猜你喜欢
  • 2021-12-15
  • 2021-12-28
  • 2021-12-15
  • 2021-12-15
  • 2021-11-15
  • 2021-12-15
相关资源
相似解决方案