Pretty easy:
mysql -u<username> -p<password> <dbname> -B -e "select * from '<tablename>'" | sed 's/\t/","/g;s/^/"/;s/$/"/;s/\n//g' > <filename.csv> |
If Amavis reports this scary error, it doesn’t necessarily means that your disk is cracked. Usually this means that the file it is talking about has wrong format. This happens, for example, if you upgraded Amavis or Spamassassin. Check current format with the file utility and upgrade it with dbX.X_upgrade where X.X is appropriate version. Or simply remove the auto-whitelist file, it will be re-created. Same with bayes_seen and bayes_toks files.
I have just found where that Rackspace decision to add VAT to the price resulted from. First I wanted to edit the previous article, but then decided to leave it as is. It’s still correct except a couple of details.
These details are as follows.
Yesterday I received an email message from Rackspace:
“Dear Igor Simonov,
The Rackspace Cloud would like to inform you of an important change to our billing system that will enable us to correctly handle VAT invoicing for our European customers.
As an existing Rackspace Cloud customer, you will need to enter your VAT registration number in your control panel prior to January 1, 2010 to avoid being charged the 17.5% tax for VAT. If you do not have a VAT ID number, or choose not to supply one, The Rackspace Cloud will begin charging you the 17.5% VAT tax on all invoices after January 1, 2010.”
Rackspace Cloud is a division of Rackspace focused on cloud technologies development. Their own service (actually three – Rackspace Cloud Servers, Rackspace Cloud Files and Rackspace Cloud Sites) is based on the recently acquired Slicehost VPS servers infrastructure. Since I am a Slicehost client myself and have many clients being hosted there, I was really curious how the Rackspace services look like.
Error message:
1 2 |
Error occurred during initialization of VM Could not reserve enough space for object heap |
means: not enough Virtual Memory for Java VM to initialize. Weird for a first glance, but are you sure you have it enough? Quite probable that you have ulimits setup, which, in turn, is quite probable if you have cPanel.
Looking through job alerts I receive by email from oDesk I often see requests similar to this:
Some malicious user infected all htm and php files off our server with a iframe in the end off each file. I need to remove it from all files
These requests make me think that some webmasters don’t understand how it works.
For example, to grant all privileges on all tables of the current database to user username:
select 'grant all on '||schemaname||'.'||tablename||' to username;' from pg_tables where schemaname='public'; |
Change username to what you need.
The output of this is a list of commands that that can be copied via clipboard and run all at once.
To make possible managing your system clock on Xen VPS server:
sysctl -w xen.independent_wallclock=1 |
or:
echo 1 > /proc/sys/xen/independent_wallclock |
Change to db directory and type: myisamchk -r -S -a *.MYI
Удивительно, что не догадался сделать этого раньше, чтобы не диктовать каждый раз весь алгоритм по телефону.. ну да лучше поздно, чем никогда.
Все ниженаписанное относится не только к серверам, но и к любым компьютерам, только конкретные детали местами другие.
Итак, сервер не подает признаков жизни. То есть или даже не включается, или питание включается, но на экране ничего нет. Это вовсе не означает, что он умер. Возможно, он просто в коме, и вопрос только насколько легко его из комы вывести…
If you ever set up a popular bunch of Postfix + Amavisd-new + PostgreSQL/MySQL with virtual domains support, you could probably be disappointed by the fact that by default all messages filtered out by anti-spam and anti-virus filters go to the system’s quarantine folder.
Home
Contacts
Downloads
RoR
Servers
Notes
Linux
ERR
Русский