code not working

I did as the video said and won’t connect to database