pgadmin 4.30 : unable to backup and restore database - pgadmin-4

I want backup and restore a schema with pgadmin 4 and postgresql 10.5
but it doesn't work : no data is imported
During export, I try tar format and backup type file.
No message errors juste these lines when i restore:
pg_restore: connecting to database for restore
pg_restore: implied data-only restore
Do you have a idea
thanks a lot ?

Apparently, it works if I create a new database but it doesn't work in a same database.
A idea ?

Related

SQL Database Restore Error "3154"

I am trying to restore a database backup, but I am getting this error:
the backup set hold a backup of database other than the existing
database restore database is terminating abnormally )microsoft sql
server error 3154
How can I solve this?
Use WITH REPLACE while using the RESTORE command (OR)
Go with this link u may get answer
https://blog.sqlauthority.com/2013/11/23/sql-server-fix-error-3154-the-backup-set-holds-a-backup-of-a-database-other-than-the-existing-database-ssms/
This is my successful with the error when restore database.
Step1: Create a new database (ex. Production)
Step2: Stop SQL Server service
Step3: Delete 2 files generated from the new database (Production.mdf & PoductionLog.log)
Step4: Restart SQL Server service again
Step5: Restore the database from the backup file .bak
Hope this can help you!
Thai

How to restore sybase (SAP ASE) .db and .log backup on a another system?

How can I restore (or read in a some decent form) a sybase backup that I've been given to be analyzed?
I have been given a backup from sybase database that contains a single .db and one .log file.
I'm new to sybase and I have no access to original system nor I have any information about the database structure that these files contain.
The thing I know is that backup is probably made with command
dbbackup -c "userid=xxx;password=xxx" -d -t -y D:\path\to\backup
I've been asked to analyze the content of the database and to do that I've set up a SAP ASE 16.0 on RedHat 7.
I have tried to restore the backup using the load database command but all I get is a error report:
Backup Server session id is: 17. Use this value when executing the
'sp_volchanged' system stored procedure after fulfilling any volume change
request from the Backup Server.
Backup Server: 4.10.2.1: Label validation error: first label not VOL1.
Backup Server: 6.31.2.4: Volume rejected.
Backup Server: 1.14.2.2: Unrecoverable I/O or volume error. This DUMP or LOAD
session must exit.
Backup Server: 6.32.2.3: /data/sybase/backup/adbname.db: volume not valid
or not requested (server: , session id: 17.)
Backup Server: 1.14.2.4: Unrecoverable I/O or volume error. This DUMP or LOAD
session must exit.
Msg 8009, Level 16, State 1:
Server 'ASE1', Line 1:
Error encountered by Backup Server. Please refer to Backup Server messages for
details.
the error indicates that the database backup file is not valid.
Are you sure that it is a Sybase ASE dump file. ".db" files look like more DB2 backup files than ASE backup files?
First, you didn't write the restore command for restoring dB and I think you used wrong command for getting backup.
Briefly, for getting backup of a Sybase db you have to write:
create backup
go
Backup files are stored in da\server\instance\dasd\backup\unique_backup_id .
And for load it you have to write:
restore backup "unique_backup_id"
go
If restore backup succeeds, the server automatically shuts down; you must manually restart it.
Resources is: http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.infocenter.dc36272.1570/html/commands/X16531.htm

Cannot Restore from Backup File to Sybase

We have a very old sybase server. Our database in it is acting up. We need to restore the backup database file from our backup sybase server. But when I try that, I keep getting this error message:
Msg 7205, Level 17, State 2: Line 1: Can't open a connection to site
'SYB_BACKUP'. See the error log file in the SQL Server boot
directory.
That is how I restore the database backup:
1. Use RCP to copy the dump file from the spare server to the primary server. And name the copy "frombkup_mydb.dump".
2. Drop the old database from the primary server, and re-create an empty one.
3. Then use the following command to load the database from the backup dump file:
load database mydb from "/export/home/syb11.dump/frombkup_mydb.dump"
Unfortunately I don't know where the error log file is. I am not familiar with SCO Unix and Sybase.
Does anyone know why the restore doesn't work?
Please help. Thanks.
Jay Chan
It's likely that your Backup Server is not running.
The SAP/Sybase ASE database process requires the backup server to be running for database backups or restores.
To find which database processes are running you can use the showserver command usually located in:
$SYBASE/$SYBASE_ASE/install/showserver
If the backup server is not running (likely), then in the ./install/ directory, look for the file named RUN_SYB_BACKUP
You can start the server by issuing the command (from the ./install/ directory)
startserver -f RUN_SYB_BACKUP
This should start the backup server, and allow you to restore the database.

import and restore 500MB Magento SQL database backup file into new server

I've spend whole day trying to restore a 499MB .SQL magento database backup file into a new server. I have tried importing into another PC offline but im getting same error Unknown command '\9' and '\a', im trying to restore the .SQL file using the following command - mysql -u -p databasename < backup.sql
I have tried Bigdump script but no success. The database file is too large it won't even open up on my pc.
Is there any other way to restore a database backup file of this size into a new server ? Help would be greatly appreciated!
Update: Strange characters appearing on opening .SQL backup file.strange characters in .sql file
Thanks in advance
Make sure the character sets of the databases match up. eg: mysql --default-character-set=utf8 database < databasedump.sql

Error in postgresql 8.3 restore database

when i try to restore my database ,it shows error
could not create large object 515025
in pgAdmin and command line as well
its not working even if i am creating another backup
any suggestion?
i got solution
before restoring database i used to delete all tables, but when i delete whole database and create new one, then restore is done successfully

Resources