1: Download MySql Official website download address: https://dev.mysql.com/downloads/mysql/ Select the corresponding download file. (My computer is 64-bit, so this is the 64-bit download file) 2: Install MySql Open the downloaded file and unzip it to the specified directory. (My unzip directory is D:\mysql-5.7.21-winx64) Open the unzipped MySql file and create my.ini (mysql configuration file) in the root directory The contents of the my.ini file are as follows: Here you need to change the basedir and datadir paths to the mysql decompression path
Find the CMD command prompt, right click and run it as administrator Enter the mysql subdirectory bin Enter in sequence: mysqld --install (install) mysqld --initialize (initialize) net start mysql (run) 3: Set the MySql login password As early as several versions ago, the default password of the MySQL root account was not empty. If you log in with an empty password, you will definitely get an error. Password setting steps:
Installation Complete Another way to set MYSQL password. After MySQL is installed, open the data folder in the MySQL installation directory. There is a .err file in it. Open it with Notepad and you can see the line A temporary password is generated for root@localhost: xxxxxxxx localhost: The following is the default password, copy this password to log in, After a successful login, you must reset your password, otherwise the following error will be displayed. You must reset your password using ALTER USER statement before executing this statement. Execute the following command to reset the password and you can use it normally. You can refer to the screenshot below. SET PASSWORD = PASSWORD('NEW PASSWORD') The above is a detailed explanation of the MySQL download and installation process introduced by the editor. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website! You may also be interested in:
|
<<: Detailed explanation of publicPath usage in Webpack
>>: How to resize partitions in CentOS7
Written in the opening: Absolute said: "Rela...
1. Create a runner container mk@mk-pc:~/Desktop$ ...
Recently, I have used React Hooks in combination ...
Preface During the development process, you will ...
Recently, I need to make a back-to-top button whe...
MySQL slow log is a type of information that MySQ...
Table of contents 1. Environment Introduction 2. ...
Table of contents Master-Master Synchronization S...
In web development, you often encounter characters...
1. SHOW PROCESSLIST command SHOW PROCESSLIST show...
This article shares the specific code of JavaScri...
NProgress is the progress bar that appears at the...
1. What are custom hooks Logic reuse Simply put, ...
Table of contents What is JSI What is different a...
1. MIME: Multipurpose Internet Mail Extensions Th...