This article shares the specific steps for configuring and starting the non-installed version of MySQL 8.0.12 for your reference. The specific contents are as follows 1. Official download address Select: MySQL Community Edition -> MySQL Community Server to enter the final download page, you can see the following: 2. Unzip to a directory, create a new my.ini file under the root file (the content is as follows), and create an empty folder Data [mysqld] # Set port 3306 port=3306 # Set the installation directory of mysql to basedir=C:\Softwares\mysql-8.0.12-winx64 # Set the storage directory of mysql database data datadir=C:\Softwares\mysql-8.0.12-winx64\Data # Maximum number of connections allowed max_connections=200 # The number of connection failures allowed. This is to prevent someone from trying to attack the database system from this host max_connect_errors = 10 # The default character set used by the server is UTF8 character-set-server=utf8 # The default storage engine that will be used when creating a new table default-storage-engine=INNODB # By default, the "mysql_native_password" plug-in is used for authentication. default_authentication_plugin=mysql_native_password [mysql] # Set the default character set of the mysql client to default-character-set=utf8 [client] # Set the default port used by the mysql client to connect to the server port = 3306 3. Open CMD as an administrator and enter the unzipped MySQL directory bin folder mysqld --defaults-file=C:\Softwares\mysql-8.0.12-winx64\my.ini --initialize --console Remember the root initial password output to the screen mysqld install MySQL-8.0.12 service.msc Open the service startup management, open the MySQL-8.0.12 service management startup (or configure it to start automatically at boot) 4. Change the initial password mysql -u root -p initial password ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'new password'; The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM. You may also be interested in:
|
<<: Docker installs redis 5.0.7 and mounts external configuration and data issues
>>: Detailed analysis of classic JavaScript recursion case questions
Scenario: The data in a table needs to be synchro...
Regarding how to create this thin-line table, a s...
With the rise of mobile terminals such as iPad, p...
Table of contents 1. The reason why the limit is ...
If you want to adjust the size and number of Inno...
Because the Base images pulled by Docker, such as...
The <input> tag The <input> tag is us...
introduction Have you ever encountered a situatio...
WeChat applet: Simple calculator, for your refere...
When developing and debugging a web application, ...
Table of contents Introduction to utf8mb4 UTF8 by...
Table of contents Preface: 1. Introduction to rol...
Change the default style of select, usually throug...
This article uses an example to describe how to c...
Install Nginx First pull the centos image docker ...