• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Solved Database Backup how to readd it?

Printer

if Printer then print("LUA") end
Senator
Premium User
Joined
Dec 27, 2009
Messages
5,780
Solutions
31
Reaction score
2,300
Location
Sweden?
Hello,

Linux Debian 64bit

Lighttpd

My server had trouble yesterday and i have copy the mysql folder which includs the database and also i export sql on all tables. How can i reupload them?


Thanks!
 
I assume that you would like to import the sql to your database?

Code:
mysql -u [COLOR=#ff0000]root[/COLOR] -p -h localhost [COLOR=#ff0000]databaseName[/COLOR] < [COLOR=#ff0000]fileName.sql[/COLOR]
 
I have no idea, since i going to reinstall my dedicate, i copied the folder named mysql which have my old database and also exported the tables to sql. Which one should i use the folder or the sql file to upload?
 
You should just upload the sql file if that's where all the existing tables exist.
 
I think so, im not 100% sure myself. Since on linux everything is so sensetive one misstake and whole mysql is fuckt up :/ But thanks anyway, ill try then :P

- - - Updated - - -

Ok i got this now :S
You probably tried to upload too large file. Please refer to documentation for ways to workaround this limit.
 
That's why you execute that code I wrote above in PuTTY and not phpMyAdmin. :p
 
Ah, but i wanted to make a test on my windows comp :P

But i hope i made a right backup of the base, Just question i did right. First i logged in phpmyadmin then selected my base and click export checked all tables and clicked sql and go button then i saved the sql file. Is that right?
 
Yep, that's correct.

You could also use mysqldump to export your database in Debian.
 
Ok thanks Ninja Rep :) I will try it soon until the reinstall is done :D

- - - Updated - - -

Seems i already repped you :D
 
Back
Top