When you open MySQL, you may encounter the problem of crashing after entering the password on the login interface.
Usually when we write code, although an error will be reported, the cause of the error is given to us. We can deal with it according to the cause of the error. But MySQL crashes directly, so we don’t know the error message. This has caused most people to encounter In this case, there is no way to start. Here I will teach you how to view the error message of MySQL
Check the error message:
- Open a command prompt with cmd
- Find MySQL in the search
- Right click to open the file location
- Drag any of these shortcuts directly into the command prompt
- If step 4 cannot be completed, you can right-click properties and copy and paste all the information in the target to the command prompt, the effect is the same
- At this time, if you run it again, you can see the error message
Two common error messages:
- MySQL password error
- Can't connect to MySQL server
First use cmd to open the command prompt,
find MySQL in the search,
right-click to open the file location
, and then enter this interface,
directly drag any one here to the command prompt,
this is the effect of dragging it into the display correctly.
If you pay attention here 如果拖不进去
, you can right-click the property
to set the target Copy and paste all the information in the command prompt to the command prompt, the effect is the same
After the above is completed, press Enter, and such a screen will appear.
Run it here, and there will be an error message
说两个常见的错误信息:1.密码错误 2.无法连接到MySQL服务器
The first is the prompt message of wrong password:
there will be such an error message: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
Simply put, the error message here means that my password is wrong. Just enter the correct password
This is an error message that cannot connect to the server: Here is an error message ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)
that means that it cannot connect to the MySQL server.
To solve this problem, find the service, and then open it.
Find MySQL here
and right-click to enable it.
Thank you for watching! I hope this article can help you!
Column: "Speedthrough MySQL" is constantly being updated, welcome to subscribe!
"Wish to encourage you and make progress hand in hand!"