OpenSIPS启动时报ERROR:db_mysql:db_mysql_connect: driver error(1045)的解决方法
2014-06-13 21:17
2021 查看
启动OpenSIPS时,报下列错误
[root@OpenSIPS ~]# opensipsctl start
INFO: Starting OpenSIPS :
ERROR: PID file /var/run/opensips.pid does not exist -- OpenSIPS start failed
查看日志文件
[root@OpenSIPS ~]# tail /var/log/messages
Jun 4 13:34:36 OpenSIPS /sbin/opensips[53232]: ERROR:db_mysql:db_mysql_connect: driver error(1045): Access denied for user
'opensips'@'localhost' (using password: YES)
Jun 4 13:34:36 OpenSIPS /sbin/opensips[53232]: ERROR:db_mysql:db_mysql_new_connection: initial connect failed
Jun 4 13:34:36 OpenSIPS /sbin/opensips[53232]: ERROR:core:db_do_init: could not add connection to the pool
Jun 4 13:34:36 OpenSI
a3de
PS /sbin/opensips[53232]: ERROR:acc:acc_db_init: unable to connect to the database
Jun 4 13:34:36 OpenSIPS /sbin/opensips[53232]: ERROR:acc:mod_init: failed...did you load a database module?
Jun 4 13:34:36 OpenSIPS /sbin/opensips[53232]: ERROR:core:init_mod: failed to initialize module acc
Jun 4 13:34:36 OpenSIPS /sbin/opensips[53232]: ERROR:core:main: error while initializing modules
Jun 4 13:34:36 OpenSIPS /sbin/opensips[53232]: INFO:core:cleanup: cleanup
Jun 4 13:34:36 OpenSIPS opensips: INFO:core:daemonize: pre-daemon process exiting with -1
解决方法:
mysql> grant all privileges on opensips.* to opensips@localhost identified by 'opensipsrw';
Query OK, 0 rows affected (0.00 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
重新启动OpenSIPS
[root@OpenSIPS ~]# opensipsctl start
INFO: Starting OpenSIPS :
INFO: started (pid: 53374)
问题解决!
[root@OpenSIPS ~]# opensipsctl start
INFO: Starting OpenSIPS :
ERROR: PID file /var/run/opensips.pid does not exist -- OpenSIPS start failed
查看日志文件
[root@OpenSIPS ~]# tail /var/log/messages
Jun 4 13:34:36 OpenSIPS /sbin/opensips[53232]: ERROR:db_mysql:db_mysql_connect: driver error(1045): Access denied for user
'opensips'@'localhost' (using password: YES)
Jun 4 13:34:36 OpenSIPS /sbin/opensips[53232]: ERROR:db_mysql:db_mysql_new_connection: initial connect failed
Jun 4 13:34:36 OpenSIPS /sbin/opensips[53232]: ERROR:core:db_do_init: could not add connection to the pool
Jun 4 13:34:36 OpenSI
a3de
PS /sbin/opensips[53232]: ERROR:acc:acc_db_init: unable to connect to the database
Jun 4 13:34:36 OpenSIPS /sbin/opensips[53232]: ERROR:acc:mod_init: failed...did you load a database module?
Jun 4 13:34:36 OpenSIPS /sbin/opensips[53232]: ERROR:core:init_mod: failed to initialize module acc
Jun 4 13:34:36 OpenSIPS /sbin/opensips[53232]: ERROR:core:main: error while initializing modules
Jun 4 13:34:36 OpenSIPS /sbin/opensips[53232]: INFO:core:cleanup: cleanup
Jun 4 13:34:36 OpenSIPS opensips: INFO:core:daemonize: pre-daemon process exiting with -1
解决方法:
mysql> grant all privileges on opensips.* to opensips@localhost identified by 'opensipsrw';
Query OK, 0 rows affected (0.00 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
重新启动OpenSIPS
[root@OpenSIPS ~]# opensipsctl start
INFO: Starting OpenSIPS :
INFO: started (pid: 53374)
问题解决!
相关文章推荐
- OpenSIPS启动时报ERROR:db_mysql:db_mysql_connect: driver error(1045)的解决方法
- 解决opensips启动时报ERROR:uri:db_checks_fixup1: configuration error 错误
- 解决opensips启动时报ERROR:uri:db_checks_fixup1: configuration error 错误
- mysql一些问题的解决方法 ERROR 1045 (28000)|在同一服务器上启动不同端口
- mysql启动时报错:Starting MySQL... ERROR! The server quit without updating PID file (/opt/mysql/data/mysql.pid) 的解决方法
- mysql启动时报错:Starting MySQL... ERROR! The server quit without updating PID file (/opt/mysql/data/mysql.pid) 的解决方法
- MySQL登录时报ERROR 1045 (28000): Access denied for user 的解决方法
- Mysql启动错误:“InnoDB: Error: unable to create temporary file”的解决方法
- Fatal error: Call to undefined function: mysql_connect()解决方法
- unable to connect ip driver error code 2的解决方法
- MYSQL错误:Error Nr. 1045解决方法
- PHP连接MySQL报错:Fatal error: Call to undefined function mysql_connect()之解决方法
- unable to connect ip driver error code 2 解决方法
- MySQL/MariaDB 安装启动及设置和ERROR 1130 解决方法
- 安装MySQL最后一步出现错误Error Nr.1045解决方法
- Could not load db driver class: com.mysql.jdbc.Driver解决方法
- mysql增加新用户无法登陆解决方法 ERROR 1045 (28000): Access denied for user 'appadmin'@'localhost' (using password
- PHP连接MySQL报错:Fatal error: Call to undefined function mysql_connect()之解决方法
- MySQL出错:ERROR 1045 (28000)的解决方法
- mysql启动的error 2003和1067错误问题解决方法