Install mysql 5.7 binaries under win7 x64

1. Download the mysql binary file package from the mysql official website, and extract it to your installation directory;
2. Add my.ini to the installation root directory, with the following contents:
[mysql]
# Set the default character set of the mysql client
default-character-set= utf8
[mysqld]
#Set 3306 port
port = 3306
# Set the installation directory of mysql
basedir=installation root directory (modify according to your own situation) #Set
the storage directory of mysql database data
datadir=installation root directory\data #The
maximum number of connections allowed ( Modify according to your own situation)
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 a new table
default-storage-engine=INNODB
3 , Run CMD as an administrator, cd to the bin directory of the installation root directory;
4. Run mysqld install
Service successfully installed.
The above information appears, indicating that the installation is successful
5. Initialize the settings, run the command mysqld --initialize
6. Start\Stop Serve
a, cmd command to start and stop
net start mysql
net stop mysql
b, you can also use the windwos service to start and stop, please set the environment first.
Run the services.msc command, open the service manager, and start or stop the mysql service.

Note : If an error is reported, please refer to the blog post:
http://binary-space.iteye.com/blog/2412768




Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326678523&siteId=291194637