#mysql msyql>create database cacti; ②导入cacti.sql #mysql -u root -p cacti < /var/www/html/cacti/cacti.sql 有密码的输入密码,没密码的直接回车 ③应用 mysql> use cacti create database cacti DEFAULT CHARACTER SET utf8;
grant all on cacti. * to cacti@localhost identified by '123456';
yum安装失败时,这里要先添加yum源,要不然Yum不到我们想要的东西 vi /etc/yum.repos.d/CentOS-Base.repo [dag] name=Dag RPM Repository for Red Hat Enterprise Linux baseurl= gpgcheck=1 gpgkey= enabled=1 然后yum一下我们想要的东西