1, after installing MySQL on Linux, there are a lot of MySQL related files.
2,/etc/rc.d/init.d/mysql is the MySQL service startup script, is the Mysqld_safe package, Mysqld_safe is a script, is the executable file mysqld encapsulation
3,/usr/bin/mysql is the MySQL client command line tool, in the same directory there are other executable files, Mysqldump,mysqladmin,mysqlimport.
Note: Mysqld_safe is also in this directory, but Mysqld is not in this directory, mysqld under/usr/sbin/,/usr/sbin/directory under a lot of services, s think is the meaning of the service.
4,/usr/lib/mysql is a directory, which contains MySQL related library files.
5,/usr/include/mysql is a directory, inside put in a lot of header files, which have a directory MySQL, inside is mysqlclient about the header file
6,/usr/share/mysql Below a few MySQL script files, such as Mysql_system_tables_data.sql
7,/var/lib/mysql is the MySQL database storage directory, each database has a corresponding file, where the MySQL file is the MySQL database. The other files are as follows:
A, AUTO.CNF is the UUID of MySQL server
B, Ib_logfile0 is the log file, there is a ib_logfile1, the same size
C, Localhost.localdomain.err is the error log
D, Localhost.localdomain.pid is the process ID of the MySQL service
MySQL-related files