MYSQL压缩版
自己建立:
data(位于mysql的bin一层文件夹),my.ini(文本)
my.ini(下面是文本内容)
[client]
port=3306
default-character-set=utf8
[mysqld]
#设置mysql的安装目录
basedir=D:Othermysql-5.7.20-winx64
#设置mysql的数据目录
datadir=D:Othermysql-5.7.20-winx64data
character_set_server=utf8
sql_mode=NO_ENGINE_SUBSTITUTION,NO_AUTO_CREATE_USER
#开启查询缓存
explicit_defaults_for_timestamp=true
skip-grant-tables
配置环境变量这里就不多说了吧
用管理员权限进入DOS命令
C:mysql-5.7.20-winx64in>mysqld --initialize-insecure(生成无密码的root用户 建议用这个)
net start mysql(启动mysql)
输入C:mysql-5.7.20-winx64mysql -u root -p
进入后修改密码set password for root@localhost =password('root');(一定记得带分号哦!)
看到上面提示修改成功
bingo!退出重登用root权限登录就OK!