MySQL 安装配置
来源:互联网 发布:mac怎么装虚拟机win10 编辑:程序博客网 时间:2024/06/05 11:19
这里安装分为八个步骤,实现了由安装到测试成功的每一步~~~遇到其他的问题可以继续交流哦!!!
1、下载
http://cdn.mysql.com//Downloads/MySQL-5.7/mysql-5.7.11-winx64.zip2.解压缩zip包
D:\Program Files\mysql-5.7.11-winx64
3.配置环境变量,
(1) 添加path路径,在path下
D:\Program Files\mysql-5.7.11-winx64\bin(2)修改mysql-default.ini配置文件,
原文件为:
# These are commonly set, remove the # and set as required.# basedir = .....# datadir = .....# port = .....# server_id = .....改为:
# These are commonly set, remove the # and set as required. basedir = D:\Program Files\mysql-5.7.11-winx64 datadir = D:\Program Files\mysql-5.7.11-winx64\Data port = 3306# server_id = .....4.以管理员身份进入命令提示符 cmd或者直接windos+r
Microsoft Windows [版本 6.3.9600](c) 2013 Microsoft Corporation。保留所有权利。C:\Users\Administrator>cd D:D:\C:\Users\Administrator>cd D:\Program Files\mysql-5.7.11-winx64\binC:\Users\Administrator>d:D:\Program Files\mysql-5.7.11-winx64\bin>执行mysqld.exe --initialize 命令
D:\Program Files\mysql-5.7.11-winx64\bin>mysqld.exe --initializeD:\Program Files\mysql-5.7.11-winx64\bin>
创建了data目录5.执行 mysqld -install命令
D:\Program Files\mysql-5.7.11-winx64\bin>mysqld -installService successfully installed. //成功安装服务
6.执行mysqld.exe -nt --skip-grant-tables
注意:此时窗口无反应
1 Microsoft Windows [版本 6.3.9600] 2 (c) 2013 Microsoft Corporation。保留所有权利。 3 4 C:\Users\Administrator>cd D: 5 D:\ 6 7 C:\Users\Administrator>cd D:\Program Files\mysql-5.7.11-winx64\bin 8 9 C:\Users\Administrator>d:10 11 D:\Program Files\mysql-5.7.11-winx64\bin>mysqld.exe --initialize12 13 D:\Program Files\mysql-5.7.11-winx64\bin>mysqld -install14 Service successfully installed. //服务安装成功15 16 D:\Program Files\mysql-5.7.11-winx64\bin>mysqld.exe -nt --skip-grant-tables7.重新打开dos窗口,执行mysql -u root
进入mysql命令行,执行命令use mysql; update user set authtication_string=Password('123456') where user="root"; set password=Password('123456');
C:\Users\Administrator>mysqld.exe -nt --skip-grant-tablesC:\Users\Administrator>mysql -u rootWelcome to the MySQL monitor. Commands end with ; or \g.Your MySQL connection id is 3Server version: 5.7.11 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 itsaffiliates. Other names may be trademarks of their respectiveowners.Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.mysql> use mysqlDatabase changedmysql> update user set authtication_string=Password('123456') where user="root" -> set password=Password('123456') ->
8.在任务管理器中终止mysqld进程,开启mysql服务。
安装完成。
阅读全文
0 0
- 【Mysql】MYSQL安装配置
- mysql 安装版本 配置
- MySQL安装与配置
- MYSQL简单安装配置
- MySQL的安装配置
- Ubuntu安装配置Mysql
- Ubuntu安装配置Mysql
- MYSQL安装配置
- MySQL安装和配置
- Ubuntu Mysql安装配置
- MySQL安装、配置
- MySql安装配置
- Ubuntu安装配置Mysql
- MySQL 安装及配置
- 安装配置MySQL笔记
- Mysql--安装和配置
- Ubuntu安装配置Mysql
- ubuntu安装配置mysql
- Python struct模块-深入学习
- 文章标题
- 玩转Android之数据库框架greenDAO3.0使用指南
- SYD8801微信接入测试结果
- 对抗式生成网络---验证码的生成
- MySQL 安装配置
- java实现单点登录
- Python open()文件处理使用介绍
- tomcat建立连接
- 111. Minimum & Maximum Depth of Binary Tree
- RocketMQ在windows上安装和开发使用
- 如何判断是否是原生js函数
- angular-cli 常见用法
- 自定义View