If I run df -h
in an Oracle LINUX 5 server, I got below output:
$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 12G 8.8G 1.8G 84% /
/dev/sda4 3.8G 592M 3.0G 17% /home
/dev/sda1 99M 70M 24M 75% /boot
tmpfs 942M 0 942M 0% /dev/shm
/dev/sdc1 51G 1.8G 46G 4% /u000
I installed MySQL 5.1.73-community-log in this server which is running. If I run below command:
mysql> show variables like '%dir%';
+-----------------------------------------+----------------------------+
| Variable_name | Value |
+-----------------------------------------+----------------------------+
| basedir | / |
| binlog_direct_non_transactional_updates | OFF |
| character_sets_dir | /usr/share/mysql/charsets/ |
| datadir | /var/lib/mysql/ |
| innodb_data_home_dir | |
| innodb_log_group_home_dir | ./ |
| innodb_max_dirty_pages_pct | 90 |
| plugin_dir | /usr/lib64/mysql/plugin |
| slave_load_tmpdir | /tmp |
| tmpdir | /tmp |
+-----------------------------------------+----------------------------+
10 rows in set (0.00 sec)
Please advice about:
- how can I Know in which partition, MySQL has been installed?
- Which Partition will be used by MysQL to store data?
- What is
/dev/sdc1
and how can I use the enough space available (46G)? - What is
tmpfs
?