Last time I said that the local mysql installation changes the password, and there may be some details or unclear places to connect to the local navicat. Take the time to re-explain today.
1. Download the zip of mysql-5.6.17-winx64. Put it in the directory, and the zip is given below
2. Unzip the current file.
3. After decompressing a bunch of files, there are bin and my-default.ini files
I'll put the modified my-default.ini file below, don't rush to copy it. There is a way to install mysql. Please refer to your own installation road to modify, otherwise it will not start.
# 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.
[WinMySQLAdmin]
#Specify the file to start the mysql service
Server = D:/Mysql/mysql-5.6.17-winx64/bin/mysqlId.exe
[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/mysql-5.6.17-winx64
datadir = D:/Mysql/mysql-5.6.17-winx64/data
port = 3306
server_id =1
default-character-set=gbk
# 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
[client]
#Set the character set of the mysql client
default-character-set=gbk
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
Start the doc window under bin
Enter: mysqld -install
Display: server successful..
start mysql service
net start mysql
Note: There is no password for the first login. Log in as the root user under the mysql console. By default, the root user has no password. Press Enter directly.
Command: mysql -u root -p
change Password
Use the mysqladmin command, here it shows that 1234 is your newly set password, you can set your own password as needed
mysqladmin -u root -p password 1234
Press Enter, and then enter your original password. If the original password is empty, just press Enter.
Your password is set successfully.
Exit mysql: net stop mysql
Reference: http://zhidao.baidu.com/link?url=rm79S9wUu1MYYgaTbtbbOHHHikqOBGi-8XQZ2gdATd1Vl7zDqT7Po4iZX7mgJjGmTwEs7NL_u0UOlSvHFA4lqLbF0iYPHIdBU8_a6p5beFO