Solve the problem that no packages are available for yum install mysql-server under CentOS7.

Source: Internet
Author: User

Solve the problem that no packages are available for yum install mysql-server under CentOS7.
[Azq @ localhost ~] $ Sudo yum install mysql-server
Loaded plug-ins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* Base: mirrors.163.com
* Extras: mirrors.163.com
* Updates: centos.ustc.edu.cn
There is no available package for mysql-server.
Error: No need to handle [plain] view plaincopy

  1. # Wgethttp: // repo.mysql.com/mysql-community-release-el7-5.noarch.rpm

Http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm

Parsing host repo.mysql.com (repo.mysql.com)... 23.4.241.142
Connecting repo.mysql.com (repo.mysql.com) | 23.4.241.142 |: 80... already connected.
An HTTP request has been sent and is waiting for response... 200 OK
Length: 6140 (6.0 K) [application/x-redhat-package-manager]
Saving to: mysql-community-release-el7-5.noarch.rpm"
100% [============================================== >] 6,140 --. -0 s for K/s

(467 MB/s)-saved MySQL-community-release-el7-5.noarch.rpm [6140/6140])

[Plain] view plaincopy
  1. # Ls

Mysql-community-release-el7-5.noarch.rpm
[Plain] view plaincopy
  1. # Rpm-ivhmysql-community-release-el7-5.noarch.rpm
Preparing... ################################# [100%]
Upgrading/installing...

1: mysql-community-release-el7-5 ################################# [100%]

Ps: if the error "can't create transaction lock on/var/lib/rpm/. rpm. lock" occurs

Error cause: permission issues
Solution: Enter the "su" and password on the terminal and log on to the root user. No prompt will be displayed when you log on as the root user.

[Plain] view plaincopy
  1. # Ls-1/etc/yum. repos. d/mysql-community *
/Etc/yum. repos. d/mysql-community.repo

/Etc/yum. repos. d/mysql-community-source.repo

[Plain] view plaincopy
  1. # Yuminstallmysql-server

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.