I"m having a lot of trouble with error messages trying to access a database using php and mysql. I am very much a beginner - I’m trying to learn php and mySQL by reading a book.
I am stuck on these error messages:
Warning: mysql_connect(): Can’t connect to MySQL server on ‘kijii.com’ (111) in /home/.odeipus/tedherr/kijii.com/mysql_send.php on line 16
Warning: mysql_select_db(): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2) in /home/.odeipus/tedherr/kijii.com/mysql_send.php on line 17
The lines that generate these are
What do I need to do to fix the problem(s)?