We can view the installation path of mysql through the mysql command: # Either of the following two SQL statements can be queried: select @@basedir as basePath from dual; show variables like '%basedir%'; The basic installation path can be seen above. To check the path of the database data, it is very simple. Just replace the above parameter variable with datadir: # Any of the following queries can be used select @@datadir as dataPath from dual; show variables Like '%datadir%'; Of course, the above is based on being able to log in to the MySQL window to view it. Then friends will ask, if you don’t know the account password to log in to MySQL, how can you view the MySQL path? Method 1: 1: Query the path where the running file is located
Then you can connect to Mysql through /usr/bin/mysql -u account -p password: Then execute any of the above MySQL to view the installation path. Is this too complicated? It can be simpler. Method 2: View the installation information of mysql:
The red mark shows the specific path. This is the end of this article about how to view the database installation path in MySQL. For more information about MySQL database installation path, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future! |
<<: H tags should be used reasonably in web page production
>>: Quickjs encapsulates JavaScript sandbox details
In development projects, we can monitor SQL with ...
When the author was using MySQL to add a user, he...
Table of contents mysql filtered replication Impl...
1. Search for redis image docker search redis 2. ...
<br />Question: Why is it not recommended to...
Use JS to zoom in and out when the mouse is on th...
In this note, we briefly describe What is the B+T...
The inline-block property value becomes very usef...
1. Download Navicat for MySQL 15 https://www.navi...
Vue $set array collection object assignment In th...
It is recommended to use the sudo su command to s...
1. Display the files or directories in the /etc d...
1. Naming conventions 1. Database names, table na...
In order to make the page display consistent betwe...
clip-path CSS properties use clipping to create t...