当前位置:Gxlcms > mysql > mysql解压及赋权_MySQL

mysql解压及赋权_MySQL

时间:2021-07-01 10:21:17 帮助过:41人阅读

解压mysql压缩版至某根目录

注意ini文件内容配置

basedir = D:\mysql-5.6.17-winx64
datadir = D:\mysql-5.6.17-winx64
port = 3306
server_id = mssql

default-character-set=utf8

cmd
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;

source xxx.sql;

grant all privileges on 哪个库.什么权限 用户@登录IP identified by 密码

人气教程排行