I'm using PHP 5.6.40 and MySQL 5.7 but when I want to connect remote database(MySQL 8), occur a problem.
Warning: mysql_connect(): Server sent charset (255) unknown to the client.
Although I tried a lot of things like here but nothing has changed.
My Connection Code
$connect = mysql_connect("XXX:25060","XXX","XXX") or die ();
mysql_select_db("defaultdb", $connect) or die ( mysql_error() );