Fading Coder

One Final Commit for the Last Sprint

Home > Tech > Content

Installing MySQL Using YUM Package Manager

Tech May 9 3
# Check system information
$ uname -r          # Display kernel version
$ cat /etc/os-release  # Show distribution details

# Add MySQL YUM repository
$ wget https://dev.mysql.com/get/mysql80-community-release-el7-3.noarch.rpm
$ sudo yum localinstall -y mysql80-community-release-el7-3.noarch.rpm

# Install MySQL server
$ sudo yum install -y mysql-community-server

# Start and verify MySQL service
$ sudo systemctl start mysqld
$ sudo systemctl status mysqld
$ mysql --version

# Secure initial setup
$ sudo grep 'temporary password' /var/log/mysqld.log
$ mysql -u root -p  # Login with temporary password
mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'NewSecurePass123!';
mysql> FLUSH PRIVILEGES;

# Adjust password policy (if needed)
mysql> SET GLOBAL validate_password.policy=LOW;
mysql> SET GLOBAL validate_password.length=6;
mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'simplepass';
mysql> FLUSH PRIVILEGES;

# Enable remote access
mysql> UPDATE mysql.user SET host='%' WHERE user='root';
mysql> FLUSH PRIVILEGES;

# Verify installation
$ mysql -u root -p -e "SELECT VERSION();"

Related Articles

Comprehensive Guide to SSTI Explained with Payload Bypass Techniques

Introduction Server-Side Template Injection (SSTI) is a vulnerability in web applications where user input is improper handled within the template engine and executed on the server. This exploit can r...

Implement Image Upload Functionality for Django Integrated TinyMCE Editor

Django’s Admin panel is highly user-friendly, and pairing it with TinyMCE, an effective rich text editor, simplifies content management significantly. Combining the two is particular useful for bloggi...

SBUS Signal Analysis and Communication Implementation Using STM32 with Fus Remote Controller

Overview In a recent project, I utilized the SBUS protocol with the Fus remote controller to control a vehicle's basic operations, including movement, lights, and mode switching. This article is aimed...

Leave a Comment

Anonymous

◎Feel free to join the discussion and share your thoughts.