मेरे मामले में, उपरोक्त त्रुटि संदेश के अलावा, मुझे नीचे चेतावनी भी मिली:
PHP Warning: mysqli_real_connect(): Server sent charset (255) unknown to the client. Please, report to the developers in /var/www/html/wp-includes/wp-db.php on line 1531
Warning: mysqli_real_connect(): Server sent charset (255) unknown to the client. Please, report to the developers in /var/www/html/wp-includes/wp-db.php on line 1531
PHP Warning: mysqli_real_connect(): (HY000/2054): Server sent charset unknown to the client. Please, report to the developers in /var/www/html/wp-includes/wp-db.php on line 1531
Warning: mysqli_real_connect(): (HY000/2054): Server sent charset unknown to the client. Please, report to the developers in /var/www/html/wp-includes/wp-db.php on line 1531
PHP Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /var/www/html/wp-includes/wp-db.php on line 1562
Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /var/www/html/wp-includes/wp-db.php on line 1562
PHP Warning: mysql_connect(): Server sent charset (255) unknown to the client. Please, report to the developers in /var/www/html/wp-includes/wp-db.php on line 1562
Warning: mysql_connect(): Server sent charset (255) unknown to the client. Please, report to the developers in /var/www/html/wp-includes/wp-db.php on line 1562
PHP Warning: mysql_connect(): Server sent charset unknown to the client. Please, report to the developers in /var/www/html/wp-includes/wp-db.php on line 1562
Warning: mysql_connect(): Server sent charset unknown to the client. Please, report to the developers in /var/www/html/wp-includes/wp-db.php on line 1562
इस प्रश्न के अनुसार , यह समस्या इसलिए होती है क्योंकि MySQL 8.0 के लिए डिफ़ॉल्ट चारसेट है utfmb4
।
वास्तव में, मैं MySQL 5.7 से MySQL 8.0 में अपग्रेड करके त्रुटि को दोहरा सकता था
मैंने डेटाबेस निर्यात करके, MySQL 5.7 को अपग्रेड करके और डेटा को पुन: आयात करके समस्या को हल किया। मैंने मारियाडीबी 10.3 पर परीक्षण भी चलाया और यह ठीक काम करता है।