今天一台freeiris SIP服务器挂了,只能通过MYSQL查询数据,所以打算导出数据库,发现原来mysql密码是空的,所以操作以下步骤:
mysql> SET PASSWORD FOR ‘root’@’localhost’ = PASSWORD(‘123456’);
mysql> GRANT ALL PRIVILEGES ON *.* TO ‘root’@’%’ IDENTIFIED BY ‘123456’;
mysql> FLUSH PRIVILEGES;
mysql> exit
OK,现在可以在别的机器上通过mysql客户端软件访问了!