MySQL本地安装配置
地址:https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.19-winx64.zip
配置出错重开
sc delete mysql
配环境变量:Path,安装目录\bin
安装目录下建一个my.ini文件
[client]
port=3306
default-character-set=utf8
[mysqld]
basedir=安装目录\
datadir=安装目录\data\
port=3306
character_set_server=utf8
skip-grant-tables
管理员模式cmd,切换到bin目录下 cd /d 目录
mysqld -install
mysqld --initialize-insecure --user=mysql
net start mysql
mysql -u root -p
use mysql;
update user set authentication_string=password('123456') where user='root' and Host='localhost';
flush privileges;
ini文件最后一行删了
net stop mysql
net start mysql
到这里,安装就完成了!
标签:set,MySQL,本地,mysql,net,安装,目录 From: https://www.cnblogs.com/ffgj/p/17114597.html