In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Download the 1.mysql tar file:
Https://dev.mysql.com/downloads/mysql/5.6.html#downloads
two。 Enter the directory where the installation package is located
Execute command: tar mysql-5.6.17-linux-glibc2.5-i686.tar.gz
3. Copy the extracted mysql directory to the system's local software directory:
Execute the command: cp mysql-5.6.17-linux-glibc2.5-i686 / usr/local/mysql-r
4. Add system mysql groups and mysql users:
Execute commands: groupadd mysql and useradd-r-g mysql mysql
5. Install the database:
Enter the directory to install the mysql software: execute the command cd / usr/local/mysql
Change the current directory owner to mysql user: execute the command chown-R mysql:mysql. /
Install the database: execute the command. / scripts/mysql_install_db-- user=mysql
Change the current directory owner to root user: execute the command chown-R root:root. /
Change the current data directory owner to mysql user: execute the command chown-R mysql:mysql data
6. Start the mysql service and add boot startup mysql service:
Add boot boot: execute the command cp support-files/mysql.server / etc/init.d/mysql, and put the startup script in the boot initialization directory
Start the mysql service: execute the command service mysql start
Execute command: ps-ef | grep mysql sees the mysql service and indicates that it started successfully.
7. Modify the root user password of mysql. The initial root password is empty:
Execute the command:. / bin/mysqladmin-u root password 'password'
8. Put the mysql client in the default path:
Ln-s / usr/local/mysql/bin/mysql / usr/local/bin/mysql
Note: it is recommended to use soft chain, do not directly package file copy, to facilitate the system to install multiple versions of mysql
Summary
The above is the installation steps of mysql under linux introduced by the editor. I hope it will be helpful to you. If you have any questions, please leave a message for me, and the editor will reply you in time. Thank you very much for your support to the website!
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.