Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Centos6.5 uses CD-ROM mount image configuration yum source installation mysql5.7 tutorial

2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces Centos6.5 using CD-ROM mount image configuration yum source installation mysql5.7 tutorial, the contents of the article are carefully selected and edited by the author, with a certain pertinence, for everyone's reference significance or greater significance, the following with the author to understand the Centos6.5 use CD-ROM mount image configuration yum source installation mysql5.7 tutorial bar.

1. CD mount image configuration yum source

1. Mount the CD image

Mount / dev/cdrom / media # Mount the CD system files to the / media folder

2. Configure CD-ROM yum source repo configuration file

Cd / etc/yum.repo.d # switch to the yum configuration file directory

Mkdir repos_bak # create a repos configuration file backup folder

Mv * .repo repos_bak # move the original repo configuration file to the repos_bak backup folder

Touch Centos-Base.repo # create Centos-Base.repo file

Vi / Centos-Base.repo # Editing the Centos-Base.repo file

[base]

Name=Base

Baseurl= file:///media

Gpgcheck=0

Yum clean all # clear cache

Yum makecache # create a new cache

Yum repolist # View the repo list of yum

Install the corresponding software packages and databases from the local yum source

1. The dependent installation packages need to be installed in advance: libaio, perl,numactl

Yum-y install libaio

Yum-y install perl

Yum-y install numactl

2. Search for the existence of mysql files

Rpm-qa | grep mysql # query mysql file

Rpm-e mysql-libs-5.1.71.-1.el6.x86_64-- nodeps # powerful delete mode

three. Upload the rpm package of mysql5.7 to the / home/tools/mysql path

Mkdir / home/tools/mysql # create / home/tools/mysql folder

Cd / home/tools/mysql # switch to / home/tools/mysql folder

4. Download the mysql5.7.13rpm package

Download address: http://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.13-1.el6.x86_64.rpm-bundle.tar

Upload mysql5.7.13rpm package to / home/tools/mysql folder

Tar-xvf mysql-5.7.13-1.el6.x86_64.rpm-bundle.tar

5. Install mysql files

Rpm-ivh mysql-community-common-5.7.13-1.el6.x86_64.rpm

Rpm-ivh mysql-community-libs-5.7.13-1.el6.x86_64.rpm

Rpm-ivh mysql-community-client-5.7.13-1.el6.x86_64.rpm

Rpm-ivh mysql-community-server-5.7.13-1.el6.x86_64.rpm

6. Start the mysql service

Cd / usr/bin

Mysqld-initialize-user=mysql # initialize the database

Service mysqld start # restart the database

7. View mysql default password

Grep "root@localhost" / var/log/mysqld.log view database default password

Log in to the database, set the initial password, etc.

1. Login data:

Mysql-uroot-p

two。 Change the database login password:

Mysql > alter user 'root'@'localhost' identified by' passw0rd'

3. Allow remote connections

Mysql > use mysql

Mysql > update user set host='%'where host='localhost' and user='root'

Mysql > flush privileges

Uninstall the CD-ROM drive

Umonut / media/

5. Verify the database

Service mysqld stop

Service mysqld start

Mysql-uroot-ppassw0rd

After reading the above about Centos6.5 using CD-ROM mount image configuration yum source installation mysql5.7 tutorial, many readers must have some understanding, if you need to get more industry knowledge and information, you can continue to follow our industry information column.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report