MySQL创建用户、授权和连接

连接

创建用户

create user 'name'@'IP' identified by 'password' ******

授权

权限 on 数据库 to 人

grant all (privilages) on 数据库.tables to username@'ip'
grant select,update to 'user'@'%' # 是ip的通配符  # 赋予权限
show grants for 'user'@'%'                        #显示已有权限
revoke 权限 from 数据库.tables                    # 除去权限

连接

mysql -h ip -u username -p 

mysql文件系统
文件系统【show】

  1. 文件夹【数据库】【use】
  2. 文件【表】【from】
  3. 数据行【行】【select】(通配符时*)

猜你喜欢

转载自blog.csdn.net/weixin_43899514/article/details/113817247