I want to use MySQL in linux for my work needs today. After VM 7.1.3 is installed, the Red Hat Linux 2.6.18 is installed as needed ([Red Hat Enterprise. linux.5]. TLF-SOFT-RedHat.Enterprise.Linux.5.Update.2-XiSO.iso under the donkey), and from the Oracle official website to download the MySQL server and client RPM installation package (MySQL-server-5.1.7-0.i386.rpm; MySQL-devel-5.1.7-0.i386.rpm; MySQL-client-5.1.7-0.i386.rpm ).
The process of installing MySQL is relatively simple. You can use RPM to install MySQL by default. However, port 3306 cannot be found using the netstat command, and MySQL service cannot be found after Navicat 8 is installed. After the system is restarted, prompt "Starting MySQL ................................... [failed] ". After searching for the Internet, the experiment was successful. Now let's share it.
Install the MySQL-server-5.1.7-0.i386.rpm in turn; MySQL-devel-5.1.7-0.i386.rpm; MySQL-client-5.1.7-0.i386.rpm these three installation packages.
Enter/etc/selinux, find the config file, change SELINUX = enforcing to SELINUX = disabled, and then save the disk and exit.
Restart the system, you can see Starting MySQL ................................... [successful]. The modification is complete.
After entering the system, go to the terminal console and use [root @ yourname] # netstat-nat to check whether port 3306 exists.
Go to Navicat 8 and add a database connection.