Installation notes of mysql server (zip compressed version) under Windows

1. Configure environment variables

You can add in the user PATH environment variable (or in the system global environment variable Path):
The absolute path where the bin folder of mysql is located


2. Install mysql service

Run the command in cmd (must ensure that the previous step is configured correctly and use the administrator identity): mysqld -install


3. Initialize the mysql database root user

(A random password will be generated. Some systems do not prompt for the default password. You need to find the *.err log in the data folder. The log will have the following record: A temporary password is generated for root@localhost: Here is the password randomly generated by mysql)

Run the command in cmd: mysqld --initialize


4. Start the mysql service

Run the command in cmd: net start mysql

(If the service fails to start, check the first two steps)


5. Enter mysql and change the password

Run command cmd: mysql -u -p the root
input mysql randomly generated password
after entering the correct password input commands:

set password for root@localhost = password('Enter a new password here');


Guess you like

Origin blog.csdn.net/eguid/article/details/79621916