How to query the installation path of MySQL?

Table of contents

Method 1: By querying local services

Method 2: Via MySQL command


Method 1: By querying local services

1) Press and hold the win+r keys, enter cmd, and open the computer’s command prompt

2) Enter services.msc in the pop-up box

3) Find MySQL and right-click Properties

 4) The installation path of MySQL can be found in the properties

 

Method 2: Via MySQL command

1) Log in to MySQL and use the command prompt or some other MySQL visualization tools (take the command prompt as an example)

2) Enter the command show variables like'%basedir%';

Guess you like

Origin blog.csdn.net/qq_61902168/article/details/129443043