首页 / 数据库 / MySQL / MySQL报ERROR 2003错误的解决
在创建opensips数据库时,mysql报下列错误root@www.linuxidc.com:/usr/local/opensips/sbin# ./opensipsdbctl create
MySQL password for root:
INFO: test server charset
ERROR 2003 (HY000): Can"t connect to MySQL server on "192.168.0.18" (111)
ERROR 2003 (HY000): Can"t connect to MySQL server on "192.168.0.18" (111)
WARNING: Failed to get the available and used character sets--------------------------------------分割线 --------------------------------------Ubuntu 14.04下安装MySQL http://www.linuxidc.com/Linux/2014-05/102366.htm《MySQL权威指南(原书第2版)》清晰中文扫描版 PDF http://www.linuxidc.com/Linux/2014-03/98821.htmUbuntu 14.04 LTS 安装 LNMP NginxPHP5 (PHP-FPM)MySQL http://www.linuxidc.com/Linux/2014-05/102351.htmUbuntu 14.04下搭建MySQL主从服务器 http://www.linuxidc.com/Linux/2014-05/101599.htmUbuntu 12.04 LTS 构建高可用分布式 MySQL 集群 http://www.linuxidc.com/Linux/2013-11/93019.htmUbuntu 12.04下源代码安装MySQL5.6以及Python-MySQLdb http://www.linuxidc.com/Linux/2013-08/89270.htm--------------------------------------分割线 --------------------------------------解决方法root@www.linuxidc.com# vim /etc/mysql/my.cnf#bind-address = 127.0.0.1
重新启动mysqlroot@www.linuxidc.com# service mysql restart
mysql stop/waiting
mysql start/running, process 24719再次执行root@www.linuxidc.com:/usr/local/opensips/sbin# ./opensipsdbctl create
MySQL password for root:
INFO: test server charset
INFO: creating database opensips ...
INFO: Core OpenSIPS tables succesfully created.
Install presence related tables? (y/n): y
INFO: creating presence tables into opensips ...
INFO: Presence tables succesfully created.
Install tables for imc cpl siptrace domainpolicy carrierroute userblacklist b2b registrant call_center? (y/n): y
INFO: creating extra tables into opensips ...
INFO: Extra tables succesfully created.问题解决本文永久更新链接地址