Advantages of 1.mysql:
Free, cross-platform, light, multi-concurrency supported.
Installation steps for 2.mysql:
- Prepare the installation files and copy them to the home directory. Mount/mnt/cdrom
- CP mysql*/Home
- Unzip the installation file. TAR-ZXVF ***.tar.gz
- Groupadd MySQL (create a MySQL group).
- If so, remove the mysql.rpm package first. RPM-E--nodeps mysql.rpm
- useradd-g mysql MySQL (mysql user created under MySQL group)
- Go to the MySQL folder, execute scripts/mysql_install_db--user=mysql (Initialize database)
- Chown-r Root. (Change the owner of all files and folders in the current directory to root)
- Chown-r MySQL data (change the user creator of the Data folder to MySQL)
- Chgrp-r MySQL. (Change all files and folders in the current directory to the MySQL group)
- Start MySQL.
- /bin/mysqld_safe--user=mysql &. (Start MySQL with MySQL user)
- The MySQL port is 3306,netstat-anp check if MySQL is started.
- Mysql-u root-p: Use root user to enter MySQL
- The command to start MySQL in other directories is also required to modify the PATH variable under env: Root user is followed by ":/home/mysql/bin" after the path path in the./bash_profile.
- Dd
Linux Video Learning 6 (MySQL installation/)