service mysqld stop (Redhat)
mysqld_safe --skip-grant-tables &
service mysqld stop
mysqld_safe --skip-grant-tables &
use mysql
UPDATE user SET password=PASSWORD('newpass') WHERE user='root';
FLUSH PRIVILEGES;
quit
use mysql
UPDATE user SET password=PASSWORD('abc123') WHERE user='root';
FLUSH PRIVILEGES;
quit
use mysql
UPDATE user SET password=PASSWORD(abc123) WHERE user='root';
FLUSH PRIVILEGES;
quit
mysql -uroot -p
GRANT ALL PRIVILEGES ON *.* TO da_admin@localhost IDENTIFIED BY '[B]newdapass[/B]' WITH GRANT OPTION;
FLUSH PRIVILEGES;
quit
Now change the password in /usr/local/directadmin/conf/mysql.conf.