Un-install and re-install MySQL and see if that will fix it
If your running on Windows 10 it could be that because the first time I did it it would not connect either until I re-installed everything again.
What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )