本文实例为大家分享了mysql 5.7.13 winx64安装配置方法图文教程,供大家参考,具体内容如下
下载
地址:http://dev.mysql.com/downloads/file/"htmlcode">
# 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 -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 2 Server 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 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> 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)
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持。
免责声明:本站资源来自互联网收集,仅供用于学习和交流,请遵循相关法律法规,本站一切资源不代表本站立场,如有侵权、后门、不妥请联系本站删除!
更新日志
- 《腾格尔 容中尔甲 亚东 高原三星 男人篇 3CD》[WAV/分轨][1GB]
- 命运圣契公测实测可用兑换码大全 命运圣契最新兑换码分享
- 黑神话悟空上品疾蝠精魄获取方法一览|上品疾蝠精魄收集攻略
- 《七龙珠电光炸裂!ZERO》GT角色预告片曝光,15位新角色登场
- [ABC]安娜-胆麦发烧女声[6N纯银镀膜][2016[低速原抓WAV+CUE]
- NewViennaOctetViennaWindSoloists-TheDeccaRecordings(2024)18CD[24-48][FLAC]-7
- 雨果唱片-三角琴《俄罗斯民间音乐系列-梁祝(中国名曲)》wav
- 《塞尔达传说:智慧的再现》新实机!无之世界介绍
- 任天堂公布《塞尔达传说》系列时间线:野炊与王泪独立在外
- 任天堂更新网络投稿规范:打击影响他人游戏体验行为
- 冼佩瑾.2024-女儿Daughter(EP)【杰威尔】【FLAC分轨】
- 黑豹乐队.1993-光芒之神【摇音晨【WAV+CUE】
- 曾轶可.2011-一只猫的旅行【天娱传媒】【WAV+CUE】
- 黑神话悟空上品狼刺客精魄获取方法一览|上品狼刺客精魄收集攻略
- 视觉小说《神椿市建设中REGENERATE》将于2025年2月20日发售