mysql 5.6.14 64位_如何在64位WIN7下安装64位的解压版MySQLmysql-5.6.14
展开全部
安装MySQLmysql-5.6.14可以参考32313133353236313431303231363533e59b9ee7ad9431333361306264如下安装步骤:
1、将解压缩后的文件放到自己想要的地方,并配置环境变量。示例中存放的目录为:F:\mysql\mysql-5.6.14-winx64
2、在环境变量中添加:MYSQL_HOME:F:\mysql\mysql-5.6.14-winx64,在path路径中加入:%MYSQL_HOME%\bin。配置环境变量不是必须的,只是为了能更方便的在命令行中使用mysql的命令行工具。
3、修改ini配置文件
5.6.14的解压缩版里有一个my-default.ini文件,copy一份改名为my.ini放在同级目录下。修改my.ini, my.ini内容如下:
# For advice on how to change settings please see
# http://dev.mysql.com/doc/refman/5.6/en/server-configuration-defaults.html
# *** DO NOT EDIT THIS FILE. It's a template which will be copied to the
# *** default location during install, and will be replaced if you
# *** upgrade to a newer version of MySQL.
[mysqld]
loose-default-character-set=utf8
basedir = F:/mysql/mysql-5.6.14-winx64
datadir = F:/mysql/mysql-5.6.14-winx64/data
[client]
loose-default-character-set=utf8
[WinMySQLadmin]
Server=F:/mysql/mysql-5.6.14-winx64/bin/mysqld.exe
# Remove leading # and set to the amount of RAM for the most important data
# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
# innodb_buffer_pool_size = 128M
# Remove leading # to turn on a very important data integrity option: logging
# changes to the binary log between backups.
# log_bin
# 设置mysql的安装目录
# 设置mysql数据库的数据存放目录
# These are commonly set, remove the # and set as required.
# basedir = .....
# datadir = .....
# port = .....
# server_id = .....
character-set-server=utf8
# Remove leading # to set options mainly useful for reporting servers.
# The server defaults are faster for transactions and fast SELECTs.
# Adjust sizes as needed, experiment to find the optimal values.
# join_buffer_size = 128M
# sort_buffer_size = 2M
# read_rnd_buffer_size = 2M
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
4、安装服务
开始——所有程序——附件——命令提示符,右键以管理员身份运行。 输入命令:
C:\>f:
F:\>cd F:\mysql\mysql-5.6.14-winx64\bin
F:\mysql\mysql-5.6.14-winx64\bin>mysqld -install
Service successfully installed.
5、启动服务
F:\mysql\mysql-5.6.14-winx64\bin>cd\
F:\>net start mysql
MySQL 服务正在启动 .
MySQL 服务已经启动成功。
6、配置用户
还在上面的命令窗口里面,输入命令:mysql -u root -p
回车后提示输入密码。
mysql解压缩版初次安装管理员root的密码为空,因此直接再回车一次就登入mysql数据库了。
F:\>mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.6.14 MySQL Community Server (GPL)
Copyright (c) 2000, 2013, 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.
成功后
输入命令:use mysql; /*使用mysql数据库*/
mysql> use mysql
Database changed
输入命令:select host,user,password from user; /* 查看系统的账户信息 */
mysql> select host,user,password from user;
+-----------+------+----------+
| host | user | password |
+-----------+------+----------+
| localhost | root | |
| 127.0.0.1 | root | |
| ::1 | root | |
| localhost | | |
+-----------+------+----------+
4 rows in set (0.00 sec)
host:代表mysql服务允许哪个IP来的请求。localhost和127.0.0.1指mysql服务所在的主机,即本地。::1是IPV6的IP地址写法,
全称为:0000:0000:0000:0000:0000:0000:0000:0001。现在都是IPV4的网络,可以不用管他。
user:指账户名称。不同的host下账户名称可以相同。
password:密码。
可以看到,默认账户里只支持本地连接,并且账户没有密码。现在的问题明确了,就是要将匿名用户删除,为root用户添加远程访问和密码,再为自己添加个人账户。指令如下:
mysql> update user set password=PASSWORD('root') where user='root';
Query OK, 3 rows affected (0.00 sec)
Rows matched: 3 Changed: 3 Warnings: 0
mysql> grant all on *.* to root@'%' identify by 'root';
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to use near 'ident
ify by 'root'' at line 1
mysql> grant all on *.* to walle@'%' identify by '123456' with grant option;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to use near 'ident
ify by '123456' with grant option' at line 1
mysql> delete from where user='';
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to use near 'where
user=''' at line 1
mysql> select host,user,password from user;
+-----------+------+-------------------------------------------+
| host | user | password |
+-----------+------+-------------------------------------------+
| localhost | root | *81F5E21E35407D884A6CD4A731AEBFB6AF209E1B |
| 127.0.0.1 | root | *81F5E21E35407D884A6CD4A731AEBFB6AF209E1B |
| ::1 | root | *81F5E21E35407D884A6CD4A731AEBFB6AF209E1B |
| localhost | | |
+-----------+------+-------------------------------------------+
4 rows in set (0.00 sec)
mysql> commit;
Query OK, 0 rows affected (0.00 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
已赞过
已踩过<
你对这个回答的评价是?
评论
收起
mysql 5.6.14 64位_如何在64位WIN7下安装64位的解压版MySQLmysql-5.6.14相关推荐
- mysql免压缩安装教程_MySql免解压版安装教程
欢迎大家关注我的公众号,添加我为好友! 我之前用的数据库是Mysql5.5的数据库,不知大为什么突然有了一点点问题,重新卸载安装过也没有用,就试着用了免解压版的,搞了两天之后终于成功了,本人已经头晕目 ...
- mysql 5.6.10 32_安装mysql-5.6.10-win32 解压版-略有修改
1.复制mysql-5.6.10-win32.zip到D:\app目录下. 2.解压mysql-5.6.10-win32.zip 3.在D:\app\mysql-5.6.10-win32下, 复制&q ...
- mysql解压缩 1067_windows安装mysql8.0.0解压版附出现1067错误解决方法
1.自己到mysql官网下载mysql-8.0.0-dmr-winx64.zip解压缩安装包 2.下载页面地址:https://dev.mysql.com/downloads/mysql/ 3.解压缩 ...
- 如何在64位WIN7下安装64位的解压版mysql-5.6.37-winx64.zip
1.到mysql官网下载 https://cdn.mysql.com//Downloads/MySQL-5.6/mysql-5.6.37-winx64.zip 2.将解压缩后的文件放到自己想要的地方, ...
- 亚马逊mysql无法远程连接不上_亚马逊EC2 ubuntu下安装mysql远程无法连接问题o
无法远程的原因有很多,我今天遇到的问题是通过navicat无法远程连接我在EC2上创建的实例. 1.通过命令" netstat -an|grep 3306 "检查一下3306端口对 ...
- MySQL安装—解压版
文章目录 1.解压版-安装MySQL 1.进入官网 2.选择DOWNLOADS(下载) 3.往下翻找到MySQL Community(GPL)Downloads" 4.找到MySQL Com ...
- mysql-8.0.17解压版安装步骤及MySQL服务无法启动问题的解决办法
mysql-8.0.17解压版安装步骤及MySQL服务无法启动问题的解决办法 参考文章: (1)mysql-8.0.17解压版安装步骤及MySQL服务无法启动问题的解决办法 (2)https://ww ...
- mysql 8.0.17 解压版安装教程
记录一下自己安装过程遇到的问题,也希望对大家有用~ 1.下载(官方推荐的是下载安装版本,但是解压版更便捷),下载地址: 2.解压,我们需要增加一步操作: (1)创建一个名为my.ini的文件: 3.修 ...
- Win10下MySQL5.7.20 Mysql(64位)解压版安装及bug修复
为什么80%的码农都做不了架构师?>>> 1.从官网下载MySQL5.7.20解压版64位: https://dev.mysql.com/downloads/file ...
最新文章
- redis便捷启动,shell启动redis
- mysql + IDEA + JDBC
- ADHD-注意力缺陷多动症
- 云图说|华为数据安全中心,助你保障云上数据安全!
- eth java,一个轻量级的Java实现的ETH库
- java 中 Integer 比较 问题
- SQLite B/S使用(一)
- Android MVP模式 谷歌官方代码解读
- mysql数据库内连接和外连接的区别
- 如何写一个简单的爬虫程序
- 利用count if()+条件格式突出显示多余的重复值
- 麻省理工学院公开课:信号与系统:模拟与数字信号处理 调幅演示
- 一刹那,是幡然悔悟的一刹那
- MCU简单控制DAC芯片应用(以DAC8550为例)
- AdBlock/AdBlock Plus 屏蔽广告
- 游戏显示计算机处于离线,为何我电脑上登着LOL,但是掌盟上却显示游戏离线?
- python:计划持有基金n年,求n年的每年复利_利率
- Mesh(802.11s)组网 — 基于OpenWRT路由器
- 深度学习地震勘探入门
- shell脚本实例-系统监控
热门文章
- 关于赠书《VS Code》断货延迟的通知!
- 如何从ActiveMQ平滑迁移到Kafka?
- android7.1.1大小,浅谈Android7.1.1 for 360 N5
- oracle存储过程详解--游标 实现增、删、改、查的
- error D8021 :无效的数值参数“/Wno-cpp” cython_bbox
- pytorch 图像归一化
- wfs.js windows用法
- Python PIL反色混合
- 使用python中的socket实现服务器和客户端,并完成图片的传输
- PMP-【第12章 项目采购管理】-2021-2-17(252页-274页)