mysqlconnect/db server: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111) while executing "open " (object "::mysql2" method "::DIO::Mysql::exec" body line 2) invoked from within "$diocmd exec $query1"

OUTPUT BUFFER:

puts -nonewline "" puts -nonewline "
" set query1 "select name, linkname,is_link_enabled from script where is_link_enabled=1 order by id "; set result [$diocmd exec $query1] $result forall -array row { set name $row(name) set linkname $row(linkname) puts "" } puts -nonewline "
\"qr
Forum
$linkname
"

while executing "parse "include/links.rvt"" (in namespace eval "::request" script line 35) invoked from within "namespace eval request { puts -nonewline "" parse "../config.rvt"; puts -nonewline "

OUTPUT BUFFER:

namespace eval request { puts -nonewline "" parse "../config.rvt"; puts -nonewline " " puts -nonewline $website_title; puts -nonewline "
" parse "include/links.rvt"; puts -nonewline "
" parse "include/left_pane.rvt"; puts -nonewline "
" parse "include/footer.rvt"; puts -nonewline "

" puts $copyright puts -nonewline "

" }