• العربية
  • Azerbaijani
  • Català
  • 中文
  • Hrvatski
  • Čeština
  • Dansk
  • Nederlands
  • English
  • Estonian
  • Persian
  • Français
  • Deutsch
  • עברית
  • Magyar
  • Italiano
  • Macedonian
  • Norwegian
  • Português
  • Português
  • Română
  • Русский
  • Español
  • Svenska
  • Türkçe
  • Українська
  • Account
    • Login
    • Register
    • Forgot Password?
  • FairyHosting.com
    • Services
      • My Services
      • Order New Services
      • Domains
      • DNS MANAGER
    • Payment
      • Invoices
      • Add funds
      • Mass Payment
    • Support
    • Knowledgebase
    • Affiliates

      Categories

    Hestia CP
    2
    ISPmanager
    9
    Linux Server
    25
    Plesk
    14
    Windows Server
    14
    Fairy Disk Services
    4
    Mikrotik (RouterOS)
    8
    Server management
    19
    For a new client
    13

      Categories

      Tag Cloud

    Debian Восстановление root пароля CentOS7 Linux сброс root пароля CentOS7 сервер Password recovery Root password Ubuntu

      Support

    My Support Tickets
    Knowledgebase
    Open Ticket

    Password reset in MySQL Print

    • 168

    For root password reseting of MySQL data bases connect to server via SSH (we recommend use SSH client - Putty)

    Than sop MySQL :
    #
    service mysql stop (service will be named - mysqld)

    Start MySQL with specific rules:
    #
    mysqld_safe --skip-grant-tables &

    root
    #
    mysql -u root


    Further need to execute SQL request to change password for root:
    #
    update user set password=PASSWORD("newpassword") where User='root';
    where newpassword – is a new password

    Apply your changes :
    #
    FLUSH PRIVILEGES;


    Now you can leave from MySQL client by using command “exit” and restart MySQL server:
    #
    service mysql restart

     

     


    Was this answer helpful?

    Related Articles

    How to reset IPMI password Problem: Can't access to IPMI in web interfaces, but server still working any problem without.... Server data access via IPMIView20 program   You have a dedicated server with IPMI and data access, but what now? This article is about how... Disks storage are not visible after OS installation By using RAID massive and changing him configuration in some cases they may be invisible at... DNS-servers There are several ways to attach your domain to the VPS. Use our DNS-servers (recommended)... Zend Guard Loader installation To install Zend Guard Loader extensions chack PHP version on your server:# php -vLet's start...
    « Back

      Tag Cloud

    Debian Восстановление root пароля CentOS7 Linux сброс root пароля CentOS7 сервер Password recovery Root password Ubuntu

      Support

    My Support Tickets
    Knowledgebase
    Open Ticket
    • Billing
      • Services
      • Invoices
      • Support
      • Knowledgebase
    • Services
      • Virtual servers
      • Dedicated servers
      • Colocation
      • Business hosting
      • Fairy Disk
      • Routers for rent
      • SSL-Certificates
    • News
    • Company
      • About Us
      • Contacts
      • User agreement
      • Privacy policy
    • Technologies

      RJ Network OÜ
      Reg.nr 14694302
      VAT ID: EE102147829

      Narva: P. Kerese tn 5, 20309
      Tallinn: Paul Pinna 8, 13615

    Telegram Chat

    +372 6647001

    [email protected]

    Copyright © 2025 FairyHosting.com. All Rights Reserved.


    Loading...
    Loading...
    Choose language
    العربية
    Azerbaijani
    Català
    中文
    Hrvatski
    Čeština
    Dansk
    Nederlands
    English
    Estonian
    Persian
    Français
    Deutsch
    עברית
    Magyar
    Italiano
    Macedonian
    Norwegian
    Português
    Português
    Română
    Русский
    Español
    Svenska
    Türkçe
    Українська

    Generate Password

    Please enter a number between 8 and 64 for the password length