Tuesday, June 30, 2009

The longest "BETA" products

In software development cycle, we oftenly use the term ALPHA and BETA term to indicate a progressing software, but somehow ready to make a test hit. In my own experience, we usually use BETA only for stating a software meet its basic function but yet to test througly. There's no exact rule on how long a software should be put on beta before its final release.

For a s
oftware company, when it meet all initial designed functionality and performance, then it's OK to be released and leave the beta stage. I'm not sure what are GMAIL guys think of, but the product never officially release.

When it first announce on April fool's day 2004, this phenomenal free mail really changes the paradigm of free mail services. Yahoo previously only provide max 10MB of mailbox, now even no limit. Others are previously closed the pop access now consider to reenable. And the Ajax-interface inspire other web application to follow so.


What's now ?

It's been BETA for more than 5 years. It doesn't make any sense that a product still in beta for such long time, even I start to think maybe "beta" is the product name. I'm not really sure what is their initial design and plan, but for me, it's surpased any free mail service that makes Gmail more ready than any other similar service to get out of the Beta stage.


Do you know any software that labeled Beta longer than Gmail does ?

Wednesday, May 6, 2009

Manage MySQL datadir folder

Mysql no-doubtly is the most popular database server among web user for it available on most hosting and SMEs. It's distribution also available on most linux distro, including the popular Ubuntu.

Mysql data file is the base of mysql database storage. Relocating folder usually for harddrive partition storage management issue. Managing MySQL data file is kinda tricky, because since Ubuntu 8.04, MySQL data file is protected by apparmor by default. Meaning, we cant simply move around files related to MySQL, as all location need to be registered.

Basic step is to edit mysql config file, in /etc/mysql/my.cnf.
Make sure the service is stopped.


$ sudo /etc/init.d/mysql stop
$ sudo vi /etc/mysql/my.cnf

Look for datadir directive, change it to your new location. Datadir location has to be actual location, not a symbolic link. Save and quit the editor. Dont forget to move old database location into the new folder, most importantly "mysql", as the folder contains user authentication info. Otherwise you'll find unable to log in to the database.

Apparmor Part

Apparmor is a security software for Linux. Apparmor protects unauthorised changes to system critical files. To open apparmor protection for MySQL, open a shell terminal, and type :

$ sudo vi /etc/apparmor.d/usr.sbin.mysqld

Add the new location:


/var/www/mysql_datadir/ r,

/var/www/mysql_datadir/** rwk,


Restart apparmor by :


$ sudo /etc/init.d/apparmor restart

If everything went right, mysql start status should showing [ok], otherwise, consulting syslog somehow could help. Type this before restarting mysql service

$ tail -f /var/log/syslog


In other terminal,

$ sudo /etc/init.d/mysql start

Now your database is located in folder you prefer to.