Jump to content
  • 0

how to save database values from my ragnarok schema?


joelolopez

Question


  • Group:  Members
  • Topic Count:  154
  • Topics Per Day:  0.03
  • Content Count:  493
  • Reputation:   46
  • Joined:  01/24/12
  • Last Seen:  

hi im using mysqlquery browser to browse my database. my problem is everytime my server unexpectedly shutdown my sql database is getting database errors. is there a way that i can save the values of my tables so that i can backup the values from my schemas and tables?

 

example values

 

in login table

username |    password,    < fields

hotshot     | hotshotpass     < values that i need to backup

 

is it possible to backup the values and import them again on my server whenever my database is broken and need to be fixed?

 

 

 

Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  74
  • Topics Per Day:  0.02
  • Content Count:  420
  • Reputation:   89
  • Joined:  01/30/12
  • Last Seen:  

On linux we simply use

mysqldump -u[user] -p[pass] "schema" | gzip > "filename.gz"

I guess theres something similar on windows as well.

You may add this into a batch/bash script and add it to a task scheduler to run it frequently, and create another task that deletes the old backups (if neccessary)

You can refine it if you wish to dump specific table(s).

Also, if you write a crash detect script (log check), you can import the backup automatically, and restart the server.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...