1. After installing MySQL 5.6, it cannot be enabled normally Compressed version of MySQL, after decompression, go to: My Computer -> Properties -> Advanced -> Environment Variables Select PATH and add the path of the mysql bin folder after it (e.g. C:\Program Files\MySQL\MySQL Server 5.6\bin ) Modify or add configuration in my-default.ini: [mysqld] basedir=C:\Program Files\MySQL\MySQL Server 5.6 (the directory where mysql is located) datadir=C:\Program Files\MySQL\MySQL Server 5.6\data (mysql directory\data) port = 3306 Run cmd as an administrator and enter After the installation is successful, you need to start the service. Continue to enter in cmd: After the service is started successfully, you can log in. As shown in the figure, enter 2. Forgot the root password of MySQL 5.6 First, Run the CMD command to switch to the MySQL installation bin directory and execute Do not close this command line window, and open a new one. Note that sometimes a warning will appear at this time, just ignore it. Open a new cmd window again. Run the command in the bin directory as described above: Execute the command: update mysql.user set password=PASSWORD('root') where User='root'; Refresh execution: Close the window and log in 3. Create a user and grant certain permissions (select, delete, update, create, drop permissions) Log in as a user with all permissions Create a user: mysql> insert into mysql.user(Host,User,Password) values("localhost","test",password("1234")); Authorize the user: grant permission on database.* to username@login host identified by "password"; Refresh the system privilege table: Example 1: mysql>grant select,update on testDB.* to test@localhost identified by '1234'; mysql>flush privileges; Summarize The above is the full content of this article. I hope that the content of this article will have certain reference learning value for your study or work. Thank you for your support of 123WORDPRESS.COM. If you want to learn more about this, please check out the following links You may also be interested in:
|
<<: Springboot uses vue+echarts front-end and back-end interaction to realize dynamic donut chart
>>: Detailed description of the use of advanced configuration of Firewalld in Linux
The configuration method of MySQL 5.5.56 free ins...
First download VMware Workstation 15.1 version. I...
We hope to insert the weather forecast into the w...
Table of contents 1. Pull the mysql image 2. Chec...
Table of contents background Solution 1: Back up ...
The first point to make is that people can judge t...
In the process of learning web design, I did not ...
Pseudo-arrays and arrays In JavaScript, except fo...
1 Introduction Apache Storm is a free, open sourc...
This article shares the specific code of vue+swip...
This article shares the specific code of JQuery t...
Environmental requirements: IP hostname 192.168.1...
The preparation for the final exams in the past h...
Preface During the development process, we often ...
This article example shares the specific code of ...