Access denied for user 'root'@'localhost' (using password: NO) getting error while installation of frappe-bench

Hi @eliyaskhan18,

Install MariaDB before aply Easy Install Script.

sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xF1656F24C74CD1D8
20
sudo add-apt-repository ‘deb [arch=amd64] Index of /repo/10.4/debian/ buster main’
[or]
21
apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8 -not work deb 10
22
add-apt-repository ‘deb [arch=amd64] http://ftp.utexas.edu/mariadb/repo/10.5/ubuntu bionic main’ -not work deb 10
23
apt-get update
24
apt-get install mariadb-server
25
systemctl start mariadb
26
systemctl enable mariadb
27
mysql_secure_installation
28
Enter current password for root (enter for none): press enter
29
30
Change the root password? [Y/n]: y
31
New password: yourdbpass
32
Re-enter new password: yourdbpass
33
Password updated successfully!
34
Reloading privilege tables…
35
… Success!
36
37
Remove anonymous users? [Y/n] y
38
Disallow root login remotely? [Y/n] y
39
Remove test database and access to it? [Y/n] y
40
Reload privilege tables now? [Y/n] y
[or]
change mariadb password

sudo /etc/init.d/mysql stop

sudo mysqld_safe --skip-grant-tables &

mysql -uroot

use mysql;

update user set authentication_string=PASSWORD(“admindb”) where User=‘root’;

flush privileges;

quit

sudo /etc/init.d/mysql stop

sudo /etc/init.d/mysql start