mysql 解压之后一堆文件,第一次安装 与 修改密码

 

     最近研究了一个mysql 本地服务器,用 navicat for mysql 进行连接,但是连接到本地 需要 有本地mysql服务器的支持。

   我自己下的mysql 版本是 mysql5.6.17的 ,

   在网上下载好了之后,解压之后是一堆文件,这时首先我们

 

复制my-default.ini一份,改名为my.ini

 

修改配置信息:修改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.

 

[mysql]

default-character-set=utf8

 

[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-5.7.10-winx64

datadir = D:\\software\\mysql-5.7.10-winx64\\data

port = 3306

server_id = 1

 

max_connections=200

character-set-server=utf8

default-storage-engine=INNODB

 

# 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 

 

在bin 下面打开 dos 窗口 , 在D://mysql-5.6/bin 下 输入    mysqladmin -uroot password 123456

在 输入 mysql -uroot -p 

enter password :123456 

密码设置成功。

 

这时在用navicat 连接 你的本地数据库 里面就有库了。

 

 

你可能感兴趣的:(mysql 解压之后一堆文件,第一次安装 与 修改密码)