mysql解壓及賦權
解壓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 密碼