修改DirectAdmin的Mysql ROOt密码的教程
使用
vi /etc/my.cnf
加上 skip-grant-tables
然后reload一次
SSH输入
mysql -u root -p
use mysql
update user set password=PASSWORD(“新密码”) where user=’root’;
quit
mysqladmin -u -root -p shotdown
service mysql restart
service mysqld stop
mysqld_safe –skip-grant-tables &
GRANT ALL PRIVILEGES ON *.* TO da_admin@localhost IDENTIFIED BY ‘新密码’ WITH GRANT OPTION;
FLUSH PRIVILEGES;
quit
好了 现在DA的用户mysql已经重新设置了
编辑 /usr/local/directadmin/conf/mysql.conf
设置
user=da_admin
passwd=你的新密码
搞定