Welcome to World of IPTV

Join us now to get access to all our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, and so, so much more. It's also quick and totally free, so what are you waiting for?

Forum Rules

Our Rules: Read to avoid getting banned!

Advertising

Introduce Yourself to the World with Us!

Resource Database

Find the newest resources around IPTV!

Account upgrade

Upgrade your account to unlock more benefits!

How to reset Xtream Codes MySQL Root Password?

redhat

Administrator
Staff member
Administrator
Joined
Jun 19, 2019
Messages
3,298
Reaction score
15,885
Points
134
Location
root[@]woi
Once you don't remember the Xtream Codes MySQL Root Password you set during the Main Server installation, you can reset it with the following steps.


Reset a MySQL root password


Connect to your Main Server with putty


Stop the MySQL service

(Ubuntu and Debian) Run the following command:
Bash:
sudo /etc/init.d/mysql stop

(CentOS, Fedora, and Red Hat Enterprise Linux) Run the following command:
Bash:
sudo /etc/init.d/mysqld stop


Start MySQL without a password

Run the following command. The ampersand (&) at the end of the command is required.
Bash:
sudo mysqld_safe --skip-grant-tables &


Connect to MySQL

Run the following command:
Bash:
mysql -uroot


Set a new MySQL root password

Run the following command:
Bash:
use mysql;
update user set authentication_string=PASSWORD("mynewpassword") where User='root';
flush privileges;
quit

Note: Change mynewpassword with your own password

Stop and start the MySQL service
(Ubuntu and Debian) Run the following commands:
Bash:
sudo /etc/init.d/mysql stop
...
sudo /etc/init.d/mysql start

(CentOS, Fedora, and Red Hat Enterprise Linux) Run the following commands:
Bash:
sudo /etc/init.d/mysqld stop
...
sudo /etc/init.d/mysqld start


Log in to the database

Test the new password by logging in to the database.
Bash:
mysql -u root -p

Enter your new password when prompted.
 
Last edited by a moderator:
Please note that if you change your password then you will also need to 'remake' your main panel server with the updated MySQL password otherwise you will have a dead panel.
 
Channels MatchTime Unblock CDN Offshore Server Contact
100 cnx / 90€ 5Gbps / 180€ 48CPU-256GRAM 10Gbps 569€ Skype live:giefsl
500 cnx / 350€ 10Gbps / 350€ 48CPU-128GRAM 5Gbps / 349€ TG @changcdn
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com
Hey @redhat , seeing we dont have a panel anymore , do you think we can reset the mysql password?
Id like to change a few things into database (like expiry dates) but the MySql password was put in by XC itself..
 
Channels MatchTime Unblock CDN Offshore Server Contact
100 cnx / 90€ 5Gbps / 180€ 48CPU-256GRAM 10Gbps 569€ Skype live:giefsl
500 cnx / 350€ 10Gbps / 350€ 48CPU-128GRAM 5Gbps / 349€ TG @changcdn
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com
Once you don't remember the Xtream Codes MySQL Root Password you set during the Main Server installation, you can reset it with the following steps.


Reset a MySQL root password


Connect to your Main Server with putty


Stop the MySQL service

(Ubuntu and Debian) Run the following command:
Bash:
sudo /etc/init.d/mysql stop

(CentOS, Fedora, and Red Hat Enterprise Linux) Run the following command:
Bash:
sudo /etc/init.d/mysqld stop


Start MySQL without a password

Run the following command. The ampersand (&) at the end of the command is required.
Bash:
sudo mysqld_safe --skip-grant-tables &


Connect to MySQL

Run the following command:
Bash:
mysql -uroot


Set a new MySQL root password

Run the following command:
Bash:
use mysql;
update user set authentication_string=PASSWORD("mynewpassword") where User='root';
flush privileges;
quit

Note: Change mynewpassword with your own password

Stop and start the MySQL service
(Ubuntu and Debian) Run the following commands:
Bash:
sudo /etc/init.d/mysql stop
...
sudo /etc/init.d/mysql start

(CentOS, Fedora, and Red Hat Enterprise Linux) Run the following commands:
Bash:
sudo /etc/init.d/mysqld stop
...
sudo /etc/init.d/mysqld start


Log in to the database

Test the new password by logging in to the database.
Bash:
mysql -u root -p

Enter your new password when prompted.
thanks for the info
 
hello good morning, it doesn't work for me in the second command and my server is giving me an error with ubuntu 18
 
Channels MatchTime Unblock CDN Offshore Server Contact
100 cnx / 90€ 5Gbps / 180€ 48CPU-256GRAM 10Gbps 569€ Skype live:giefsl
500 cnx / 350€ 10Gbps / 350€ 48CPU-128GRAM 5Gbps / 349€ TG @changcdn
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com
Thanks a lot for most important thing . always must remember that we can back our sql password
 
Thank you. Really helpful.
 
shape1
shape2
shape3
shape4
shape5
shape6
Back
Top