Тёмный

How to reset mysql server root password on Unix,MacOS(2024) 

HOW TO STEP BY STEP
Подписаться 214
Просмотров 1,5 тыс.
50% 1

There can be chances you lost root password and need to reset it. Following are steps mentioned below.
Error
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
Steps :
System Preferencs
Stop mysql server
Login to terminal
Sudo pkill mysqld
cd /usr/local/mysql/bin
Sudo mysqld_safe --skip-grant-tables --skip-networking
cd /usr/local/mysql/bin
mysql -u root
FLUSH PRIVILEGES;
ALTER USER 'root'@'localhost' IDENTIFIED BY 'Test@1234’;
FLUSH PRIVILEGES;
Quit;
Sudo pkill mysqld

Опубликовано:

 

15 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 3   
@jadvindersingh5500
@jadvindersingh5500 29 дней назад
On new versions of mac, I do not see the system preferences it is showing system settings instead.
@AdityaKumar-cu7zg
@AdityaKumar-cu7zg 14 дней назад
It's giving error mysql -u root ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
@gamingrowdy786
@gamingrowdy786 Месяц назад
niceee hnn
Далее
NEVER install these programs on your PC... EVER!!!
19:26
zsh command not found mysql - Fix Provided
6:21
Просмотров 28 тыс.
How to Install MySQL on Mac [2024]
6:27
Просмотров 11 тыс.
How to Reset Forgotten Password on Kali Linux
3:07
Просмотров 340 тыс.
How to Reset Admin (root) Password on MySQL
6:11
Просмотров 86 тыс.