Database installation free installation Mysql5.7 version Meng new first test ~

As a junior programmer, record your own growth path!

First put all the folders mysql5.7 in the C drive for easy writing path (modify mysql5.7 \ my file content basedir = C: \ mysql5.7 datadir = C: \ mysql5.7 \ data
to the path you installed yourself The files are the same I set)
Add skip-grant-tables to indicate that no password is required to enter the database!

These are commonly set, remove the # and set as required.
Basedir = C: \ mysql5.7
datadir = C: \ mysql5.7 \ data
skip-grant-tables

Ready to write and then write environment variables
Right click on the computer properties system settings Advanced environment variables system variables Find Path Enter and append your own mysql bin path "c: \ mysql5.7 \ bin"
Insert picture description hereInsert picture description here
Environment variables are configured
Run the command box as an administrator
Enter c: car
enter cd C: \ mysql5.7 \ bin directory mysql jump to the
input mysqld install
successful you will be prompted successfully installed Service
! otherwise it will prompt the service already exists
means that you may have once contained mysql and there is no need to uninstall and clean Uninstall it cleanly, such as some registry and so on.
If you successfully enter mysql -u root -p,
you will be prompted to enter the password and enter 123456
and then you will be prompted to enter successfully!

Published 4 original articles · received 1 · views 488

Guess you like

Origin blog.csdn.net/weixin_44760375/article/details/102762374