mysql-5.6.29-winx64 window installation process and configuration
1. Download mysql-5.6.29-winx64.zip .
http://dev.mysql.com/get/Downloads/MySQLInstaller/mysql-installer-community-5.6.28.0.msi
2. Unzip mysql-5.6.29-winx64.
3. There is only one my-default.ini in the decompressed directory, I will add a new my.ini.
my.ini is configured as follows:
[mysql]
# Set the default character set of the mysql client
#default-character-set=utf8 (using this character set, there is a problem when starting, refer to the windows log and find that it cannot be recognized, so comment it out)
[mysqld]
#Set 3306 port
port = 3306
# Set the installation directory of mysql
basedir=e:\db\mysql-5.6.29-winx64
# Set the storage directory for the data of the mysql database
datadir=e:\db\mysql-5.6.29-winx64\data
# maximum number of connections allowed
max_connections=200
# The character set used by the server defaults to the 8-bit encoded latin1 character set
character-set-server=utf8
# The default storage engine that will be used when creating new tables
default-storage-engine=INNODB
4. Installation service
Find cmd.exe in the path C:\Windows\System32, right-click to run it as an administrator (the permissions are strictly differentiated under win 7, and you must be an administrator)
cd to e:\db\mysql-5.6.29-winx64\bin directory,
Execute mysqld -install to install mysql service. [mysqld -remove uninstall mysql service]
5. Start/stop mysql service
net start mysql starts the service.
net stop mysql stops the service.
6. Login and change the root password
For the first time, the default password is empty. After starting the mysql service, directly execute the command mysql to log in to the database.
mysqladmin -u root password new password