mysql压缩包修改密码_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压缩包修改密码_mysql 解压之后一堆文件,第一次安装 与 修改密码的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: docker image name 更改
- 下一篇: 广发信用卡车主卡额度多少