windows are configured to install mysql database

  MySql is a free relational database, and Oracle compared to MsSqlServer relatively lightweight, installation is very simple and does not require free of royalties, personally think that the general use of small projects is quite right, of course, some amount of data the project will use a large MySql, MySql but personally think that the ability to multi-table query link does not work, but to make up a more than three links table queries, efficiency will be relatively low, when Ef Core personal use queries to do in your daily development often multi-table queries, as if MySql database query speed will be slower, but for the amount of data is not a big project, this is not much of a problem, Here to talk about how to install MySql on Windows systems.

 

  As of the latest version of this article Published MySql is 8.0.19, download address: https://cdn.mysql.com//Downloads/MySQL-8.0/mysql-8.0.19-winx64.zip  , personal recommend the use of manually archive decompression arranged installation, use the installation file directly is not recommended for installation /

 

  Download extract to the daily path we store the software after the next, for example, I used here is D: \ Software \ MySqlServer

    

 

 

  Then create a new my.ini file in this folder, the document reads as follows

  

[mysqld]
sql_mode = NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES

# Set the default password authentication plug-
default_authentication_plugin = mysql_native_password

# Set Character Set
Character-Server-SET = UTF8
the basedir = D: / Software / MySqlServer

max_allowed_packet = 32M
group_concat_max_len = 409600

# Database storage position, it must be the end of the data
datadir = D: / Software / MySqlServer / data

[Client]
# Set client character set
default-character-set = utf8

[WinMySQLadmin]
Server = D:/Software/MySqlServer/bin/mysqld.exe

 

 

 

  This file is my.ini configuration file to run MySql database, after running the profile has been created it is necessary to perform initialization commands MySql, the command is as follows:

mysqld --initialize-insecure

To execute this command must first open the CMD, we switch to the Bin directory MySql software, do the following figure:

 

 

Then enter directly mysqld --initialize-insecure on it, if copied directly to my command, note the space before and after the delete command, MySql after initialization is complete, we only have to install, service installation service command as follows:

mysqld.exe install will appear directly after successful execution, this time MySql installation has been completed, and if you want to start, you can just run net start mysql

 

Then you can use your own habits MySql link link test tools, database address is localhost username is root password is empty, we recommend the following link to personal success, immediately set about to go to the root account password, so a little more secure

 

Guess you like

Origin www.cnblogs.com/berkerdong/p/12442094.html