本博文的主要内容有html
.数据库的概述mysql
.mysql-5.7.11-winx64.zip 的下载sql
.mysql-5.7.11-winx64.zip 的安装数据库
.mysql-5.7.11-winx64.zip 的配置windows
.mysql-5.7.11-winx64.zip 的使用微信
推荐如下方式来安装mysql机器学习
一、数据库的概述工具
前言oop
想说的是,有mysql必定基础的人员,学大数据里的hive、hbase更是难得!post
二、mysql-5.7.11-winx64.zip 的下载
http://cdn.mysql.com//Downloads/MySQL-5.7/mysql-5.7.11-winx64.zip
能够从如下网址,找到全部的MySQL的历史版本
https://downloads.mysql.com/archives/community/


三、mysql-5.7.11-winx64.zip 的安装和配置
一、 解压缩zip包
这里想说的是,咱们都知道,关于软件的安装,有两种,msi方式和压缩包解压安装。
关于msi的安装方式,我这里便很少赘述了,见
http://jingyan.baidu.com/article/7e440953d6f0702fc1e2ef61.html
压缩包解压方式的安装:
而后,在这一步有资料说,修改默认配置文件my-default.ini。这里啊,我呢。通常为了专业规范起见,将默认的my-default.ini修改命名为my.ini(这一点,是模仿hadoop/spark)里的配置文件设法。
二、 变成
# For advice on how to change settings please see
# http://dev.mysql.com/doc/refman/5.7/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]
# 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
# These are commonly set, remove the # and set as required.
# basedir = .....
# datadir = .....
# port = .....
# server_id = .....
# 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
三、作以下的修改
# For advice on how to change settings please see
# http://dev.mysql.com/doc/refman/5.7/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]
# 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
# These are commonly set, remove the # and set as required.
basedir = D:\SoftWare\MySQL\mysql-5.7.11-winx64
datadir = D:\SoftWare\MySQL\mysql-5.7.11-winx64\Data
port = 3306
# server_id = .....
# 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
四、配置环境变量
新建,MYSQL_HOME,
在windows的path里,添加以下
;%MYSQL_HOME\bin;(注意加分号)
五、将mysql注册为windows系统服务,即初始化mysql
具体操做是在命令行中执行如下命令(须要以管理员身份运行命令行):
如下命令是在dos命令行中进行的
须要切换到mysq安装的bin目录,
不然,会将服务目录指定为C:\Program Files\MySQL\MySQL Server 5.7\mysqld
这里,顺便,学些dos窗口里的一些经常使用命令吧!
以管理员的身份进行运行,
C:\Users\Administrator>cd /d D:\
D:\>cd D:\SoftWare\MySQL\mysql-5.7.11-winx64
D:\SoftWare\MySQL\mysql-5.7.11-winx64>cd bin
D:\SoftWare\MySQL\mysql-5.7.11-winx64\bin>
六、本身新建好Data目录
七、执行mysqld.exe --initialize 命令,
D:\SoftWare\MySQL\mysql-5.7.11-winx64\bin>mysqld --initialize
回车
八、执行 mysqld -install命令
D:\SoftWare\MySQL\mysql-5.7.11-winx64\bin > mysqld install
或者
D:\SoftWare\MySQL\mysql-5.7.11-winx64\bin >
mysqld install MySQL --defaults-file=
" D:\SoftWare\MySQL\mysql-5.7.11-winx64\bin\my.ini"
或者
显示Service successfully installed.表示初始化成功!
九、执行mysqld.exe -nt --skip-grant-tables
注意:窗口无反应
十、从新打开dos窗口,执行mysql -u root
十一、执行mysql -u root
mysql> use mysql
Database changed
mysql> update user set authtication_string=Password('rootroot') where user='root'
-> set password=Password('rootroot')
->
十二、在任务管理器中终止mysqld进程,
1三、开启mysql服务。
D:\SoftWare\MySQL\mysql-5.7.11-winx64\bin> net start mysql
安装完成。
五、mysql-5.7.11-winx64.zip 的使用
之后,每次,都是到bin
感谢以下的连接博主:
http://www.cnblogs.com/endv/p/5205435.html
总结:
对于windows里安装Mysql,会出现各类问题,在此,我也是在这基础上,获得了认识和提高!!!
问题:
解决办法1:
mysqld –remove MySQL
【转】终于知道为何个人mysql老是卸载的不干净以及总是找不到my.ini文件
http://blog.sina.com.cn/s/blog_6fc5bfa90100qmr9.html
http://www.cnblogs.com/zlslch/p/5862100.html
推荐书籍:
同时,你们能够关注个人我的博客:
http://www.cnblogs.com/zlslch/ 和 http://www.cnblogs.com/lchzls/
人生苦短,我愿分享。本公众号将秉持活到老学到老学习无休止的交流分享开源精神,汇聚于互联网和我的学习工做的精华干货知识,一切来于互联网,反馈回互联网。
目前研究领域:大数据、机器学习、深度学习、人工智能、数据挖掘、数据分析。 语言涉及:Java、Scala、Python、Shell、Linux等 。同时还涉及日常所使用的手机、电脑和互联网上的使用技巧、问题和实用软件。 只要你一直关注和呆在群里,天天必须有收获
以及对应本平台的QQ群:161156071(大数据躺过的坑)