We can install the rpm package that comes with the CD, which saves a lot of time to find the installation package, and the yum installation will automatically solve the dependency problem during package installation, which is very simple, the entire deployment can be completed in over 10 minutes. I. server network configuration IP Address: 192.168.1.100 mask: 255.255.255.0 Gateway: 192.168.1.1 Host Name: testdb.nyl.com modify the hosts file and add a line of vi/etc/hosts1. We will use the rpm package that comes with the CD for installation, this saves a lot of time to find the installation package, and the yum installation will automatically solve the dependency problem during package installation, which is very simple. The entire deployment can be done in over 10 minutes.
1. server network configuration
IP Address: 192.168.1.100
Mask: 255.255.255.0
Gateway: 192.168.1.1
Host Name: testdb.nyl.com
Modify the hosts file and add a line
Vi/etc/hosts
192.168.1.100 testdb.nyl.com
2. Configure the yum Source
Cd/etc/yum. repos. d/
Vi mycdrom. repo # create a repo File
[Base]
Name = RHEL5 ISO Base
Baseurl = file: // mnt/Server
Enabled = 1
Gpgcheck = 0
If several packages are missing, enter the/mnt/Server Directory
Start mysql Service
Service mysqld start
View mysql services
Service mysqld status
Of course, you can also add the mysql service to start at random.
Chkconfig -- add mysqld
Mysqladmin-u root-p password 123456 # change the mysql password to "123456"
Mysql-u root-p
Enter password:
Welcome to the MySQL monitor. Commands end with; or \ g.
Your MySQL connection id is 37
Server version: 5.0.77 Source distribution
Type 'help; 'or' \ H' for help. Type '\ C' to clear the buffer.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.