Lost Incredible PBX password after installation

1,Change MySQL password
Get Debian mysql password
$sudo cat /etc/mysql/debian.cnf | grep -i password
$mysql -u debian-sys-maint -p

mysql> UPDATE mysql.user SET Password=PASSWORD(‘new password’) WHERE User=’root’;
mysql> FLUSH PRIVILEGES;
mysql> quit;
$mysql_secure_installation

2,Change PBX Web password
$mysql -u root
mysql>use asterisk
mysql> update ampusers set password_sha1 = sha1(‘newpass’) where username = ‘admin’ limit 1 ;
mysql> flush privileges;
mysql> quit

发表评论

电子邮件地址不会被公开。 必填项已用*标注