#!/bin/sh
# config the yum for local mirror site (china local site)
cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak
sed -i 's/^#baseurl/baseurl/g&
1、如果是admin的密码丢失,id = 1;其他用户以此类推:mysql -u root -pmysql> show databases;mysql> use cactidb;mysql> show tables;mysql> select * from user_auth;mysql> update user_auth set password=md5("newpassword") where id='1';mysql>