• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

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