Home  >  Article  >  Database  >  mysql解压及赋权_MySQL

mysql解压及赋权_MySQL

WBOY
WBOYOriginal
2016-06-01 13:02:03838browse

解压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 密码

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn