Fading Coder

One Final Commit for the Last Sprint

Home > Tech > Content

Installing MySQL Using YUM Package Manager

Tech May 9 15
# 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

Understanding Strong and Weak References in Java

Strong References Strong reference are the most prevalent type of object referencing in Java. When an object has a strong reference pointing to it, the garbage collector will not reclaim its memory. F...

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...

Leave a Comment

Anonymous

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