mysqlconnect/db server: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111)
    while executing
"open "
    (object "::mysql0" method "::DIO::Mysql::exec" body line 2)
    invoked from within
"exec $req"
    (object "::mysql0" method "::DIO::Database::forall" body line 4)
    invoked from within
"$dbms forall $q a { 
            dict set team_d $a(teamid) pkey $a(pkey)
            dict set team_d $a(teamid) teamid $a(teamid)
            dict se..."
    (procedure "build_database" line 14)
    invoked from within
"::cnrs::teams build_database $::cnrs::dbhandle"
    (in namespace eval "::cnrs" script line 3)
    invoked from within
"namespace eval ::cnrs {
    $msgprinter reset_message_queue
    set teamsdb [::cnrs::teams build_database $::cnrs::dbhandle]
}"
    (file "/home/manghi/public_html/lyon/before.tcl" line 8)
    invoked from within
"source $::rivetweb::site_before_script"
    (in namespace eval "::rivetweb" script line 33)
    invoked from within
"namespace eval ::rivetweb {

    # let's load the environment into array ::request::env

    ::rivet::load_env env
    ::rivet::apache_log_error debug..."
    (file "/home/manghi/rivetweb/tcl/before.tcl" line 14)
    invoked from within
"source [file join $rweb_root tcl before.tcl]"
    ("eval" body line 1)
    invoked from within
"eval $script"
    ("::try" body line 6)

OUTPUT BUFFER:

source [file join $rweb_root tcl before.tcl]