Home  >  Article  >  Database  >  How to check the installation path of mysql?

How to check the installation path of mysql?

青灯夜游
青灯夜游Original
2019-05-20 14:44:0517186browse

Sometimes during our development process, we inevitably need to check the installation paths of some installation tools. However, with so many tools installed, we inevitably forget the specific location of the installation. For example, where is mysq installed? The following article will introduce you to the method of checking the mysql installation path. I hope it will be helpful to you.

How to check the installation path of mysql?

How to check the installation path of mysql:

1. Use the mysql tool to pass mysql directory to view the installation path of mysql

The sql client used is: SQLyog, enter the following command:

select @@basedir as basePath from dual

Output:

How to check the installation path of mysql?

2. Use the MySQL command line

1. Enter the password to log in

2. Enter the following command:

show variables like "%char%";

How to check the installation path of mysql?

The above is the detailed content of How to check the installation path of mysql?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn