Tuesday, October 2, 2012
Adding custom columns/fields to Joomla article, section and user
ALTER TABLE `jos_content` ADD `article_image` VARCHAR( 255 ) NOT NULL
in for instance phpMyAdmin.
Tuesday, September 18, 2012
25 Excellent Ajax Techniques and Examples
Ajax allows for rich-internet applications that mimic the responsiveness and complex user interfaces typically associated with desktop applications.
Thursday, August 2, 2012
Hide Joomla Subdirectory (Subfolder)
Instead of installing Joomla in the web root (public_html), some like to put
the Joomla files in a subfolder for better housekeeping.
Thursday, April 12, 2012
Tạo vị trí mới trong template joomla 1.5 và 2.5
Wednesday, April 4, 2012
Tải tập tin bằng lệnh wget trong linux
1. Tại sao dùng wget?
Trong môi trường UNIX/Linux, chúng ta có thể di chuyển tới các thư mục một cách nhanh chóng bằng lệnh cd (change directory) trong cửa sổ lệnh Terminal.
Tuesday, April 3, 2012
Backing up And Restoring MySQL Innodb Database
Backing up And Restoring MySQL Innodb Database
MySQL backups are performed using the common mysqldump tool. This is a command line utility that ships with MySQL and you use at as follows:
% mysqldump --user=user --password=pass --opt DBNAME > dumpfile.sql
Backup your MySQL databases manually with mysqldump
I often need to make a quick backup of one mysql database. This happens right before there will be some major changes to the database, or before performing an upgrade on the mysql server software. Now I don’t recommend this to be done regularly, but still, I use this extensively in this kind of situations… If you are looking for an automated solution to backup your databases you might want to check my other post: “Backup your MySQL databases automatically”
Dumping MySQL Stored Procedures, Functions and Triggers
MySQL 5 has introduced some new interesting features, like stored procedures and triggers.
I will show in this small post how we can backup and restore these components using mysqldump.
Backup your MySQL databases automatically with AutoMySQLBackup
If you site relies on MySQL and stores its sensitive data in a MySQL database, you will most definitely want to backup that information so that it can be restored in case of any disaster (manual mistake to delete some data, software errors, hardware errors, server compromise, etc.). In a previous post I have presented that MySQL provides the basic tool (mysqldump) to perform database backups. This is required because backing up a database is a little different than backing up regular files.
Dumping large MySQL InnoDB tables
Backing up MySQL databases normally involves running mysqldump (either manually or from a script). If you have worked with very big mysql tables (let’s say over 10GB) you already know that dumping such a table will take a while (of course this will depend from many things like hardware, mysql configuration, etc. but still whatever you do it will still take a long time for such big tables).
How to recover MySQL data from Innodb?
Unfortunately some times you need to recover MySQL data from ibdata1. It’s many reasons why your getting corrupted Innodb files that cannot automatically be restored of the mysqld daemon.