Resolving Unknown Collation Error (#1273) During Database Import on cPanel
When attempting to import a MySQL database into a hosted phpMyAdmin environment on cPanel, users may encounter the following error:
#1273 - Unknown collation: 'utf8mb4_unicode_ci'
To address this issue, follow these steps:
- Navigate to the "Export" tab within the database's management interface.
- Select the "Custom" radio button.
- Locate the "Format-specific options" section and change the "Database system or older MySQL server to maximize output compatibility with:" dropdown from "NONE" to "MYSQL40".
- Scroll down and initiate the export process by clicking "GO".
- Import the exported database into the cPanel environment.
It is recommended to export databases in this manner to prevent data loss caused by incompatible collation options. However, certain widgets (e.g., Black Studio TinyMCE Visual Editor widgets) may be affected by this export method, so additional testing is advised.
The above is the detailed content of How to Resolve the \"Unknown Collation\" Error (#1273) During Database Import on cPanel?. For more information, please follow other related articles on the PHP Chinese website!
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn