Displaying 1 result from an estimated 1 matches for "impcdr2sql".
2004 Jun 02
0
Script to import Master.csv in the MySQL database - a short HowTo
...'cdr' table in MySQL before running the script bellow in oder to
prevent dupplicate records.
In my example, I have the following config:
CDR database: asteriskcdrdb
CDR table: cdr
CVS file: /var/log/asterisk/cdr-csv/Master.csv
1. Create a file named 'impcdr2sql' with the following content:
#!/bin/bash
# make a copy of the original Master.csv file to Master.csv.mod
cp -vf /var/log/asterisk/cdr-csv/Master.csv
/var/log/asterisk/cdr-csv/Master.csv.mod
# format the file to comply with the MySQL data (delete '"' chars when need
it)
# use a V...