mysql解压及赋权_MySQL
程序员文章站
2022-05-29 23:24:33
...
解压mysql压缩版至某根目录
cd mysql bin 目录
mysqld install mysql
net start mysql
------------------
用户zs 库zsk 密码zsp
mysql -uroot -p
create database zsk;
grant all privileges on zsk.* to zs@localhost identified by zsp;
flush privileges;
exit
mysql -uzs -p
use zsk;
注意ini文件内容配置
basedir = D:\mysql-5.6.17-winx64
datadir = D:\mysql-5.6.17-winx64
port = 3306
server_id = mssql
default-character-set=utf8
cmdcd mysql bin 目录
mysqld install mysql
net start mysql
------------------
用户zs 库zsk 密码zsp
mysql -uroot -p
create database zsk;
grant all privileges on zsk.* to zs@localhost identified by zsp;
flush privileges;
exit
mysql -uzs -p
use zsk;
source xxx.sql;
grant all privileges on 哪个库.什么权限 用户@登录IP identified by 密码
上一篇: mongodb数据库问题三则