Need help restore DB

Ch3tos

Member
Registered
Joined
Jul 2, 2021
Messages
5
Points
11

Reputation:

Hello ,

I got a backup of the database and then reinstalled Cpanel,
now I have a problem importing the database


Screenshot 2023-08-12 at 11.12.24 PM.jpg


can anyone help please
 

Owen34

SVIP Member
S.V.I.P Member
Registered
Joined
Jun 10, 2023
Messages
20
Points
3

Reputation:

How big is the file? Can you edit it and remove everything upto this line (and including) then carring on importing.

You can look at the table and see what id it got upto.
 

Ch3tos

Member
Registered
Joined
Jul 2, 2021
Messages
5
Points
11

Reputation:

60MB, any another way i don't understand ?
 

Owen34

SVIP Member
S.V.I.P Member
Registered
Joined
Jun 10, 2023
Messages
20
Points
3

Reputation:

60MB is easily worked on in a txt editor.

See the chars in your pic above in the ' ' search for that word in the sql file, then the 2nd occurance then remove everything before that line & remove that line & continue the import with the file.
Make sure you still have the orignal full file before editing the data out.
 

Owen34

SVIP Member
S.V.I.P Member
Registered
Joined
Jun 10, 2023
Messages
20
Points
3

Reputation:

This text
sc0g9TA.png



Code:
https://i.imgur.com/sc0g9TA.png
 

Owen34

SVIP Member
S.V.I.P Member
Registered
Joined
Jun 10, 2023
Messages
20
Points
3

Reputation:

from your image of the sql file , you only have 1 insert for tags, remove lines 4699 - 4704 so there is no insert.

But.. your following image shows other data, so it doesnt make sense atm.

I could fix the file tomorrow in 10 minutes if you have trust, I am a new member here but have 20 years experiance.
 

BattleKing

Spirit of darkness
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P Member
Collaborate
Registered
Joined
May 24, 2020
Messages
3,520
Points
523

Reputation:

Hello ,

I got a backup of the database and then reinstalled Cpanel,
now I have a problem importing the database


View attachment 36387

can anyone help please
Ch3tosYou just need to check in the backup file for INSERT INTO `xf_tag.tag`

Check if there are multiple lines with your text which is shown in the picture above, if there are multiple lines for that compare them and decide which one to delete.
 
Top