Skip to content

Instantly share code, notes, and snippets.

View tassoman's full-sized avatar
🪲
is bugging things

Tassoman tassoman

🪲
is bugging things
View GitHub Profile
@tassoman
tassoman / 01 mysql.reset.sh
Last active December 4, 2025 11:01 — forked from Artistan/.1. mysql.reset.sh
Reset Master (root) MySQL/MariaDB Password -- Debian
service mysql stop
mkdir -p /var/run/mysqld
chown mysql. /var/run/mysqld
/usr/bin/mysqld_safe --skip-grant-tables --skip-networking &
mysql -u root < reset.sql
# do the reset.sql stuff...
killall mysqld
killall mysqld_safe
service mysql start