MySQL Forums
Forum List  »  PHP

Re: PDO connection not working
Posted by: Stephen Roberts
Date: September 05, 2016 01:09PM

Thank you for your response. I added the following to the code:

$error = 'Unable to connect to the database server: ' . $e->getMessage();

It doesn’t display any more than it did before for some reason. I haven’t gotten to the chapter in the book that covers the error display yet so I am not sure why that particular line isn’t the same as the ones following it in the same code or why it is not working.

The query you suggested did match the user I was trying to use. I did notice an odd entry for mysql.sys however. The authentication string returns the following:

*THISISNOTAVALIDPASSWORDTHATCANBEUSEDHERE

Could this be a problem?

Options: ReplyQuote


Subject
Written By
Posted
September 05, 2016 08:20AM
September 05, 2016 09:45AM
Re: PDO connection not working
September 05, 2016 01:09PM
September 05, 2016 04:03PM
September 06, 2016 06:57AM
September 06, 2016 08:04AM
September 06, 2016 09:21AM
September 06, 2016 09:45AM
September 05, 2016 03:57PM
September 06, 2016 07:31AM
September 06, 2016 07:54AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.