In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
As a lightweight open source database, mysql is widely used in enterprise applications. I've used mssql,oracle,postgresql,mysql before. Currently, there is no oracle on Aliyun. In terms of my personal use, I would prefer mysql to create a project.
Uninstall an existing mysql
The mysql database may already exist in the system, so we need to uninstall it before installing it.
# rpm-qa | grep-I mysql
This command will show the installed mysql software, and then uninstall the software one by one with the following command. Note: this uninstall is not complete, but there is enough here.
# yum remove 'Software name'
Today, I will briefly introduce the steps to install mysql on Ali Cloud. My personal operating system is CentOs of Aliyun ecs. First, download and install mysql-server from the official website:
Wget http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpmrpm-ivh mysql-community-release-el7-5.noarch.rpmyum install mysql-community-server
After the installation is successful, restart mysql:
Service mysqld restart
There is no password for the initial installation. We need to set the password for root. First, switch to the mysql command:
Mysql-u root
Set the password:
Mysql > set password for 'root'@'localhost' = password (' password')
Remote connection settings, by default, do not allow all ip to allow remote connections:
Mysql > grant all privileges on *. * to root@'%'identified by 'password'
The latest rules for inbound network direction in Ali Cloud no longer need to be set, and mysql is allowed to default to port 3306.
The above is the whole content of this article, I hope it will be helpful to your study, and I also hope that you will support it.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.