Every time you install the program, you will be prompted to insert the SuSE installation disc, which is inconvenient. Today, we finally find a solution:
# Creating a directory
Mkdir/mnt/ISO
# Mount the ISO file to a directory
Mount-o loop/data/suse11sp1/64-2d-dvd1.iso/mnt/ISO
# Add zypper installation Source
Zypper addrepo/mnt/ISO/suse11sp1iso
# Display zypper installation Source
Zypper Repos
# Display result:
# | Alias | Name | enabled | refresh
-- + ---------------------------------------------------- + ---------------------------------------------- + --------- + --------
1 | SUSE-Linux-Enterprise-Server-11-SP1 11.1.1-1.152 | SUSE-Linux-Enterprise-Server-11-SP1 11.1.1-1.152 | Yes | No
2 | suse11sp1iso | suse11sp1iso | Yes | No
# Install MySQL from a new installation Source
Zypper install MySQL 2
# Viewing MySQL status
Service MySQL status
# Start MySQL
Service MySQL start
# Set MySQL to start automatically
Chkconfig MySQL on