Quick Review: Boxee Box
December 27, 2011 – 12:22 am | 3 Comments

Some of the technical issues with Boxee Box could have been fixed if the dev team was paying more attention to addressing the bugs rather than adding “features” of dubious value. In the final analysis, for the price and ease of use, Boxee Box is the best in its class and price range. You just need to be mindful of its limitations and buy it in hope of future improvements to its usability.

Read the full story »
Networking

Unix and Linux network configuration. Multiple network interfaces. Bridged NICs. High-availability network configurations.

Applications

Reviews of latest Unix and Linux software. Helpful tips for application support admins. Automating application support.

Data

Disk partitioning, filesystems, directories, and files. Volume management, logical volumes, HA filesystems. Backups and disaster recovery.

Monitoring

Distributed server monitoring. Server performance and capacity planning. Monitoring applications, network status and user activity.

Commands & Shells

Cool Unix shell commands and options. Command-line tools and application. Things every Unix sysadmin needs to know.

Home » Archive by Category

Articles in MySQL

Remove Duplicate Posts in WordPress
December 5, 2009 – 10:28 pm | 2 Comments
Remove Duplicate Posts in WordPress

Below is the SQL script that will attempt to identify and remove duplicate posts in your WordPress database. This script can be useful for autoblogging. If you use plugins like WP-o-Matic to pull full-text RSS …

Duplicating WordPress Installation
June 25, 2009 – 2:51 pm | No Comment
Duplicating WordPress Installation

Whenever you upgrade your WordPress installation or do development work, it is always a good idea to be working on a copy of your main site and not on the real thing. Copying WordPress installation …

Restart Apache, MySQL When Low on Memory
June 25, 2009 – 4:27 am | 8 Comments
Restart Apache, MySQL When Low on Memory

Heavy traffic, hungry SQL queries, leaky applications will eventually leave your server low on memory. Apache will go on a hunt for swap space and MySQL will start freezing in thoughtful contemplation. Your hard drives …

MySQL Global Search and Replace Script
June 25, 2009 – 3:53 am | 6 Comments
MySQL Global Search and Replace Script

A day will eventually come when your need to find and replace a string of text in your database. You don’t know which row, or which column, or which table. Heck, you may not even …

Passing MySQL Commands from Shell Script
June 25, 2009 – 3:30 am | No Comment
Passing MySQL Commands from Shell Script

Running MySQL commands from a shell script is a relatively simple task that has a lot of people baffled. Some say its too complicated and suggest using PHP or Perl, others claim doing so is …

Convert MySQL table to CSV file
March 27, 2008 – 4:41 pm | No Comment
Convert MySQL table to CSV file

CSV is a field-separated format that can be easily imported into a spreadsheet application. Usually the separator field is a comma. However, sometimes it is easier to select a more unusual character (like “@” for …

MySQL query cache
August 17, 2007 – 11:15 am | No Comment
MySQL query cache

Query cache can significantly speed up database operations for identical search queries. This is particularly useful for Web server applications, where multiple requests for the same data are a regular occurrence.
To enable query caching on …

MySQL LOAD DATA Syntax
January 2, 2007 – 8:33 am | No Comment
MySQL LOAD DATA Syntax

Using LOAD DATA LOCAL INFILE is a much faster way to insert lots of data into a table than using INSERT. The only preliminary step is to format the input file with unique field separators.
In …

Creating table indexes in MySQL
November 21, 2006 – 6:32 pm | 2 Comments
Creating table indexes in MySQL

Creating an index for specific columns in a database table can greatly speed up search operations. This is important for any database query that use WHERE in the SQL string. Below is a practical example …

The correct MySQL GRANT syntax
September 21, 2006 – 12:18 pm | One Comment
The correct MySQL GRANT syntax

It is surprising how many people run into problems trying to use the GRANT command: everything from not being able to access a database table to losing admin access to MySQL altogether. There’s a bunch …

Managing your MP3 collection
May 3, 2006 – 10:40 am | No Comment
Managing your MP3 collection

Remember all the MP3s you ripped or downloaded sitting in that big directory somewhere on your hard drive? Getting those files organized by genre, performer, or album can be daunting task if the MP3s …

Generating complex SQL queries with shell scripts
February 21, 2006 – 9:08 am | No Comment
Generating complex SQL queries with shell scripts

It is sometimes necessary to use complex select and insert queries with dozens of variables. Writing such queries by hand is a tedious process and the chance of making a mistake is high. A few …

Find and Replace in MySQL
December 28, 2005 – 11:34 am | No Comment

A simple one-line command to perform find and replace operations in MySQL:

update TABLE set COLUMN = replace(COLUMN, ‘OLD_VALUE’, ‘NEW_VALUE’);

Bookmark on Delicious Digg this post Recommend on Facebook share via Reddit Share with Stumblers Tweet …

Exporting spreadsheet data to MySQL
December 9, 2005 – 2:10 am | No Comment
Exporting spreadsheet data to MySQL

The following is a process for migrating spreadsheet data to MySQL database using a Shell script in a Unix environment. To follow this tutorial you must already know how to create MySQL schemas and tables. …

Install PHP, Mysql, Apache2 on Solaris 9
November 21, 2005 – 11:05 am | No Comment
Install PHP, Mysql, Apache2 on Solaris 9

FROM: http://www.sunhelpdesk.com/articles/Mysql_Apache2_PHP_Solaris_9.htm?file=Mysql_Apache2_PHP_Solaris_9.htm

Note:
I would consider using BlastWave to install your precompiled binaries if your system is connected to the Internet. This documentation will use some of the binaries they provide to make the installation a bit …

Apache MySQL PHP Solaris 8 Installation
November 21, 2005 – 11:03 am | One Comment

FROM: http://ampubsvc.com/~meljr/a2m4p5s8.html
BY: Mel Lester Jr.
This page briefly documents the installation of Apache 2.0.xx, MySQL 4.0.xx and PHP 5.0.x on Sparc Solaris 8.
Disclaimer
Rapid revision is the nature of Open Source products and the versions I refer …

Database operations with SQL and Korn shell
November 20, 2005 – 11:46 am | No Comment
Database operations with SQL and Korn shell

The following Korn shell function will read the a directory containing CSV data files named server_sysstat.20051119.csv with format:
server_2,7,1461,2,2195979,90,00:00:17,42
server_2,6,1467,2,2200018,85,00:02:18,42
server_2,6,1462,2,2198306,89,00:04:20,42
The function will read each file line by line and do either an insert to or an update …