Can’t connect to local MySQL server
… because the MySQL server isn’t local (ie, running on localhost). You have to specify the hostname you chose when you created the database. There’s even a big notice to this effect shown immedietely after creating a database:
You MUST always use your hostname to connect to your database… “localhost” will NOT WORK.
This is repeated in a number of places. Maybe I should put it in my .sig too…
If you want useful replies, ask smart questions.