Install mysql Redhat in redhat9
BitsCN.com
Redhat9 install its own mysql
1. put the required CD into the system, and put the mysql rpm package in the second CD, and then mount it.
Java code
Monut/mnt/cdrom
2. enter the RPMS location of the disc
Java code
Cd/mnt/cdrom/RedHat/RPMS
3. install the required rpm Package
Java code
Rpm-ivh perl-CGI-2.81-88.i386.rpm
Rpm-ivh perl-DBI-1.32-5.i386.rpm
Rpm-ivh mysql-3.23.54a-11.i386.rpm perl-DBD-MySQL-2.1021-3.i386.rpm
Rpm-ivh mysql-server-3.23.54a-11.i386.rpm
4. start the corresponding mysql service and check the corresponding process
Note: You can use either of the following methods to start a service:
(1) use service mysqld start // mysqld as the mysql daemon. you can use it to start the corresponding service.
(2)/etc/init. d/mysqld start // use the script to start the Mysqld service
How can I check whether the corresponding Mysqld service is successfully started?
Java code
Service mysqld status // view the status command
5. check the location of the installation directory of Mysql and the location of log files.
Java code
Cat/etc/my. cnf // location where the RPM Package is installed
BitsCN.com