caught an error

1=2

2=mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

3=/home/spencervisuals/public_html/dancesportseries/connect_and_select_db.php

4=26Could not connect: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)