This article shares the installation and configuration tutorial of MySQL 8.0.13 for your reference. The specific contents are as follows download Download Unzip After decompression, there is no my.ini file (my port is set to 3308). The screenshot shows what I added. [client] port = 3308 default-character-set = utf8 [mysqld] port = 3308 character_set_server = utf8 basedir=D:\MySQL\mysql-8.0.13-winx64 datadir=D:\MySQL\mysql-8.0.13-winx64\data group_concat_max_len=20000 [WinMySQLAdmin] D:\MySQL\mysql-8.0.13-winx64\bin\mysqld.exe Administrator Command Line Execute the command in the bin directory of the MySQL installation directory: mysqld --initialize --console The following results are obtained D:\MySQL\mysql-8.0.13-winx64\bin>mysqld --initialize --console 2018-10-24T05:32:45.732454Z 0 [System] [MY-013169] [Server] D:\MySQL\mysql-8.0.13-winx64\bin\mysqld.exe (mysqld 8.0.13) initializing of server in progress as process 43080 2018-10-24T05:32:45.870611Z 0 [Warning] [MY-013242] [Server] --character-set-server: 'utf8' is currently an alias for the character set UTF8MB3, but will be an alias for UTF8MB4 in a future release. Please consider using UTF8MB4 in order to be unambiguous. 2018-10-24T05:33:14.879343Z 5 [Note] [MY-010454] [Server] A temporary password is generated for root@localhost: MMQP.YfCy5XY 2018-10-24T05:33:37.812581Z 0 [System] [MY-013170] [Server] D:\MySQL\mysql-8.0.13-winx64\bin\mysqld.exe (mysqld 8.0.13) initializing of server has completed D:\MySQL\mysql-8.0.13-winx64\bin> I saw a warning and checked mysql and it recommended using utf8mb4 Modify the my.ini file [client] port = 3308 default-character-set = UTF8MB4 [mysqld] port = 3308 character-set-server = UTF8MB4 basedir=D:\MySQL\mysql-8.0.13-winx64 datadir=D:\MySQL\mysql-8.0.13-winx64\data group_concat_max_len=20000 [WinMySQLAdmin] D:\MySQL\mysql-8.0.13-winx64\bin\mysqld.exe Warning no more D:\MySQL\mysql-8.0.13-winx64\bin>mysqld --initialize --console 2018-10-24T06:06:51.100372Z 0 [System] [MY-013169] [Server] D:\MySQL\mysql-8.0.13-winx64\bin\mysqld.exe (mysqld 8.0.13) initializing of server in progress as process 47804 2018-10-24T06:07:18.372699Z 5 [Note] [MY-010454] [Server] A temporary password is generated for root@localhost: nj>uUJkpH4/I 2018-10-24T06:07:36.024435Z 0 [System] [MY-013170] [Server] D:\MySQL\mysql-8.0.13-winx64\bin\mysqld.exe (mysqld 8.0.13) initializing of server has completed D:\MySQL\mysql-8.0.13-winx64\bin> The default password is printed above: nj>uUJkpH4/I Installation Services mysqld --install MySQL8.0 Because this is the second MySQL on the computer, the service name is changed to MySQL8.0 Start the service net start MySQL8.0 Change the initial password After logging in to mysql, execute ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '123456'; Wonderful topic sharing: MySQL different versions installation tutorial MySQL 5.7 installation tutorials for various versions MySQL 5.6 installation tutorials for various versions mysql8.0 installation tutorials for various versions 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:
|
<<: WeChat Mini Program Basic Tutorial: Use of Echart
>>: How to build a multi-node Elastic stack cluster on RHEL8 /CentOS8
1. Promise description Promise is a standard buil...
1 Problem description: 1.1 When VMware is install...
This article shares the specific code for JavaScr...
Table of contents Achieve results Introduction to...
Learning objectives: The two functions parseInt()...
The hyperlink a tag represents a link point and i...
As shown below: XML/HTML CodeCopy content to clip...
Why do we need permission management? 1. Computer...
MJML is a modern email tool that enables develope...
I was bored and sorted out some simple exercises ...
Original : http://developer.yahoo.com/performance...
1. Background We do some internal training from t...
React Lifecycle Two pictures to help you understa...
Greek letters are a very commonly used series of ...
An n-digit verification code consisting of number...