Install MariaDB in RHEL 7 and mariadb in rhel 7

Source: Internet
Author: User

Install MariaDB in RHEL 7 and mariadb in rhel 7

Start with RedHat Enterprise Linux 7, and the self-contained database on the system disk is MariaDB. The installation steps are as follows:

 

1. Mount the installation disk image:Mount/dev/cdrom/mnt

2. Create a yum Source:Cat>/etc/yum. repos. d/d. repo <EOF

[D]

Baseurl = file: // mnt

EOF

3. Import key:Yum -- import/mnt/RPM-GPG-KEY-redhat-release

4. installation:Yum-y install mariadb-server mariadb

5. Complete the installation and start the service:Systemctl start mariadb. service

6. Set auto-start:Systemctl enable mariadb. service

7. Access mariadb:Mysql-u root-pThe password is empty.

8. view the database:Show databases;

9. After installation, uninstall the optical drive:Umount/mnt

10. Delete the yum Source:Rm-f/etc/yum. repos. d/repo

 

 

 


Can Windows 7 and RHEL 50 be installed on the same laptop at the same time?

After partitioning according to your own hard drive, the original system is Windows XP, and now you are ready to install a total of RHEL5 for development and use under it. Let's get down to the point. First, I want to introduce my hardware configuration and the corresponding environment;

My laptop hard drive has about 230 GB space. C, D, E, F, and G disks are generally used to expand the disks in the system with a total of logical partitions, which are then divided into Linux systems for use. Here, I used the partition magic master to divide the G disk into about 45 GB space, I think so, ready to install a total of RHEL and Ubuntu systems. In an article, a brother warned that if the G disk is normally formatted and its partition is deleted, it belongs to the Second Primary partition of the hard disk by default (that is, extended partition). After RHEL is installed, it will be slow to use windows. (The reason is unknown... This is slow. I think it makes sense because the extended partition of windows contains some system partitions that are not recognized by windows. Why is it slow ). I just want to remove the G disk from the second primary partition (that is, the extended partition). (after removal, the problem occurs when RHEL is installed, I thought it was too simple at the time, because unknown idle partitions belong to the primary partition, so when installing RHEL, When configuring hard disk partitions, the new/boot,/swap, "/" is a primary partition, and a hard disk can have up to four primary partitions .). I can't continue to play, so I quit the installation. in windows, I used the magic partition to adjust the size of 5 GB in the extended partition's unknown space, the unknown space in the primary partition is 40 GB (in this way, I can set/swap to 4 GB and/boot to 400 MB .) After the partition is complete, enter the installation system. When configuring the partition, follow the previous idea: the second primary partition (that is, the extended partition) is divided into 4 gb swap partitions, 400 MB/boot partition. In the unknown partition of the primary partition, the size of 20 GB is used.

In this case, the installed "/" and "/boot" are not in the same primary partition, so whether or not I can use it is an annoyance after installing RHEL5.

When installing RHEL5, because it is detected that the xp system has been installed on the hard disk, let's choose to start System Management first, and the location of grub: 1. primary boot partition (MBR), 2. the partition where the system boot is located (sda9 here); if you select 1 and install it in MBR, it will overwrite the boot information for the windows xp system in the primary boot partition, in this way, it will be difficult to delete RHEL5 in the future. As a result, GRUB files cannot be found and windows xp cannot be accessed.

Therefore, I will definitely write it in the partition where the boot is located, and/boot/grub/menu. lst,

In the/boot/grub. conf file. After the installation is complete, the system only recognizes the boot program for windows xp in the first partition, but does not recognize grub in the second partition, only windows xp is displayed in the selection menu.

When RHEL55 is installed in win7, the primary partition is insufficient.

A basic disk can have up to four primary partitions, or three primary partitions and one extended partition. If you have only one, you must not have two primary partitions. If the machine configuration is acceptable, it is recommended that you install it on the VM and install it on your host. If you just try Linux, Ubuntu is extremely simple to install or uninstall, just like a common application.

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.