In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Xiaobian to share with you the yum command installation mysql method, I believe most people still do not know how, so share this article for everyone's reference, I hope you have a lot of harvest after reading this article, let's go to understand it together!
yum command to install mysql: directly execute the command [yum -y install mysql-server mysql-devel]. After installation, you can execute [service mysqld start] command to start mysql.
Purpose:
Install mysql database using yum command.
Environment: Centos 6.4 System
Specific methods:
1. Check whether mysql included in the system has been installed and execute the command:
yum list installed | grep mysql
2. If it is installed, uninstall it using the command:
yum -y remove mysql-libs.x86_64
3. Check the version information of mysql on the yum library. Command:
yum list |grep mysql or yum -y list mysql*
4. Use yum to install mysql database, using the command:
yum -y install mysql-server mysql mysql-devel
5. To view mysql version information, command:
rpm -qi mysql-server
Start MySQL and execute the command:
service mysqld start
If you want to start, execute the command:
chkconfig mysqld on
7. Database Security Configuration Wizard, execute the command:
mysql_secure_installation
Follow the prompts step by step.
8. Log in to mysql, set the login password in the security configuration, and execute the command:
mysql -uroot -p The above is all the contents of the yum command to install mysql. Thank you for reading! I believe that everyone has a certain understanding, hope to share the content to help everyone, if you still want to learn more knowledge, welcome to pay attention to the industry information channel!
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.