您的位置:首页 > 数据库 > MySQL

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的默认密码



然后用新密码登陆



搞定收工了
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: