You haven't given your MySQL password (for the MySQL account called root) as the third parameter to mysql_connect, so you are being denied access to the database from withing the
PHP. The other error messages are all the consequence of this failure.
You should probably use a different account to the root one to access your database, and you it's advisable to apply passowrds to all the MySQL accounts that you have.