win10下安装mysql5.7
来源:互联网 发布:车牌选号软件 编辑:程序博客网 时间:2024/05/17 02:06
- 下载
- 安装
- 1解压下载好的mysql-5713-winx64zip到你需要安转的目录egDmysql
- 2配置解压目录下的my_defaultini中命名为myini
- 3添加环境变量
- 4初始化
- 5启动mysql
- 6进入msyql并设置密码
- 连接到远程的mysql两台win7局域网之间的连接mysql
下载
地址:http://dev.mysql.com/downloads/file/?id=463242
安装
1、解压下载好的mysql-5.7.13-winx64.zip到你需要安转的目录(eg:D:\mysql);
2、配置解压目录下的my_default.ini中命名为my.ini
作相关的配置如下:
# These are commonly set, remove the # and set as required.basedir = D:\mysql5.7(mysql安装目录)datadir = D:\mysql5.7\data(mysq中数据的保存目录,自己定)port = 3306(mysq的端口号)# server_id = .....
3、添加环境变量
将D:\mysql5.7\bin添加到环境变量之中;
eg:......;D:\mysql5.7\bin
4、初始化
进入mysql的bin文件夹
mysqld –install
mysqld –initialize –console (有一个 root@localhost: 后面有一连串的字母数字符号, 这是 MySQL 为你自动生成的随机密码,一定要记下来, 一会我们登陆 MySQL 数据库的时候要用)。
PS:使用-initialize生成随机密码,使用-initialize-insecure生成空密码,初始化后data文件夹会自动生成,不用自己新建哦。
5、启动mysql
net start mysql
6、进入msyql并设置密码
D:\mysql5.7\bin>mysql -u root -pEnter password:Welcome to the MySQL monitor. Commands end with ; or \g.Your MySQL connection id is 2Server version: 5.7.13 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 respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.mysql> set password=password('你自己的密码');Query OK, 0 rows affected, 1 warning (0.00 sec)mysql>
连接到远程的mysql(两台win7局域网之间的连接mysql)
连接中的错误:
1、错误描述:设置root的远程权限时:ERROR 1062 (23000): Duplicate entry ‘%-root’ for key ‘PRIMARY’(最好不用这个,使用使用下面的的方法授权)。
解决办法:已经设置成功了。
2、mysql中的授权:
mysql> GRANT ALL PRIVILEGES ON . TO ‘root’@’%’ IDENTIFIED BY ‘密码’ WITH GRANT OPTION;
mysql> flush privileges;
3、关闭防火墙(同时注意作为mysql载体的win7的ip地址的正确性局域网ip))
参考:http://jingyan.baidu.com/article/0f5fb0991fef3c6d8334ea23.html
0 0
- win10下安装Mysql5.7
- win10下安装mysql5.7
- win10下安装Mysql5.7
- WIN10下安装MySQL5.7 Archive版
- win10 mysql5.7 安装
- win10下 64位mysql5.7及workbench的安装
- mysql5.7的archive版本在win10下安装小记
- 在win10下安装mysql5.7常见错误解决
- win10上安装mysql5.7
- win10下解压方式安装MySQL5.7.18
- mysql5.7.18在win10下的安装
- win10下安装配置Java web开发环境(win10+jdk1.8+tomcat8.5+mysql5.7)
- win10安装64位mysql5.7 server
- Win10安装MySQL5.7及问题解决
- win10 安装mysql5.7.19
- win10 64位 环境下安装mysql5.7及登陆失败总结教程
- win10下mysql5.7安装,配置,使用SQLyog工具连接配置
- MySQL5.7在win10 64位操作系统下的安装步骤
- C++ 类的静态成员详细讲解
- 监听editText字数计数并显示
- Virtualbox linux设置共享文件夹
- CI学习之数据传递
- 堆排序(代码片段)
- win10下安装mysql5.7
- 调试器工作原理(1):基础篇
- MYSQL基本操作
- 远程抓取图片
- 异步请求工具类NetTool
- sql语句出现键值对冲突的解决
- eclipse中常用的快捷键
- 状态模式
- Java:比较运算符compareTo()、equals()、==之间的区别