这里使用cmd窗口进行权限设置. 以管理员账号连接数据库 创建数据库 create database 数据库名字 default charset=utf8; 查看用户 select user,host,password from mysql.user; 设置权限账号与密码 # 授权账号命令: grant 权限(create, update等) on 库.表 to '账号'@'host' identified by '密码' # all privileges表示授予所有权限, %代表允许所有域的连
mysql内存设置,首先要知道当前的设置 MySQL [(none)]> show variables like '%buffer%'; +-------------------------------------+----------------+ | Variable_name | Value | +-------------------------------------+----------------+ | bulk_insert_buffer_size | 8388608 | | i
1,设置访问单个数据库权限 mysql>grant all privileges on test.* to 'root'@'%'; 说明:设置用户名为root,密码为空,可访问数据库test 2,设置访问全部数据库权限 mysql>grant all privileges on *.* to 'root'@'%'; 说明:设置用户名为root,密码为空,可访问所有数据库* 3,设置指定用户名访问权限 mysql>grant all privileges on *.* to 'liuhui