For RPM packages, the data files in/usr/bin or/usr/sbin/usr/lib are named under/usr/share: rpm-pql [rpm file name] to check which files are contained in an rpm package, that is, the installation path. if it is installed from the source code, you can select the installation path: Use this command to check the parameters. /con for RPM packages
Generally
Put the command in/usr/bin or/usr/sbin.
The library is under/usr/lib
The data file is under/usr/share /.
Name:
Rpm-pql [rpm file name] to view the files in an rpm package, that is, the installation path.
If you are installing from the source code, you can select the installation path:
Use this message to View parameters
./Configure -- help
./Configure -- prefix =/opt/fcitx
In addition:
MySQL installed in the rpm package will not install the/etc/my. cnf file,
As to why MySQL can be started and used normally without this file, there are two points,
The first statement is that my. cnf is only a parameter file during MySQL startup, but it does not exist. in this case, MySQL will start with the built-in default parameter,
Second, MySQL automatically uses the my-medium.cnf file under the/usr/share/mysql directory at startup, which is limited to MySQL installed in rpm packages,
Solution: Copy the. cnf file under the/usr/share/mysql directory to the/etc directory and change it to my. cnf.