Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Laravel 5 PDO error

I recently copied a completed Laravel 5 project from a colleague who is using a Mac system to my Mac, we have the same configuration, I have been having error: "at

PDO->__construct('mysql:host=localhost;dbname=tezzadev', 'root', '', array('0', '2', '0', false, '0')) in Connector.php line 50".

Even when we have same database parameters. I'm dumbfounded, any help will be appreciated. Thanks

like image 782
Peter Avatar asked Mar 01 '26 01:03

Peter


1 Answers

Have you tried connecting using the IP address instead?

(Adding this as an answer so that you can select that if you wish!)

I seem to remember having a similar issue on this a while back - will try and recall what I did to sort it out.

like image 167
Mhluzi Bhaka Avatar answered Mar 02 '26 14:03

Mhluzi Bhaka



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!