asterisk can't connect to mysql
After a fresh internet based install, I tried to register some sip-phones unsuccessfully. Checking /var/log/asterisk/full I found the following:
WARNING[chan_sccp.c: Failed to bind to 192.168.80.1:2000: Cannot assign requested address!
NOTICE[3074](2721]) chan_sip.c: Registration from '"Wohnzimmer" <sip:202@192.168.80.1>' failed for '192.168.80.166:5060' - No matching peer found NOTICE[chan_sip.c: Registration from '"Wohnzimmer" <sip:202@192.168.80.1>' failed for '192.168.80.166:5060' - No matching peer found NOTICE[3074](3074]) chan_sip.c: Registration from '"Kche" <sip:203@192.168.80.1>' failed for '192.168.80.166:5060' - No matching peer found NOTICE[chan_sip.c: Registration from '"Kche" <sip:203@192.168.80.1>' failed for '192.168.80.166:5060' - No matching peer found ERROR[3074](3074]) res_config_mysql.c: MySQL RealTime: Ping failed (2006). Trying an explicit reconnect. ERROR[res_config_mysql.c: MySQL RealTime: Failed to connect database server asterisk on localhost (err 2002). Check debug for more info.
ERROR[3074](3074]) res_config_mysql.c: MySQL RealTime: Failed to connect database server asterisk on localhost (err 2002). Check debug for more info.
NOTICE[loader.c: 1 modules will be loaded. NOTICE[2414](2414]) config.c: Registered Config Engine mysql ERROR[2414] res_config_mysql.c: MySQL RealTime: Failed to connect database server asterisk on localhost (err 2002). Check debug for more info.