In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
This article will explain in detail how to quickly install the script content of various versions of MySQL5-8, the content of the article is of high quality, so the editor will share it for you as a reference. I hope you will have some understanding of the relevant knowledge after reading this article.
MySQL 5.5.62
# stop service if there is MYSQL before / etc/init.d/mysqld stop# if MYSQL has been installed before, then back up the data directory tar-jcvf mysql.tar.bz2 / var/lib/mysql # uninstall the previously installed MYSQL software RPM rpm-qa | grep mysq | xargs rpm-e-nodeps# download MYSQL 5.5.62wget-- no-check-certificate https://zcdn.askmaclean.com/mysql-community-common-5.5.62-2 .el6.x86 _ 64.rpmwget-- no-check-certificate https://zcdn.askmaclean.com/mysql-community-libs-compat-5.5.62-2.el6.x86_64.rpmwget-- no-check-certificate https://zcdn.askmaclean.com/mysql-community-libs-5.5.62-2.el6.x86_64.rpmwget-- no-check-certificate https://zcdn.askmaclean.com/mysql-community-client-5.5.62-2.el6.x86 _ 64.rpmwget-- no-check-certificate https://zcdn.askmaclean.com/mysql-community-server-5.5.62-2.el6.x86_64.rpm# installs rpm-ivh mysql-community-libs-compat-5.5.62-2.el6.x86_64.rpm mysql-community-client-5.5.62-2.el6.x86_64.rpm mysql-community-common-5.5.62-2.el6.x86_64.rpm mysql-community-libs-5 .5.62-2.el6.x86_64.rpm mysql-community-server-5.5.62-2.el6.x86_64.rpm modify the datadir in / etc/my.cnf to your desired directory mkdir / @ @ datadir chown mysql:mysql / @ @ datadir mysql_install_dbchown-R mysql:mysql / @ @ datadir mysqld_safe & mysqlSET PASSWORD FOR 'root'@'localhost' = PASSWORD (' mysql') FLUSH PRIVILEGES;exit / etc/init.d/mysqld stop/etc/init.d/mysqld startmysql-uroot-pmysql
MySQL 5.6.46
# stop service if there is MYSQL before / etc/init.d/mysqld stop# if MYSQL has been installed before, then back up the data directory tar-jcvf mysql.tar.bz2 / var/lib/mysql # uninstall the previously installed MYSQL software RPM rpm-qa | grep mysq | xargs rpm-e-nodeps# download MYSQL 5.6.46wget-- no-check-certificate https://zcdn.askmaclean.com/mysql-community-common-5.6.46- 2.el6.x86_64.rpmwget-no-check-certificate https://zcdn.askmaclean.com/mysql-community-libs-compat-5.6.46-2.el6.x86_64.rpmwget-no-check-certificate https://zcdn.askmaclean.com/mysql-community-libs-5.6.46-2.el6.x86_64.rpmwget-no-check-certificate https://zcdn.askmaclean.com/mysql-community-client-5.6.46-2 .el6.x86 _ 64.rpmwget-- no-check-certificate https://zcdn.askmaclean.com/mysql-community-server-5.6.46-2.el6.x86_64.rpm# installs rpm-ivh mysql-community-libs-compat-5.6.46-2.el6.x86_64.rpm mysql-community-libs-5.6.46-2.el6.x86_64.rpm mysql-community-client-5.6.46-2.el6.x86_64.rpm mysql- Community-common-5.6.46-2.el6.x86_64.rpm mysql-community-server-5.6.46-2.el6.x86_64.rpm modify the datadir in / etc/my.cnf to your desired directory mkdir / @ @ datadir chown mysql:mysql / @ @ datadir mysql_install_dbchown-R mysql:mysql / @ @ datadir mysqld_safe & mysqlSET PASSWORD FOR 'root'@'localhost' = PASSWORD (' mysql') FLUSH PRIVILEGES;exit / etc/init.d/mysqld stop/etc/init.d/mysqld startmysql-uroot-pmysql
MySQL 5.7.28
> # stop service if there is MYSQL before / etc/init.d/mysqld stop# if MYSQL has been installed before, then back up the data directory tar-jcvf mysql.tar.bz2 / var/lib/mysql # uninstall the previously installed MYSQL software RPM rpm-qa | grep mysq | xargs rpm-e-nodeps# download MYSQL 5.7.28 wget-no-check-certificate https://zcdn.askmaclean.com/mysql-community-common-5.7 .28-1.el6.x86_64.rpmwget-- no-check-certificate https://zcdn.askmaclean.com/mysql-community-libs-compat-5.7.28-1.el6.x86_64.rpmwget-- no-check-certificate https://zcdn.askmaclean.com/mysql-community-libs-5.7.28-1.el6.x86_64.rpmwget-- no-check-certificate https://zcdn.askmaclean.com/mysql-community-client-5 .7.28-1.el6.x86_64.rpmwget-- no-check-certificate https://zcdn.askmaclean.com/mysql-community-server-5.7.28-1.el6.x86_64.rpmrpm-ivh mysql-community-common-5.7.28-1.el6.x86_64.rpm mysql-community-libs-compat-5.7.28-1.el6.x86_64.rpm mysql-community-libs-5.7.28-1.el6.x86_64. Rpm mysql-community-client-5.7.28-1.el6.x86_64.rpm mysql-community-server-5.7.28-1.el6.x86_64.rpm modify the datadir in / etc/my.cnf to the directory you want mkdir / @ @ datadir chown mysql:mysql / @ @ datadir mysqld-- initializechown-R mysql:mysql / @ @ datadir mysqld_safe-- skip-grant-tables & mysqlUPDATE mysql.user SET authentication_string = PASSWORD ('mysql') Password_expired ='N' WHERE User = 'root' AND Host =' localhost' FLUSH PRIVILEGES;exit / etc/init.d/mysqld stop/etc/init.d/mysqld startmysql-uroot-pmysql
MySQL 8.0.17
> > # stop the service if there is MYSQL before / etc/init.d/mysqld stop# if MYSQL has been installed before then backup the data directory tar-jcvf mysql.tar.bz2 / var/lib/mysql # uninstall the previously installed MYSQL software RPM rpm-qa | grep mysq | xargs rpm-e-nodeps# download MYSQL 8.0.17wget-- no-check-certificate https://zcdn.askmaclean.com/mysql-community-common-8.0.17 -1.el6.x86_64.rpmwget-- no-check-certificate https://zcdn.askmaclean.com/mysql-community-libs-8.0.17-1.el6.x86_64.rpmwget-- no-check-certificate https://zcdn.askmaclean.com/mysql-community-client-8.0.17-1.el6.x86_64.rpmwget-- no-check-certificate https://zcdn.askmaclean.com/mysql-community-server-8.0.17-1. El6.x86_64.rpmrpm-ivh mysql-community-client-8.0.17-1.el6.x86_64.rpm mysql-community-common-8.0.17-1.el6.x86_64.rpm mysql-community-libs-8.0.17-1.el6.x86_64.rpm mysql-community-server-8.0.17-1.el6.x86_64.rpm modify the datadir in / etc/my.cnf to the directory you want mkdir / @ @ datadir chown mysql: Mysql / @ @ datadir mysqld-- initializechown-R mysql:mysql / @ @ datadir mysqld_safe-- skip-grant-tables & mysql UPDATE mysql.user SET authentication_string=null WHERE User='root' FLUSH PRIVILEGES;exit;/etc/init.d/mysqld stop / etc/init.d/mysqld startmysqlALTER USER 'root'@'localhost' IDENTIFIED BY' mysql';FLUSH PRIVILEGES;exit;mysql-uroot-pmysql on how to quickly install various versions of MySQL5-8 script content is shared here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
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: 262
*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.