Could not connect db

76 views
Skip to first unread message

Manjula S

unread,
Sep 26, 2023, 7:58:11 AM9/26/23
to PHP Desktop
Hi,

I have using php and mysql and this converted to exe. After conversion i  unable to login . and i'm getting this kind of error "Could not connect db: Server sent charset unknown to the client. Please, report to the developers" only by using php desktop . When run this files on wamp its working correctly. How to resolve this issue.

Abdulbasit Rubeiyya

unread,
Oct 1, 2023, 9:09:34 AM10/1/23
to PHP Desktop
I am not entirely sure about this, but it seems like the end app created operates like some kind of its own sandbox, so everything needs to be packaged from within, that's why the author emphasized SQLite as the featured database for the tool, some of the ways I'd suggest would be
  • Sticking out with the SQLite database
  • if you still want to use MySQL (haven't tried but seems sensible)
    • Use a remotely/publically accessible instance (over the internet/IP address)
    • Package a MySQL binary with your app and inject it into the environment as the app runs
       putenv('PATH=/path/to/your/mysql/binaries:' . getenv('PATH')); 
NOTE: You'll want to have the putenv function allowed in your php configuration

Cheers
Reply all
Reply to author
Forward
0 new messages