我在azure(Azure mysql服务)中创建了mysql实例,并且我还从Azure市场(Ubuntu)创建了ejabberd。我已完成所有防火墙配置但无法连接。
错误:2018-03-20 13:31:08.248 [错误]< 0.897.0> @ejabberd_sql:log:935 p1_mysql_conn:错误9002: [35,50,56,48,48,48,83,83,76,32,99,111,110,110,101,99,116,105,111, 110,32,105,115,32,114,101,113,117,105,114,101,100,46,32,80,108,101,97,115,101,32 ,115,112,101,99,105,102,121,32,83,83,76,32,111,112,116,105,111,110,115,32,97,110 ,100,32,114,101,116,114,121,46,0] 2018-03-20 13:31:08.249 [错误] < 0.378.0> @ejabberd_sql:log:935 p1_mysql_conn:po st_start错误 login_failed 2018-03-20 13:31:08.249 [info] < 0.378.0> @ejabberd_sql:连接:324 mysql连接失败:
答案 0 :(得分:0)
检查您是否在MySql my.cnf文件中注释了这一行
#bind-address = 127.0.0.1
允许你的Ejabberd Ip到mysql
GRANT ALL ON *.* to root@'<<ejabberd private ip>>' IDENTIFIED BY '<<’mysql password’>>';
FLUSH PRIVILEGES;