질문&답변
클라우드/리눅스에 관한 질문과 답변을 주고 받는 곳입니다.
리눅스 분류

sql이 문제인듯 한데 정확히 모르겠습니다.

작성자 정보

  • 레익휘 작성
  • 작성일

컨텐츠 정보

본문



안녕하세요
다름아니라 기존에 php페이지를 통해서
가공된 데이터를 저장, 납품을 시행하는게 있는데요
기존에 mysql 계정이

DB 명은 project고
root, root1234

였습니다.

그러다가 며칠전에 사내 서버 관리를 위해서 cacti를 설치해서 사용하고 있는데요
사용하는 과정에서 제가 기존 root 계정 비밀번호를 몰라서
한번변경하였다가

다시 기존의 비밀번호 root1234로 변경했습니다.

근데 그 이후로 위의 그림과 같이

[시료명] 부분에 따로 생성된 데이터 다운로드 link와, 시료의 이름이 생성되어 나오지를 않는데요,


이게 mysql  계정 바꾼것 때문에 그런가요?
아니면 다른 것 때문에 그런 것인지 알고 싶습니다;;;

지금 상품 주문에 따라
정보를 보내주긴 해야하는데,
시료명이 보이지를 않아서 제대로 납품을 못하고 있습니다 ;ㅁ;

변경사항이라면 cacti 설치밖에 없는데요,


아래애 cacti 설정에 사용했던 설치방법입니다.

혹시 이 과정에서 문제가 되었을까요?
--------------------------------------------
1. yum에 cacti 설정
[root@image ~]# vi /etc/yum.repos.d/cacti.repo
[cacti]
name=Dag RPM Repository for CentOS
baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
gpgcheck=0
enabled=1
protect=0


2. yum update
[root@image ~]# yum update


3. 필수 package 설치
[root@image ~]# yum -y install gcc gcc-c++ kernel kernel-devel net-snmp net-snmp-utils mysql mysql-server httpd php php-mysql php-snmp rrdtool tcl clamav libtool


4. cacti 설치 및 conf 설정
[root@image ~]# yum install cacti

[root@image ~]# vi /etc/httpd/conf.d/cacti.conf
Alias /cacti/ /var/www/cacti/
<Directory /var/www/cacti/>
    DirectoryIndex index.php
    Options -Indexes
    AllowOverride all
    order deny,allow
    deny from all
    allow from all
    AddType application/x-httpd-php .php
    php_flag magic_quotes_gpc on
    php_flag track_vars on
</Directory>

[root@image ~]# service httpd start

5. mysql 설정(참고: /var/www/cacti/include/config.php)

/* make sure these values refect your actual database/host/user/password */
$database_type = "mysql";
$database_default = "cacti";
$database_hostname = "localhost";
$database_username = "cactiuser";
$database_password = "cactiuser";
$database_port = "3306";


6. DB 접속 및 cacti 계정 생성

[root@image ~]# mysql
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 3391
Server version: 5.0.77 Source distribution

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> grant all on cacti.* to cactiuser@localhost identified by 'cactiuser';
Query OK, 0 rows affected (0.01 sec)
 
mysql> flush privileges;
Query OK, 0 rows affected (0.01 sec)

mysql> create database cacti;
Query OK, 1 rows affected (0.00 sec)

[root@image ~]# service mysqld start


7. cacti DB importing

[root@image ~]# cd /var/www/cacti/
[root@image ~]# mysql -u cactiuser -p cacti < cacti.sql


8. cacti DB 확인

[root@image ~]# mysql
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 3391
Server version: 5.0.77 Source distribution

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| cacti              |
| mysql              |
| test               |
+--------------------+
4 rows in set (0.00 sec)

mysql>


9. snmp 설정 및 실행

[root@image ~]# vi /etc/snmp/snmpd.conf
com2sec public  default       public        <= 41행
group   public          v1           public        <= 48행
group   public          v2c          public        <=49행
view    all             included   .1                <= 59행
60행 주석(#)처리 또는 삭제
access  public ""      any       noauth    exact  all none none        <= 65행
:wq!

[root@image ~]# service snmpd start


10. 기타 설정

[root@image ~]# chown -R cacti /var/www/cacti
[root@image ~]# chmod 777 rra log


웹브라우저에 아래와 같이 실행
http://cacti서버ip/cacti/

ID/PW : admin/admin => 암호 수정

관련자료

댓글 0
등록된 댓글이 없습니다.

공지사항


뉴스광장


  • 현재 회원수 :  60,038 명
  • 현재 강좌수 :  35,813 개
  • 현재 접속자 :  116 명