《MYSQL数据库mysql 5.7.17 winx64.zip安装配置方法图文教程》要点:
本文介绍了MYSQL数据库mysql 5.7.17 winx64.zip安装配置方法图文教程,希望对您有用。如果有疑问,可以联系我们。
MYSQL必读前言:重装win10顺带整理文件,然而装个MySQL用了我一下午,真是不值,所以写这篇来赞助大家.
MYSQL必读参考链接:mysql 5.7.11 winx64.zip安装配置办法图文教程;
里面有些步骤在我这弄完,一直是错的,我会适当点出,希望对你有帮助.
MYSQL必读一、下载
MYSQL必读
https://dev.mysql.com/downloads/mysql/
MYSQL必读二、解压缩zip包
MYSQL必读
MYSQL必读三、配置环境变量
MYSQL必读(1)配置Path
MYSQL必读
MYSQL必读(2)修改mysql-default.ini配置文件原先的:
MYSQL必读
# These are commonly set, remove the # and set as required.
# basedir = .....
# datadir = .....
# port = .....
# server_id = .....
MYSQL必读修改后的:
MYSQL必读
MYSQL必读四、以管理员身份进入命令提示符 cmd
MYSQL必读注意:先mysqld -install,再mysqld Cinitialize
MYSQL必读(1)执行mysqld -install
MYSQL必读
C:\Users\donald>cd D:\tools\developer\MySQL\mysql-5.7.17-winx64\bin
C:\Users\donald>d:
D:\tools\developer\MySQL\mysql-5.7.17-winx64\bin>mysqld -install
Service successfully installed. //成功安装服务
MYSQL必读(2)执行mysqld Cinitialize
MYSQL必读
D:\tools\developer\MySQL\mysql-5.7.17-winx64\bin>mysqld --initialize
D:\tools\developer\MySQL\mysql-5.7.17-winx64\bin>
MYSQL必读会自动创建data文件夹
MYSQL必读
MYSQL必读(3)mysqld.exe -nt Cskip-grant-tables(注意:窗口无反应)
MYSQL必读
D:\tools\developer\MySQL\mysql-5.7.17-winx64\bin>mysqld.exe -nt --skip-grant-tables
MYSQL必读(4)直接关闭窗口,再重新打开dos(同样管理员身份方式打开)
MYSQL必读
C:\Users\donald>mysql -u root
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.7.17 MySQL Community Server (GPL)
Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> use mysql
Database changed
mysql> update user set authtication_string=Password('admin') where user="root";
//这时候会提示修改成功等,或者waring 什么的.
mysql>flush privileges;
0 rows affected (0.01 sec)
MYSQL必读五、校验成功
MYSQL必读(1)在任务管理器中终止mysqld进程,开启mysql服务
MYSQL必读
C:\Users\donald>net start mysql
MYSQL必读若出现:
MYSQL必读
MYSQL必读打开任务管理器,找到mysqld,结束该进程.然后重新启动mysql,就可以了.
MYSQL必读(2)输入mysql -u root -p
MYSQL必读
C:\Users\donald>mysql -u root -p
//输入admin
MYSQL必读精彩专题分享:mysql不同版本安装教程 mysql5.7各版本安装教程 mysql5.6各版本安装教程
MYSQL必读以上就是本文的全部内容,希望对大家的学习有所赞助,也希望大家多多支持维易PHP.
《MYSQL数据库mysql 5.7.17 winx64.zip安装配置方法图文教程》是否对您有启发,欢迎查看更多与《MYSQL数据库mysql 5.7.17 winx64.zip安装配置方法图文教程》相关教程,学精学透。维易PHP学院为您提供精彩教程。
转载请注明本页网址:
http://www.vephp.com/jiaocheng/7803.html