• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Import psa dump - Specified key was too long; max key length is 1000 bytes

ethanielc

New Pleskian
Plesk version - 11.5.30 CentOS 5 115131216.11
Error while accessing Plesk - ERROR: PleskMainDBException: MySQL query failed: Table 'psa.misc' doesn't exist (db.php:102)

# rpm -qa|grep mysql
mysql-5.0.95-5.el5_9
php53-mysql-5.3.3-22.el5_10
mysql-server-5.0.95-5.el5_9
mysql-connector-odbc-3.51.26r1127-2.el5

I tried to import psa from dump

# mysql -uadmin -p`cat /etc/psa/.psa.shadow` psa < /var/lib/psa/dumps/mysql.daily.dump.0
ERROR 1071 (42000) at line 1566: Specified key was too long; max key length is 1000 bytes

Ref - http://kb.odin.com/en/6019
# mysql -uadmin -p`cat /etc/psa/.psa.shadow` -e"DROP DATABASE psa;"
# mysql> CREATE DATABASE psa CHARACTER SET = latin1;
Query OK, 1 row affected (0.00 sec)
# mysql -uadmin -p`cat /etc/psa/.psa.shadow` --default_character_set latin1 psa < /var/lib/psa/dumps/mysql.daily.dump.0
ERROR 1071 (42000) at line 1566: Specified key was too long; max key length is 1000 bytes

any help? Thanks!
 
Last edited:
Back
Top