1. Check whether the installation of Mysql,grep-i indicates that the case is ignored when matching
#rpm-qa |grep-i MySQL
Mysql-libs-xxxx indicates that a MySQL library file has been installed
#rpm-E mysql-libs.xxx--nodeps to uninstall first, or overwrite error will occur. --nodeps ignores dependencies.
2. Install Mysql-server server side, pay attention to switch to root user
#rpm-IVH mysql-server.xxx
Once the installation is complete, the installation process automatically adds a MySQL group to Linux and MySQL users who belong to the MySQL group, which can be viewed by ID:
#id MySQL
After the MySQL server installation is complete, although the relevant files are configured, but do not automatically start the MYSQLD service, you need to start it yourself:
#service MySQL Start
#netstat-ANP |grep 3306
3. Install the MySQL client mysql-client
#rpm-IVH mysql-client.xxx
If the installation is successful, you should be able to run the MySQL command, note that the MYSQLD service must be turned on (mysql-server)
4.RPM installation mode file distribution
Directory |
Contents of Directory |
/usr/bin |
Client Programs and Scripts |
/usr/sbin |
The MYSQLD server |
/var/lib/mysql |
Log files, databases |
/usr/share/info |
Manual in Info format |
/usr/share/man |
Unix manual Pages |
/usr/include/mysql |
Include (header) files |
/usr/lib/mysql |
Libraries |
/usr/share/mysql |
Miscellaneous support files, including error messages, character set files, sample configuration files, SQL for database I Nstallation |
/usr/share/sql-bench |
Benchmarks |
RPM installation MySQL parsing