在安装CloudStack时,通过mysql_secure_installation方式修改密码 01 [root@test ~]# /usr/bin/mysql_secure_installation 02 NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL 03 SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY! 04 05 In order
关闭使用条款确认: 在/portal-master/portal-impl/src/portal.properties配置文件中,有如下配置: # # Set this to true if all users are required to agree to the terms of use. # terms.of.use.required=true 修改为: # # Set this to true if all users are required to agree to the term
修改密码: //选择数据库 use mysql; //修改密码 update user set password=password('新密码') where user='root'; //立即生效 flush privileges 忘记管理员密码: 在my.ini的[mysqld]字段下面加入: skip-grant-tables 重启mysql服务,这时的mysql不需要密码即可登录数据库然后进入mysql use mysql;update user set password=password