mysql报ERROR 2003错误的解决_MySQL
root@opensips.clvn.com.cn:/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
解决方法
root@opensips.clvn.com.cn# vim /etc/mysql/my.cnf
#bind-address = 127.0.0.1
重新启动mysql
root@opensips.clvn.com.cn# service mysql restart
mysql stop/waiting
mysql start/running, process 24719
再次执行
root@opensips.clvn.com.cn:/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.
问题解决
推荐阅读
-
mysql启动时出现ERROR 2003 (HY000)问题的解决方法
-
mysql出现Error performing load command的解决方法
-
mysql遇到load data导入文件数据出现1290错误的解决方案
-
mysql运行net start mysql报服务名无效的解决办法
-
mysql中错误:1093-You can’t specify target table for update in FROM clause的解决方法
-
MySQL 1303错误的解决方法(navicat)
-
mysql中异常错误ERROR:2002的解决方法
-
MySQL错误代码1862 your password has expired的解决方法
-
MYSQL error1044错误问题解决
-
mysql 发生系统错误1067的解决方法