• We value your experience with Plesk during 2026
    Please help us understand which Plesk features made your work easier this year, what is still missing and how AI should help you in Plesk ?
    Take this short 5-minutes survey. Your answers go straight into the Plesk roadmap for 2027.

Question Attempt to restore the "psa" database from a dump fails.

mariodieck

New Pleskian
Server operating system version
Debian 12.12
Plesk version and microupdate number
Plesk Obsidian 18.0.74 Update #1
Hello, I'm trying to restore the "psa" database from a previous dump. Unfortunately, this is failing.

I followed the instructions in this article:

Code:
zcat mysql.daily.dump.5 | sed -n '/-- Current Database: `psa`/,/-- Current Database:*/p' | MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysql -uadmin --default-character-set=utf8
outputs the following:

ERROR 1265 (01000) at line 8451: Data truncated for column 'event_type' at row 22


Then I followed the instructions in this article:

But unfortunately, I then get an error message that looks like this:
Code:
cat mysql.daily.dump.5 | sed -n '/-- Current Database: `psa`/,/-- Current Database:*/p' | MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysql -uadmin
outputs the following:

mysql: Deprecated program name. It will be removed in a future release, use '/usr/bin/mariadb' instead
--------------
/ !40000 ALTER TABLE `exp_event` ENABLE KEYS */
--------------


ERROR 1064 (42000) at line 8434: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '/ !40000 ALTER TABLE `exp_event` ENABLE KEYS */' at line 1

What's the problem with that?
 
Back
Top