Entries Tagged as 'Database'

Overview of MySQL information_schema Database With Practical Examples

Filed Under: Database | Tags: , , , , , , , , , | Add Comment  

Welcome to my blog. I write Instruction Guides, How-Tos, and Tips & Tricks on Linux, Database, Hardware, Security and Web. Visit Best of the Blog section to get started.

[MySQL Information Schema]Starting from MySQL 5, when you execute show databases command, information_schema will be listed in the database list. information_schema is a virtual MySQL database that stores metadata information of all the MySQL databases.

Typically you will execute either DESCRIBE or SHOW commands to get the metadata information. However using the information_schema views, you can execute the standard select SQL command to get the metadata information. In this article, let us review few practical examples on how to use the information_schema database.
[Read more →]

Increase Bugzilla Attachment Size Using MySQL max_allowed_packet

Filed Under: Database | Tags: , , , , | Add Comment  

[Bugzilla Logo]Bugzilla, an open source bug tracking system uses MySQL for the database. When you try to attach a document to the bug that is greater than 1MB in size, you will get the error message shown below. This article explains how to fix this problem by changing the MySQL max_allowed_packet database parameter and bugzilla maxattachmentsize parameter.
 
When a MySQL client or the mysqld server receives a packet bigger than max_allowed_packet bytes, it issues a Packet too large error and closes the connection.
 
MySQL client’s default max_allowed_packet value is 16MB. MySQL server’s default max_allowed_packet is 1MB. For bugzilla attachment, we need to increase the max_allowed_packet size of the MySQL server.
[Read more →]

How To Upload Data to MySQL tables using mysqlimport

Filed Under: Database | Tags: , , , | 1 Comment  

MySQL LogoUploading several rows of data from a text, csv, and excel file into a MySQL table is a routine task for sysadmins and DBAs who are managing MySQL database. This article explains 4 practical examples on how to import data from a file to MySQL table using both mysqlimport and “load data local infile” method. Instead of importing data, if you want to backup and restore MySQL database, please use mysqldump or mysqlhotcopy.
[Read more →]

Oracle 11g step-by-step Installation Guide with Screenshots

Filed Under: Database | Tags: , , , | Add Comment  

[Oracle 11g Logo]This is a 16 step Oracle 11g installation guide that covers a typical installation scenario with screenshots.

1. Select installation method

Following two installation methods are available:

  • Basic Installation - Choose this to perform the full Oracle Database 11g installation with standard configuration options. You can use only filesystem for storage in this option.
  • Advanced Installation - This gives your full control over the installation, including the ability to choose Automatic Storage Management. Select this option as shown below.

[Read more →]

10 Tips to Use Your Hardware and Software Vendor Support Effectively

Filed Under: Database, Hardware, Linux, Security, Software, Windows | Tags: | 1 Comment  

[Tech Support by a Cat]Photo courtesy of wraithtdk

Companies purchase support for most of their enterprise hardwares (servers, switches, routers, firewalls etc.,) and softwares (databases, OS, applications, frameworks etc.,). They spend lot of cash on support mainly for two reasons: 1) To get help from vendors to fix critical production issues 2) To keep up-to-date with the latest version of the software and security patches released by the vendors. In this article, I’ve given 10 practical tips for DBAs, sysadmins and developers to use their hardware and software support effectively.
[Read more →]

Backup and Restore MySQL database using mysqldump

Filed Under: Database | Tags: , , , , | 6 Comments  

[mysqldump - MySQL Backup & Restore]mysqldump is an effective tool to backup MySQL database. It creates a *.sql file with DROP table, CREATE table and INSERT into sql-statements of the source database. To restore the database,  execute the *.sql file on destination database.  For MyISAM, use mysqlhotcopy method that we explained earlier, as it is faster for MyISAM tables.

Using mysqldump, you can backup a local database and restore it on a remote database at the same time, using a single command. In this article, let us review several practical examples on how to use mysqldump to backup and restore.
[Read more →]

How To Install Or Upgrade LAMP: Linux, Apache, MySQL and PHP Stack Using Yum

Filed Under: Database, Linux | Tags: , , , , , | 9 Comments  

LAMP Stack LogoPreviously we discussed about how to install Apache and PHP from source. Installing LAMP stack from source will give you full control to configure different parameters.

Installing LAMP stack using yum is very easy and takes only minutes. This is a good option for beginners who don’t feel comfortable installing from source. Also, Installing LAMP stack using yum is a good choice, if you want to keep things simple and just use the default configuration.
[Read more →]

How To Repair Corrupted MySQL Tables Using myisamchk

Filed Under: Database | Tags: , | 1 Comment  

MySQL Application LogoMyISAM is the default storage engine for MySQL database. MyISAM table gets corrupted very easily. In this article, I’ll explain how to use myisamchk to identify and fix table corruption in MyISAM. When a table is created under MySQL, it creates three different files: *.frm file to store table format, *.MYD (MyData) file to store the data, and *.MYI (MyIndex) to store the index. I prefer to use InnoDB as the storage engine for bigger database, as it resembles Oracle and provides commit, rollback options.
[Read more →]

Get Quick Info On MySQL DB, Table, Column and Index Using mysqlshow

Filed Under: Database | Tags: , | Add Comment  

MySQL Application LogoMost of the open source application uses MySQL database. To debug an issue with the open source application, it is very important to understand how to quickly get high level information about your MySQL database. In this article, I have explained how you can view the database, table, column and index information on any MySQL database using 9 examples.
[Read more →]

Backup and Restore MySQL Database using mysqlhotcopy

Filed Under: Database, Linux | Tags: , , | 1 Comment  

MySQL Logo
mysqlhotcopy is a perl script that comes with MySQL installation. This locks the table, flush the table and then performs a copy of the database. You can also use the mysqlhotcopy to automatically copy the backup directly to another server using scp
[Read more →]


Add to Technorati Favorites

Join My Community at MyBloglog!

Stumble Upon



My name is Ramesh Natarajan. I will be posting instruction guides, how-to, troubleshooting tips and tricks on Linux, database, hardware, security and web. My focus is to write articles that will either teach you or help you resolve a problem. Read more