Skip to main content

Change MySQL Password

Changing MySQL Password

To change the MySQL password for the user user_iptvpro, follow these steps:

  1. Login to MySQL:

    sudo mysql -u root
  2. Change Password:

    ALTER USER 'user_iptvpro'@'%' IDENTIFIED BY 'NEWPASS';
    GRANT ALL PRIVILEGES ON xtream_iptvpro.* TO 'user_iptvpro'@'%' WITH GRANT OPTION;
    FLUSH PRIVILEGES;
  3. Create a New User:

    Creating a User with IP Restriction: You can create a user for each load balancer (LB) with IP restriction. For localhost, delete the current user and create a new one:

    DROP USER 'user_iptvpro'@'%';
    CREATE USER 'user_iptvpro'@'127.0.0.1' IDENTIFIED BY 'NEWPASS';
    GRANT ALL PRIVILEGES ON xtream_iptvpro.* TO 'user_iptvpro'@'127.0.0.1' WITH GRANT OPTION;
    FLUSH PRIVILEGES;
  4. Create a User for Each LB:

    Create a user for each IP. The password can be the same or different. Replace 123.123.123.123 with the LB IP:

    CREATE USER 'user_iptvpro'@'123.123.123.123' IDENTIFIED BY 'NEWPASS';
    GRANT SELECT, INSERT, UPDATE, DELETE ON xtream_iptvpro.* TO 'user_iptvpro'@'123.123.123.123' WITH GRANT OPTION;
    FLUSH PRIVILEGES;
  5. Update Congfiguration Files:

    After changing the password, update the configuration files with the new password.

    wget https://bitbucket.org/emre1393/xtreamui_mirror/downloads/config.py && python config.py ENCRYPT
  6. Password Generation with Norton:

  7. Security Measures:

    • Block admin panel connections from outside using Nginx or a firewall, and allow only certain IPs.
    • Search online for more information on how to do this.