In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
In this issue, Xiaobian will bring you about how to install MySQL 8.0.11 in Linux environment. The article is rich in content and analyzes and narrates from a professional perspective. After reading this article, I hope you can gain something.
1. Go to the official website to download the installation package
wget https://dev.mysql.com/get/Downloads/MySQL-8.0/mysql-8.0.11-linux-glibc2.12-i686.tar.gz
extract the files
tar -zxvf mysql-8.0.11-linux-glibc2.12-i686.tar.gz
2 Move the archive to usr/local and rename the file
mv /root/mysql-8.0.11-linux-glibc2.12-i686 /usr/local/mysql
3. Create a new folder data under MySQL root directory to store data
mkdir data
4. Create MySQL user groups and MySQL users
groupadd mysqluseradd -g mysql mysql
5. Change mysql directory permissions
chown -R mysql.mysql /usr/local/mysql/or chown -R mysql . chgrp -R mysql .
Notice one last thing.
6. initialize the database
Create mysql_install_db installation file
mkdir mysql_install_dbchmod 777 ./ mysql_install_db
initialization
bin/mysqld --initialize --user=mysql --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data //initialize database
or
/usr/local/mysql/bin/mysqld --initialize --user=mysql/usr/local/mysql/bin/mysqld --initialize --user=mysql/usr/local/mysql/bin/mysqld (mysqld 8.0.11) initializing of server in progress as process 5826 [Server] A temporary password is generated for root@localhost: twi=Tlsi
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.