how to reset da_admin for phpmyadmin's password?

Code:
service mysqld stop
mysqld_safe --skip-grant-tables &
 
use mysql
UPDATE user SET password=PASSWORD('newpass') WHERE user='root';
FLUSH PRIVILEGES;
quit

let said i want to set the password for username da_admin to abc123.

the cmd is as below ?

use mysql
UPDATE user SET password=PASSWORD('abc123') WHERE user='root';
FLUSH PRIVILEGES;
quit

or

use mysql
UPDATE user SET password=PASSWORD(abc123) WHERE user='root';
FLUSH PRIVILEGES;
quit

PS: need to insert ' ' symbol?
 
This is for root (and not da_admin). 1st command is okay. For da_admin use:
Code:
mysql -uroot -p
Enter MySQL root password, then:
Code:
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.
 
Back
Top