# freeswitch使用mysql替换sqllite
> freeswitch默认使用sqllite作为数据库,可以使用mysql来替代
## 1. 安装驱动
``` linux
yum install unixODBC-devel mysql-connector-odbc
odbcinst -j
```
## 2. 添加数据库信息
``` linux
# vim /etc/odbc.ini
[freeswitch]
Driver = MySQL
SERVER = localhost
PORT = 3306
DATABASE = myDatabase
OPTION = 67108864
Socket = /var/lib/mysql/mysql.sock
```
## 3. 测试是否可用
``` linux
isql freeswitch -v
```
## 4. 编译
编译方式和之前没区别, 增加参数 `./configure --enable-core-odbc-support`
## 5. 更改配置
``` linux
[root@aliyun-storage freeswitch]# cd /etc/freeswitch
[root@aliyun-storage freeswitch]# grep -ir dsn
autoloa