Home >Database >Mysql Tutorial >Detailed explanation of the problem that mysql cannot be started and the mysql command cannot be recognized under cmd

Detailed explanation of the problem that mysql cannot be started and the mysql command cannot be recognized under cmd

王林
王林forward
2019-08-21 13:22:593736browse

1. The mysql service cannot be started

Detailed explanation of the problem that mysql cannot be started and the mysql command cannot be recognized under cmd

Solution:

Win R, enter services .msc, find the mysql service

Detailed explanation of the problem that mysql cannot be started and the mysql command cannot be recognized under cmd

, that is, the default service name is mysql55 instead of mysql

Detailed explanation of the problem that mysql cannot be started and the mysql command cannot be recognized under cmd

2. The mysql command cannot be recognized

Input mysql directly to enter the database and report an error

Detailed explanation of the problem that mysql cannot be started and the mysql command cannot be recognized under cmd

This is because the system does not know that mysql is What, we need to add the bin directory address in the installation address of mysql in the environment variable.

C:\Program Files\MySQL\MySQL Server5.5\bin;

Detailed explanation of the problem that mysql cannot be started and the mysql command cannot be recognized under cmd

Hope it can help those who are just learning mysql Classmate, thank you!

For more related questions, please visit the PHP Chinese website: https://www.php.cn/

The above is the detailed content of Detailed explanation of the problem that mysql cannot be started and the mysql command cannot be recognized under cmd. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:csdn.net. If there is any infringement, please contact admin@php.cn delete