Is MariaDB really a drop in replacement for MySQL? I’m running CentOS 5.4. What happens if…
And the install start mysql up again. Wow. That’s “Drop in”.
If your
[Read more...]| Previous 30 Newer Entries | Showing entries 31 to 60 of 60 |
Is MariaDB really a drop in replacement for MySQL? I’m running CentOS 5.4. What happens if…
And the install start mysql up again. Wow. That’s “Drop in”.
If your
[Read more...]I have been annoyed by the fact that I couldn’t easily print file count for all of the folders in certain directory. Most of the time I just want to see what space each folder is using (du -hs *) but there are times when I need to know how many files are in each folder (checking cache folder, session folders etc). So I whipped together a command line which does just that for me:
for i in `find -maxdepth 1 -type d`; do echo -n $i " ";find $i|wc -l; done
I am sure there are many different ways to show file count for each folder in a directory and I am curious to see what people do so please do post comments with what you do.
Above command is pretty simple and can be expanded to do whatever you need. For example, you can throw it into a bash script and be able to pass parameters. For example: count_files /home/ In this case your command
[Read more...]
How To Set Up MySQL Database Replication With SSL Encryption On CentOS 5.4
This tutorial describes how to set up database replication in MySQL using an SSL connection for encryption (to make it impossible for hackers to sniff out passwords and data transferred between the master and slave). MySQL replication allows you to have an exact copy of a database from a master server on another server (slave), and all updates to the database on the master server are immediately replicated to the database on the slave server so that both databases are in sync. This is not a backup policy because an accidentally issued DELETE command will also be carried out on the slave; but replication can help protect against hardware failures though.

Installing Lighttpd With PHP5 And MySQL Support On CentOS 5.4
Lighttpd is a secure, fast, standards-compliant web server designed for speed-critical environments. This tutorial shows how you can install Lighttpd on a CentOS 5.4 server with PHP5 support (through FastCGI) and MySQL support.
I ran into an issue where curl request run within few ms from command line but same url fetch was taking over 10 secs. After doing some debugging and research it turned out that call to check (getaddr ipv6 was timing out. Obviously you can do multiple things to fix this (including enabling ipv6 support) but since I did not have a need for ipv6 (it is disabled in my network configuration), I decided to recompile curl and disable ipv6. Here is the command for recompiling curl and installing into /usr/local/curl directory with ipv6 disabled.
./configure –prefix=/usr/local/curl –disable-ipv6
————————————-
DISCLAIMER: Please be smart and use code found on internet carefully. Make backups often. And yeah.. last but not least.. I am not responsible for any damage caused by this posting. Use at your own risk.
Banking on open source. Open source as a business model. And more.
Follow 451 CAOS Links live @caostheory on Twitter and Identi.ca
“Tracking the open source news wires, so you don’t have to.”
For the latest on Oracle’s acquisition of MySQL via Sun, see Everything you always wanted to know about MySQL but were afraid to ask
Banking on open source
# CIOL.com reported on the benefits of Standard Chartered Bank’s open source-based core banking system.
Open source as a business model
The “open source has
You can now yum (RPM) or apt-get (DEB) MariaDB 5.1.39, courtesy of OurDelta and in close cooperation with Monty Program Ab. Simply follow the info on the CentOS, Debian or Ubuntu pages.
(note: give the mirrors some hours to sync up)
Quick overview
MySQL 5.0.87-d10 OurDelta builds are now available (32 and 64-bit):
It’s worth noting that Red Hat Enterprise Linux (RHEL) 5 has had an update to MySQL in the last month. This naturally means that CentOS 5 also had a similar update. It’s now bumped up to MySQL 5.0.77 (goodbye 5.0.45!; which is what RHEL5 shipped with). This is a moderate security release, so consider updating, if you can afford a mysqld restart.
Read more about the 4 CVE bugs fixed. CentOS followed suit within two weeks.
[Read more...]We’ve been able to do MySQL 5.1 binary tarballs for a bit now (great working together with Kristian Nielsen of Monty Program), but packages are bit more tricky. Peter has been working on Debian/Ubuntu while I’ve focused on RH/CentOS. The following is from an OurDelta (trial build run) RPM install on CentOS 5 x64:
$ mysql -u root Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 1 Server version: 5.1.38-maria-beta1-ourdelta (OurDelta - http://ourdelta.org/) mysql> CREATE TABLE test.t1 (i int) ENGINE=PBXT; Query OK, 0 rows affected (0.10 sec) mysql> SHOW CREATE TABLE test.t1\G *************************** 1. row *************************** Table: test.t1 Create Table: CREATE TABLE `test.t1` ( `i` int(11) DEFAULT NULL ) ENGINE=PBXT DEFAULT CHARSET=latin1 1 row in set (0.00 sec) mysql> INSERT INTO test.t1 values (1);[Read more...]

Installing Apache2 With PHP5 And MySQL Support On CentOS 5.3 (LAMP)
LAMP is short for Linux, Apache, MySQL, PHP. This tutorial shows how you can install an Apache2 webserver on a CentOS 5.3 server with PHP5 support (mod_php) and MySQL support.
OIN offers cash for patents. CentOS crisis averted. Microsoft denies GPL violation. And more.
Follow 451 CAOS Links live @caostheory on Twitter and Identi.ca
“Tracking the open source news wires, so you don’t have to.”
# Open Invention Network offered individual inventors cash for patents, and acquired patents from V_Graph.
# The H Open reported that the management problems at CentOS are now resolved.
# Sam Ramji told Network World in detail why Microsoft believes its Linux IC code did not violate the GPL (from 15m 30s).
# Canonical delivered an on-premise version of its Landscape systems management
[Read more...]When open source goes bad. Is open source a success or failure? And more.
Follow 451 CAOS Links live @caostheory on Twitter and Identi.ca
“Tracking the open source news wires, so you don’t have to.”
When open source goes bad
The H reported on the apparent turmoil at the CentOS project, while Jay Lyman offered the CAOS perspective. Meanwhile Slashdot reported that Alan Cox has quit as Linux TTY subsystem maintainer.
Success or failure?
Danny Windham, Digium CEO, responded to Peter Yared’s
Microsoft has announced that it is to contribute code to the Linux kernel development effort under the GNU General Public License (GPL) v2. What on earth does it all mean? Here’s our take on the situation. With thanks to Jay Lyman for his contribution to the following:
Q. This is a joke, right?
A. Not at all, although if any announcement is better suited to the image above, we can’t think of one. Microsoft has announced that it is going to contribute code to Linux under the GPLv2.
Q. What code is Microsoft
[Read more...]UPDATED - I had to update this post after a conversation with RightScale founder and CTO Thorsten von Eicken and for Sun’s Open Cloud announcement, which are both now included below.
There has been some substantial technology and news regarding open source software in cloud computing lately. More proof that open source is reaching into nearly all aspects of enterprise and broader IT, and also reinforcement of the idea that open source software will continue to have a pervasive and disruptive impact on the way organizations of all shapes and sizes do their computing and deal with their data.
First up is RightScale, which as detailed by 451 colleague and Principal Analyst William Fellows, is up and running across the pond on
[Read more...]
Installing PowerDNS (With MySQL Backend) And Poweradmin On CentOS 5.2
This article shows how you can install the PowerDNS nameserver (with MySQL backend) and the Poweradmin control panel for PowerDNS on a CentOS 5.2 system. PowerDNS is a high-performance, authoritative-only nameserver - in the setup described here it will read the DNS records from a MySQL database (similar to MyDNS), although other backends such as PostgreSQL are supported as well. Poweradmin is a web-based control panel for PowerDNS.
There is a really easy way to figure out ...
Look at the size of of the devrooms , if at all , a project gets at Fosdem
It's really interresting to see the Embedded room move to a 500 seat room which it really needed when the first openMoko talk was held there in a previous edition.
The FDO , Drupal, Mozilla, Centos/Fedora and Suse rooms stay in similar size rooms as last year.. But it seems lik the BSD and PostgreSQL room which was pretty crowded moved to a bigger location.
The Ruby room also seems to move to a bigger room. Fosdem has a couple of new rooms too it seems this freed up room for new groups such as the MySQL Crowd
Obviously these sizes aren't a real match to the size of a community, as the new rooms might need (and probably will need) a
[Read more...]
ZRM 2.1: Backing Up MySQL Partitioned Tables
MySQL 5.1 is generally available for production use. One of the key features of MySQL 5.1 is partitioning. This how to shows how to install and configure Zmanda Recovery Manager for MySQL (ZRM) 2.1 to perform backup and recovery of MySQL partitioned tables.

Server Monitoring With munin And monit On CentOS 5.2
In this article I will describe how you can monitor your CentOS 5.2 server with munin and monit. munin produces nifty little graphics about nearly every aspect of your server (load average, memory usage, CPU usage, MySQL throughput, eth0 traffic, etc.) without much configuration, whereas monit checks the availability of services like Apache, MySQL, Postfix and takes the appropriate action such as a restart if it finds a service is not behaving as expected. The combination of the two gives you full monitoring: graphics that lets you recognize current or upcoming problems (like "We need a bigger server soon, our load average is increasing rapidly."), and a watchdog that ensures the availability of the monitored services.
Sun updates MySQL Enterprise. The Microsoft/Novell deal is two years old. Nuxeo and Boxee get funding. Red Hat’s CEO on open source in a downturn. Steve Ballmer as a glove puppet. And more.
Press releases
Sun Enhances MySQL Enterprise With New Query Analyzer Tool to Boost Database Application Performance Sun Microsystems
Microsoft and Novell Mark Two Years of Interoperability Progress Microsoft
Nuxeo secures 2 million Euros and strengthens its board of directors and corporate governance Nuxeo
[Read more...]Matt Asay is pushing his favorite Open Source model again. The model where the majority of developers of a project work for a company and that company is creating a business around the project. There's nothing wrong with that model, but he seems to forget the other models time over time :)
Matt is absolutely right with 2 of the 3 things he wants you to consider.
A SI in the middle of a $50 million dollar project involving Alfresco not talking to Alfresco is just wrong. An SI not offering a support contract is also just wrong. But an SI forcing his customer to buy the commercially supported version from a vendor ? Where's the customer choice ?
The customer should have the option to choose for a commercially supported version or the free version. And preferably that should be an educated option.
[Read more...]One may wonder what is sshfs and why would you want it? Well simply put, sshfs allows you to mount another server’s filesystem into a folder on your local system which in the background is doing ssh commands and transfers. As a mounted folder, you are able to move about and copy files back and forth as everything was on local server. As you can see this makes it very easy for you to work with files on multiple servers.
Note: you only have to do the following installations on the server where you are doing the mounts on.
Let us download and install the filesystem framework which is a requirement for sshfs called fuse.
wget http://voxel.dl.sourceforge.net/sourceforge/fuse/fuse-2.7.4.tar.gz
tar zxpfv fuse-*.gz
cd fuse*
./configure
If you get the following error, you will either have to point to the location
[Read more...]While playing around with the great MySQL Activity Reporter , I ran into the following error.
[client 192.168.254.72] PHP Fatal error: strftime() [function.strftime]: Timezone database is corrupt - this should *never* happen! in /var/lib/mysqlard/mysqlar.php on line 62
Now the error is clear .. the Timezone database is corrupt and I`m the one to blame for .. this was on a pretty stripped down Centos that lives in UTC. So there wasn't a real Timezone database.
Obviously a quick apt-get install tzdata solved the problem, but once again the lesson is.. don't strip too much .. you'll eventually endup needing those 3 Kb of free space you gained anyhow.
While playing around with the great MySQL Activity Reporter , I ran into the following error.
[client 192.168.254.72] PHP Fatal error: strftime() [function.strftime]: Timezone database is corrupt - this should *never* happen! in /var/lib/mysqlard/mysqlar.php on line 62
Now the error is clear .. the Timezone database is corrupt and I`m the one to blame for .. this was on a pretty stripped down Centos that lives in UTC. So there wasn't a real Timezone database.
Obviously a quick apt-get install tzdata solved the problem, but once again the lesson is.. don't strip too much .. you'll eventually endup needing those 3 Kb of free space you gained anyhow.
There are many times when I needed to find out my outgoing (or external) IP for the servers which are behind load balancers or firewalls. I used to just login to another external server from the server in question and find out by looking at “who” what my external ip is. Even though it works and I am so used to it, today I decided to figure out a more graceful way of finding my outgoing ip. As most of us already know, whatismyip.com is the quickest way to find out your outgoing ip from the browser. So I decided to use the same way on the servers. So I issued a wget:
wget http://www.whatismyip.org
Well that does the trick. But being lazy as I am, I did not want to have to cat the output file to find out the ip (plus there is no point of creating extra files and doing extra
[Read more...]I recently needed to configure mysql failover on some of our test machines. Thanks to Sheeri’s helpful blog entry which provides a simple failover lua script, configuring failover is a simple matter. However, the machines are running centos-5.2 and centos doesn’t provide an rpm for mysql-proxy. This blog entry describes how to build your own.
The latest mysql-proxy (0.6.1) is apparently not backward-compatible with 0.6.0 and earlier. It incorrectly handles the case when one of the backend machines is down. Instead of just marking it as down, it errors out completely. This makes it rather difficult to use it for failover scenarios. People have complained about this for a while. Bugs
[Read more...]My friend today asked me how to convert all spaces in filenames under a specified directory to underscores. Also, at the same time lowercase all of the filenames. Here is a quick script to do what is needed. Let us start with creating some test data in a temp directory:
mkdir temp
cd temp
touch Foo FooO "Foo Bar" "FOO BAaR"
\ls | while read -r FILENAME
do
mv -v "$FILENAME" `echo $FILENAME| tr ' ' '_'| tr '[A-Z]' '[a-z]'`
done
Note: I intentionally have slash in front of ls (\ls). \ls means that we want to make sure there is no ls alias overwriting our command. This is needed if your system has alias setup to display ls in a different way instead of default listing. mv -v shows us the filenames being renamed as your script goes through the whole dir. Your output should be like:
`Foo' -> `foo'
`FOO
Server monitoring is a big part of running a solid web site. As an admin, you must know what is going on your server. One of the tools most Linux/Unix admins are used to is called “top”. “top” by itself is a very powerful tool. Here is a quick guide on how to read output from top: introduction to load averages under top. It just makes sense that somebody went and created httptop to monitor http traffic.
Install perl modules:
install Term::ReadKey
install File::Tail
install Time::HiRes
Now copy paste the script below and save it in a location and set +x attribute on it so you can execute
As you may know mysql fulltext search is not highly scalable. One of the options to get around this scalability limitation, which I prefer, is to use Sphinx. You can use Sphinx with out having to alter your mysql installation. But, if you would like to use from within mysql and not have to worry about how to pass data between Sphinx and MySQL, you can enable sphinxse (sphinx storage engine). It is not included with mysql by default so you will have to compile it yourself.
Here are the instructions on how to get sphinxse compiled with your mysql installation on CentOS x64. I am sure same instructions will work for other flavors but I have not tested it. I will be compiling the most current version of sphinx (0.9.8) with most current stable version of mysql (5.0.51b) at the time of the writing. Let’s get the
[Read more...]| Previous 30 Newer Entries | Showing entries 31 to 60 of 60 |