Tag Info

Hot answers tagged

3

Mysql doesn't have a kernel module, therefore it runs in user mode. Perhaps what you are seeing is that mysql is using memory-mapped files instead of calling read/write. So, accessing a page of memory causes a read/write without using a syscall. Or, perhaps you called strace without "-f" to follow the child processes?


2

The mysqldump command returns nothing, which is piped trough gzip and ends in an empty gzip file. See: $ echo -n "" | gzip -9 > test.gz $ stat -c %s test.gz 20 This results in a file with size 20 bytes. So the problem is the mysqldump command. Since it's root's crontab the script runs with root priviledges. sudo is not necessary. Use it without sudo. ...


2

Gems are usually not installed through portage. To install a Ruby gem, make sure rubygems is merged and then run gem20 install <gem> or gem21 install <gem> depending on your system. Edit: since emerge --search mysql-minimal returns nothing, you know it isn't in the portage tree and can't be installed with emerge. Running gem search mysql2 shows ...


1

There's a bug "Unable to install mysql-server, apt-get stuck at "Setting up".. Please refer to the above link for solution, and see if it helps you, though it was on a diff version


1

The script run via cron is failing. 20 bytes is the size of an empty MySQL dump.


1

I am trying to write a python script which shows me the services which are running on my server. Don't do that. That's exactly what a process manager like upstart or systemd is for. Using systemd, a simple unit file for mongo might look something like: [Unit] Description=High-performance, schema-free document-oriented database After=syslog.target ...


1

You can use any one of following two approaches. I) Every one hour create a file /tmp/overquotausernew.txt and compare this file with old file /tmp/overquotausernew.txt. If any new users are found in newly created file, then send email to only those users and merge newly created file with /tmp/overquotauser.txt In this way, you will maintain only one file ...



Only top voted, non community-wiki answers of a minimum length are eligible