+1 for Navi, it can do scheduled backups as well.
Printable View
+1 for Navi, it can do scheduled backups as well.
remote sql is way safer than of phpmyadmin or any web base sql management.
not sure if were speaking same language but all you gotta do is run backup that basicly backs up everything..
second point run external backup of you dbo thats ALL you need
done it a million times, never fails
dump that shit like a chick on roids. (this statement actually says everything)
ok I discovered the phpmyadmin that was in the install, realized how much I screwed it up by installing phpmyadmin, and managed to back it out enough to get it working again. At least working well enough to get the mysql stuff exported.
I've got the databases imported, but still have all the same problems with the factions not displaying and with new characters crashing. (Can't make new toons and log into the server.) At least my people can play again though, so that's a minor plus. Going to have to figure out how to fix whatever is wrong with the databases.
Check your permissions when you uploaded. What tool do you use? Winscp?
You messed to much the dabatase, I suggest that you clean it and tell to your players to restart everything from the beginning... It will be better and easier than trying to recovery a realy messed database...
Or, if I were you, just salvage all you can. Salvage some parts of the mysql database, and edit the .sql code a little so that you can just upload to your database.
To copy the original I used...
Then to put them back I copied them to / and used...Code:tar zcf gamedbd_bak.tar.gz /PWServer/gamedbd
tar zcf uniquenamed_bak.tar.gz /PWServer/uniquenamed
and it exctracted them back into their respective folders.Code:tar -xvzf gamedbd_bak.tar.gz
tar -xvzf uniquenamed_bak.tar.gz
I used phpmyadmin to export cpw.sql, dbo.sql, information_schema.sql, mysql.sql, performance_Schema.sql, phpmyadmin.sql, and support.sql from the old server, and then imported them appropriately into the new one.
As far as permissions go, I think that is most likely where I screwed up. I was messing around with things to set up a Samba share and one if the scripts I ran in the wrong spot and it set the permissions to everything to 755. I did try to go back and fix most of it, but I think I may still have something set wrong. (I'm still a Linux noob, I think 777 is like the equivalent of root, but I'm clueless about the rest.)
The permissions I see on everything when I use "ls -l" is "-r-xr-xr-x 1 nobody nogroup" I don't know if that's correct or not though.
And on top of all of that, now my server is freezing up for no reason. It was happening on the old machine so I thought it had to do with how screwed up I got Ubuntu and the other packages. Now it's happening on the new one and all I've done after following 343's install is to copy in the databases and import the stuff through phpmyadmin. I'm beginning to think maybe it's trying to read a database file, or write to one and can't because somewhere I've screwed up the permissions.:*:
(Sorry to come back to this post everyone, but)
I just really noticed this post and read the link... The thing I find the FUNNIEST is this is in no how related to topic (Linux or PW)... In my opinion it is NOT even a decent example (let alone a good one)... They're talking about a vulnerability in Windows first off. Second off, this vulnerability ONLY exists while running a piece of APPLE software ON the WINDOWS machine... (So CERTAINLY not a LOT of people will be doing this, ie... makes it a more RARE possibility)!
On the other hand you could say "it's a good example" because it just proves that people/someone out there will find a flaw if there is one, no matter how rare it is... Well Ok, technically that is highly probable -- I can safely tell you, running anti virus and making sure to regularly 'update' is NOT going to help that... Because, you're right -- there will always be someone looking for some 'loophole' somewhere, and ya know what, someone WILL find it if it's there... So you can't be bothered with "anti virus" and "updates" they are not 100% necessary...
Like Das and I have both said before... If you TRULY want to be safe ~-~ NEVER remove it from the box :thumbup1: !!!!!
add:
Spoiler:
I'll say it ONE more time:
If you TRULY want to be safe ~-~ NEVER remove it from the box !!!!!
Sorry, now let the topic return to where it was:
:thumbup1:
This is as stupid as saying "a condom can always break so there is no reason to use one when going around and sleeping with everyone". Security fixes will not be 100% reliable, but if it can prevent 99% of the problems why would you skip it?Quote:
I can safely tell you, running anti virus and making sure to regularly 'update' is NOT going to help that... Because, you're right -- there will always be someone looking for some 'loophole' somewhere, and ya know what, someone WILL find it if it's there... So you can't be bothered with "anti virus" and "updates" they are not 100% necessary...
Ubuntu Linux 10.04 - Secunia.com (about 3 click away from my link with some curiosity) check the amount of "vendor patched" issues? 175 out of 176 security issues were fixed this year on ubuntu 10.04 (what most recommend to use as server on this forum). You can look at the other stuff which are usually found on a server (apache, tomcat, ssh, mysql, etc) and you will find the situation is the same.
Again: I am not talking about updating to newer version of software/os. For example updating from php 5.2.x to 5.3.x might cause a lot of issues and scripts breakdown; there is no reason to do it if you don't need it. However there will be no change in compatibility between 5.2.1 and 5.2.3, only security and speed improvement and this what I am talking about.
to be safe from STD, it would be better to be a nun in a monastery, that's a fact. Now this is not an option, so let's use a condom.Quote:
If you TRULY want to be safe ~-~ NEVER remove it from the box !!!!!
Actually (as I stated in PM) this is not a personal attack, we are each entitled to our own opinions. Which we clearly DO have different opinions. Switching topics as you have, I never use a condom =X and yes; the only 100% way to be safe from an STD would be to not have sexual intercourse at all...
Aaaannndd.. coming back on-topic...
It took some doing, but here's the permissions from a clean install....
Spoiler:
And here's the permissions from my faulty database...
Spoiler:
So now to compare and figure out how to fix it cause I'm sure I've screwed something up with permissions
So I think I need to change the nobody's to root.... and also change the permissions on some stuff. Google FTW, I'll figure out how
I hope you could find a fix... But well I personnaly suggest to start a fresh and clean characters database to be sure that there will be nothing that may corrupt your server again...
If you want to try and fix:
Should be pretty self explanatory. No guaranty on effectiveness blahblahCode:chown root:root -R uniquenamed
chown root:root -R gamedbd
chmod u+rwX,g-w+rX,o-rwx -R uniquenamed/
chmod u+rwX,g-w+rX,o-rwx -R gamedbd/
chmod u+x,g-x uniquenamed/uniquenamed
chmod u+x,g-x gamedbd/gamedbd
chown should be enough, as the gamedb tends to set chmod flags itself