SecureAnyCloud
Golden Images
  • About SecureAnyCloud
  • AWS CFT for WAMP with Aurora
    • Introduction
      • Overview
      • Resources
      • High Availability
      • Deployment time
    • Architecture
    • Getting Started
      • Pre-Requisites
    • Configuration
      • Service Limits
      • Network Configuration
      • Backup, maintenance & recovery
        • DR Strategy
    • After deployment
      • Support
      • SLA
      • Health Check
      • Auto-Scaling
    • Security Best Practices
      • Security for Amazon Aurora
        • Encryption
      • AWS EC2 Security
      • Secrets Management
        • Rotating Keys
      • Public Assets
    • Instance Sizing
    • Costing
  • CFT: Secured WAMP With Aurora - Windows 2016
  • MySql Change Password
  • PHP on cloud
  • [Stack_Name]
Powered by GitBook
On this page

Was this helpful?

MySql Change Password

Many a time your security scan shall fail for having

/etc/mysql/debian.cnf file in your linux instance. Typically, after a image has been made, you need to remove this file and set a special user debian-sys-maint which can be used to reset your root user login.

Step 1:

mysql -u debian-sys-maint -p%oldpassword%

(replace %oldpassword% with the password you are being given by us when you first time do SSH to your instance)

Step2:

SET PASSWORD = PASSWORD(‘%newpassword%’);

(replace %newpassword% with the new password)

Step3:

exit

Step 4:

Now you can login with this user and set password for any user including root

Mysql Debian conf file vulnerability remediation on public clouds – AWS Azure GCP Oracle04.16.2022

PreviousCFT: Secured WAMP With Aurora - Windows 2016NextPHP on cloud

Last updated 1 year ago

Was this helpful?