0

IN cakephp older versions like 3.2 was able to create models from the command line using thees commands in win10. I checked the tutorial below and they dont use this command anymore?

bin\cake bake model Articles //this no longer works

Warning error PDO:_construct ....server sent charset unknown to client

bin\cake //this command works as i get an output

https://book.cakephp.org/3/en/tutorials-and-examples/cms/database.html

Apache/2.4.41 (Win64) PHP/7.3.12 Mysql 8

I get this error: PDO::__construct(): Server sent charset (255) unknown to the client. Please, report to the developers

atown99
  • 73
  • 8
  • Baking still works the same. Please do a [**search for that error message**](https://stackoverflow.com/search?tab=relevance&q=server%20sent%20charset%20unknown%20to%20client), it's usually either a MySQL configuration and/or PHP version problem. – ndm Jul 14 '20 at 09:01
  • I had a look and its something to do with newer mysql versions . I tried different ports on cakephp db setup eg 3306 but still no good. Kind of stuck still – atown99 Jul 14 '20 at 12:30
  • It's highly unlikely that the port has anything to do with that. Please check the various answers to questions like **https://stackoverflow.com/questions/43437490/pdo-construct-server-sent-charset-255-unknown-to-the-client-please-rep**. – ndm Jul 14 '20 at 12:33
  • ok but not really seeing what code to type in changing the character set to "utf8mb4" – atown99 Jul 14 '20 at 13:09

0 Answers0