win 下mysql的安装
2016-03-29 00:00
567 查看
1,环境变量。
2,ini文件修改
[mysql]
default-character-set=utf8
# 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]
character-set-server=utf8
basedir=D:\mysql-5.6.24-win32
datadir=D:\mysql-5.6.24-win32\data
# 允许最大连接数
max_connections = 200
# 设置字符集为utf8
loose-default-character-set = utf8
#bind-address = 0.0.0.0
# 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
3,
bin 进入mysql的bin文件夹(不管有没有配置过环境变量,也要进入bin文件夹,否则之后启动服务仍然会报错误2)
输入mysqld -install
4,修改密码:
SET PASSWORD FOR 'root'@'localhost' = PASSWORD('newpass');
密码加密:
select password('你想输入的密码');
2,ini文件修改
[mysql]
default-character-set=utf8
# 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]
character-set-server=utf8
basedir=D:\mysql-5.6.24-win32
datadir=D:\mysql-5.6.24-win32\data
# 允许最大连接数
max_connections = 200
# 设置字符集为utf8
loose-default-character-set = utf8
#bind-address = 0.0.0.0
# 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
3,
bin 进入mysql的bin文件夹(不管有没有配置过环境变量,也要进入bin文件夹,否则之后启动服务仍然会报错误2)
输入mysqld -install
4,修改密码:
SET PASSWORD FOR 'root'@'localhost' = PASSWORD('newpass');
密码加密:
select password('你想输入的密码');
相关文章推荐
- 数据库mysql实现读写分离应用
- mysql存储过程
- mysql 数据库Event定时任务使用详解(Navicat 及直接SQL语句创建)
- mysql优化实战(explain && 索引)
- is not allowed to connect to this MySQL server解决办法
- MySQL基本查询语句
- 一看就懂系列之 Mysql主从延迟分析
- MySQL sql语句优化(转)
- MySQL单列索引和联合索引
- MySql注释
- 【学习笔记】高性能MySQL(第三版)——第2章:MySQL基准测试
- 忘记mysql 5.7的密码
- Mysql To Charts(六)--views文件
- mac osx下brew install mysql 错误总结
- mysql安装配置乱码无法开启服务问题总结
- mysql创建用户和授权的三种方式
- MySQL 使用序列化表的方法实现行转列
- 免安装版MySql安装与配置
- 数据库高效编程(mysql)
- batch insert 1 million datas into mysql