前言:操作系统是WIn7 64位 旗舰版   ,Mysql的版本是mysql-5.7.10-winx64

是社区版 就是所谓的最后的免费版本。 下载后 解压 然后配置my.ini文件。

××××××××××××××××××××××××××××××××××××××××××××××××××

# 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 = .....
loose-default-character-set=utf8

basedir="C:/05_study/mysql-5.7.10-winx64"

datadir="C:/05_study/mysql-5.7.10-winx64/data"

# 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

[client]

loose-default-character-set=utf8

[WinMySQLadmin]

Server=C:/05_study/mysql-5.7.10-winx64/bin/mysqld.exe

character-set-server=utf8

sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES

×××××××××××××××××××××××××××××××××××××××××××××××××××

上面星号包含的内容就是配置文件。

PS:特别注意 这个路径下的C:/05_study/mysql-5.7.10-winx64/data   不是手动创建的。

哪些在命令行里面安装数据库和启动数据库服务的指令,目前就不测试了啦。(注意命令行的CMD这个指令是要已管理员权限运行)

下面开始登录数据库。(登录之前要使用cd指令 把路径切换到   C:\05_study\mysql-5.7.10-winx64\bin)

×××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××

mysql -u root -p

说明: 账户名叫root  密码是空的

登录后的效果。

C:\05_study\mysql-5.7.10-winx64\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.10 MySQL Community Server (GPL)
Copyright (c) 2000, 2015, 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.

××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××

修改密码为root.

http://blog.csdn.net/pumaadamsjack/article/details/2044565

********

http://www.cnblogs.com/good_hans/archive/2010/03/29/1700046.html

最新文章

  1. canvas学习api
  2. thymeleaf标签必须由匹配的结束标记终止
  3. [C#][WebAPI]返回 json
  4. tensorflow实战系列(一)
  5. Python2.7-fileinput
  6. ARM DEBUGGER FOR NEARLY ONE DOLLAR
  7. 页面加载中jquery逐渐消失效果实现
  8. logistic 回归与线性回归的比较
  9. [日常] DNS的迭代查询过程
  10. 利用struts2<s:token>标签防止用户重复提交
  11. 常用php操作redis命令整理(二)哈希类型
  12. VMTurbo采用红帽企业虚拟化软件
  13. web项目启动执行方法
  14. window7及以上 创建软链接 mklink
  15. IE中的activex控件
  16. Vue.js路由组件
  17. 第二篇 Python初识别及变量名定义规范
  18. 【Shell 编程基础第二部分】Shell里的流程控制、Shell里的函数及脚本调试方法!
  19. ElasticSearch 数据类型
  20. C# 多线程、控制线程数提高循环输出效率

热门文章

  1. shell脚本中,for基于列表进行循环的实现方法
  2. when an event of selector will be fired
  3. 创建ros的程序包--3
  4. TCP/IP协议族-----24、网络管理(SNMP)
  5. Trie树(字典树)(1)
  6. Java精选笔记_多线程(创建、生命周期及状态转换、调度、同步、通信)
  7. POJ 1384 Piggy-Bank(完全背包)
  8. laravel 发送邮件
  9. 腾讯云CMQ消息队列在Linux环境下的使用
  10. Weinre 远程调试移动端手机web页面