mysql免安装5.6.30
2016-05-30 00:00
288 查看
摘要: mysql免安装版本的配置
# 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]
# 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:/mysql-5.6.30-winx64
datadir =D:/mysql-5.6.30-winx64/data
port =3306
server_id =10
# 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
max_connections=200
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
第一步:在解压后的mysql-5.6.30-winx64.zip文件的default.ini的同级文件夹上新建my.ini文件如下图,my.ini里面的内容如上
第二步进入D:\mysql-5.6.30-winx64\bin目录运行
mysqld -install //注册mysql服务
mysqld --defaults-file=D:\mysql-5.6.30-winx64\my.ini --console //启动my.ini配置的mysql服务
net start mysql//启动mysql
net stop mysql //关闭mysql
mysql -uroot -p//执行该命令进入mysql数据库
然后执行如下图命令,更改mysql的默认密码
然后用新密码登陆
搞定收工了
# 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]
# 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:/mysql-5.6.30-winx64
datadir =D:/mysql-5.6.30-winx64/data
port =3306
server_id =10
# 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
max_connections=200
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
第一步:在解压后的mysql-5.6.30-winx64.zip文件的default.ini的同级文件夹上新建my.ini文件如下图,my.ini里面的内容如上
第二步进入D:\mysql-5.6.30-winx64\bin目录运行
mysqld -install //注册mysql服务
mysqld --defaults-file=D:\mysql-5.6.30-winx64\my.ini --console //启动my.ini配置的mysql服务
net start mysql//启动mysql
net stop mysql //关闭mysql
mysql -uroot -p//执行该命令进入mysql数据库
然后执行如下图命令,更改mysql的默认密码
然后用新密码登陆
搞定收工了
相关文章推荐
- MySQL - ERROR 1449
- MySQL复制
- MySQL学习1 基础入门
- mysql:连接数据库
- mysql:修改用户密码
- msyql:新增用户并控制权限
- mysql:创建数据库
- mysql:显示所有数据库及编码设置
- mysql:删除数据库
- mysql:获取当前数据库信息以及SELECT命令的使用
- mysql:创建数据表
- mysql:删除数据表
- MySql-权限管理
- mysql 松散的索引扫描(Loose index scan)
- MySQL EXPLAIN 详解
- MySQL EXPLAIN 详解-日文
- MySQL分组查询Group By实现原理详解
- 由浅入深探究 MySQL索引结构原理、性能分析与优化(强烈推荐)
- mysql 5.6 gtid复制配置
- Mysql之权限管理