MySQL database, view data storage directory DataDir

Source: Internet
Author: User

Requirements Description :

When you use a database, or just take over a database, you can see where the data files for that database are stored.

Operation Process :

1. View the data catalog by viewing the DATADIR system variable

[[email protected] Mysql-bin]$ mysql-Uroot-penter password:welcome toThe MySQL Monitor. CommandsEnd  with;or\g.your MySQL Connection ID is 8Server Version:5.5. $-LogMySQL Community Server (GPL) Copyright (c) -, ., Oracleand/orits affiliates. Allrights reserved. Oracle isA registered trademark ofOracle Corporationand/oritsaffiliates. Names may trademarks oftheir respectiveowners. Type'Help ;' or '\h'  forHelp. Type'\c'  toClear the Currentinput Statement.mysql>Show variables like 'DataDir';+---------------+--------------+|Variable_name|Value|+---------------+--------------+|DataDir| /Mysql/Data/ |+---------------+--------------+1Rowinch Set(0.09Sec

Note: In the example above, the data directory is in the/mysql/data/directory.

Document creation Time: April 3, 2018 19:32:49

MySQL database, view data storage directory DataDir

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.