Other Issues¶
Error Encountered when Creating Database with CR¶
The database is running normally, but an error occurs when creating a database using CR. This issue can be caused by the presence of special characters in the mysql root password.

-
Retrieve and view the original password:
-
If the password contains special characters such as - , attempting to enter the original password in MySQL Shell will result in the following error:
-
To resolve this issue, you are offered two methods to clean up and rebuild:
-
Method 1: Clear the data directory and delete the Pod. Wait for the sidecar to be running, then delete the data directory again and repete deleting the Pod:
-
Method 2: Delete the PVC first, then delete the Pod to restore functionality:
-
Note
Using the above methods to clean and rebuild will result in the database being reset and data loss.
The Following MySQL Message in the DCE Platform¶
When the following message appears during operations in the management platform, it indicates that the master-replica relationship of the MySQL nodes has changed. However, other modules of the platform have not timely updated the connection objects, resulting in a write operation being executed on a read-only replica node.
Solution: Go to the Container Management platform and restart all related replica nodes.
Error Code 1045 in the Operator or Related MySQL Resources¶
Cause: Poor Disk Performance Interrupts MySQL Initialization¶
When this error occurs, log in to MySQL and execute:
If you can log in directly, it is most likely that MySQL initialization was interrupted due to poor disk performance.
Temporary Solution¶
- Scale the mysql-operator StatefulSet down to 0.
- Delete the probe of the MySQL container in the corresponding MySQL StatefulSet.
- Delete the PVC of MySQL.
- Delete the Pod of MySQL and wait for MySQL to reinitialize.
- (After MySQL starts successfully) Log in to MySQL with
mysql -urootand check whether you can log in. If you cannot log in, it means MySQL was initialized successfully. - Scale the mysql-operator StatefulSet back up to its original value.