<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-24367054</id><updated>2011-12-13T19:53:42.063-08:00</updated><title type='text'>MYSQL</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://mysql-adsense.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/24367054/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://mysql-adsense.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>ida</name><uri>http://www.blogger.com/profile/17670866193653730542</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>6</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-24367054.post-114292104248558078</id><published>2006-03-20T22:03:00.000-08:00</published><updated>2006-03-20T22:04:02.486-08:00</updated><title type='text'></title><content type='html'>Optimizing Performance&lt;br /&gt;Designing a well structured, normalized database schema is just half of the optimization task. The other half is building and fine tuning a server to run MySQL. MySQL provides a wealth of information regarding the tuning of server parameters. This information which was traditionally accessible in a configuration file called my.cnf, but can now be accessed and tuned visually using the MySQL Administrator graphical interface.&lt;br /&gt;MySQL default parameters are very small so it can run on almost any box as an additional service without slowing things down. MySQL provides my-small/medium/huge.cnf files that come with the standard binary distribution as general parameter guidelines for small, medium, and huge servers.&lt;br /&gt;Many of the optimal parameter values will depend a lot on the load you put on the server, as well as the storage engines(s) you use. But, here are some generic guidelines to optimize performance regardless of which storage engine you are using. We will take a look at storage engine specific tuning options in a future article so please, continue to watch this space.&lt;br /&gt;Set max_connections to the number of concurrent connections you need. The default value is only 100 connections, which is very small.&lt;br /&gt;Note: connections take memory and your OS might not be able to handle a lot of connections. MySQL binaries for Linux/x86 allow you to have up to 4096 concurrent connections, but self compiled binaries often have less of a limit.&lt;br /&gt;Set table_cache to match the number of your open tables and concurrent connections. Watch the open_tables value and if it is growing quickly you will need to increase its size.&lt;br /&gt;Note: The 2 previous parameters may require a lot of open files. 20+max_connections+table_cache*2 is a good estimate for what you need. MySQL on Linux has an open_file_limit option to set this limit.&lt;br /&gt;If you have complex queries sort_buffer_size and tmp_table_size are likely to be very important. Values will depend on the query complexity and available resources, but 4Mb and 32Mb, respectively are recommended starting points.&lt;br /&gt;Note: These are "per connection" values, among read_buffer_size, read_rnd_buffer_size and some others, meaning that this value might be needed for each connection. So, consider your load and available resource when setting these parameters. For example sort_buffer_size is allocated only if MySQL nees to do a sort. Note: be careful not to run out of memory.&lt;br /&gt;If you have many connects established (i.e. a web site without persistent connections) you might improve performance by setting thread_cache_size to a non-zero value. 16 is good value to start with. Increase the value until your threads_created do not grow very quickly.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/24367054-114292104248558078?l=mysql-adsense.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mysql-adsense.blogspot.com/feeds/114292104248558078/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=24367054&amp;postID=114292104248558078' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/24367054/posts/default/114292104248558078'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/24367054/posts/default/114292104248558078'/><link rel='alternate' type='text/html' href='http://mysql-adsense.blogspot.com/2006/03/optimizing-performance-designing-well.html' title=''/><author><name>ida</name><uri>http://www.blogger.com/profile/17670866193653730542</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-24367054.post-114292095917442548</id><published>2006-03-20T22:02:00.000-08:00</published><updated>2006-03-20T22:02:39.176-08:00</updated><title type='text'></title><content type='html'>Database administration serves a number of important functions from improving the performance of your database to avoiding a disaster that would result in lost data or costly system downtime. This article will describe some of the fundamental tools and practices programmers, as well as DBAs and SysAdmins, can use with the powerful new MySQL Administrator tool to ensure a healthy database environment.&lt;br /&gt;The role of the administrative function will largely depend on the size of the organization and size of the IT department. In larger organizations there are DBA (Database Administrators), Data Analysts, and SysAdmins that would work alongside programmers to create a well designed database systems and then ultimately be responsible for managing the health and availability of the system on a daily basis. However, in smaller organization, or where IT departments are more resource limited, the duty of administering MySQL falls into the hands of the database programmer.&lt;br /&gt;For programmers less familiar with the administration functions, their responsibility must also cover the following areas:&lt;br /&gt;Optimizing the server for performance which includes, space management, monitoring memory usage, and diagnosing problems.&lt;br /&gt;Administering the server on a daily basis to ensure server availability and the ongoing health of the system.&lt;br /&gt;Disaster prevention and recovery including creating consistent backups and restoring databases in case of network, application, or hardware failure.&lt;br /&gt;Until now, a powerful set of command line tools have been used to administer MySQL servers. However, they have been cumbersome and time-consuming to use for individuals not familiar or well-versed in the utilities. The result, in many cases, has been a general neglect of the administration function leaving the database system at risk to security breaches, data loss, and downtime.&lt;br /&gt;To make administration easier and faster, MySQL AB recently announced &lt;a href="http://www.mysql.com/products/administrator/"&gt;MySQL Administrator&lt;/a&gt;, an integrated visual environment for managing MySQL servers. It is an ideal tool that not only greatly simplifies the life of DBAs but also empowers developers to effectively manage a networked environment of MySQL servers.&lt;br /&gt;Below are 5 critical functions of database administration that must be addressed to ensure the level of availability your users will demand of your database system.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/24367054-114292095917442548?l=mysql-adsense.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mysql-adsense.blogspot.com/feeds/114292095917442548/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=24367054&amp;postID=114292095917442548' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/24367054/posts/default/114292095917442548'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/24367054/posts/default/114292095917442548'/><link rel='alternate' type='text/html' href='http://mysql-adsense.blogspot.com/2006/03/database-administration-serves-number.html' title=''/><author><name>ida</name><uri>http://www.blogger.com/profile/17670866193653730542</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-24367054.post-114292088615337364</id><published>2006-03-20T22:01:00.000-08:00</published><updated>2006-03-20T22:01:26.153-08:00</updated><title type='text'></title><content type='html'>SQL Injection&lt;br /&gt;SQL injection is yet another common vulnerability that is the result of lax input validation. Unlike cross-site scripting vulnerabilities that are ultimately directed at your site’s visitors, SQL injection is an attack on the site itself—in particular its database.&lt;br /&gt;The goal of SQL injection is to insert arbitrary data, most often a database query, into a string that’s eventually executed by the database. The insidious query may attempt any number of actions, from retrieving alternate data, to modifying or removing information from the database.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/24367054-114292088615337364?l=mysql-adsense.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mysql-adsense.blogspot.com/feeds/114292088615337364/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=24367054&amp;postID=114292088615337364' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/24367054/posts/default/114292088615337364'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/24367054/posts/default/114292088615337364'/><link rel='alternate' type='text/html' href='http://mysql-adsense.blogspot.com/2006/03/sql-injection-sql-injection-is-yet.html' title=''/><author><name>ida</name><uri>http://www.blogger.com/profile/17670866193653730542</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-24367054.post-114292073137077765</id><published>2006-03-20T21:58:00.000-08:00</published><updated>2006-03-20T21:58:51.373-08:00</updated><title type='text'></title><content type='html'>&lt;h2&gt;Definition and an Example&lt;/h2&gt;&lt;p&gt;A stored procedure is a procedure (like a subprogram in a regular computing language) that is stored (in the database). Correctly speaking, MySQL supports "routines" and there are two kinds of routines: stored procedures which you call, or functions whose return values you use in other SQL statements the same way that you use pre-installed MySQL functions like pi(). I'll use the word "stored procedures" more frequently than "routines" because it's what we've used in the past, and what people expect us to use.&lt;/p&gt;&lt;p&gt;A stored procedure has a name, a parameter list, and an SQL statement, which can contain many more SQL statements. There is new syntax for local variables, error handling, loop control, and IF conditions. Here is an example of a statement that creates a stored procedure.&lt;/p&gt;&lt;pre&gt;CREATE PROCEDURE procedure1                /* name */&lt;br /&gt;(IN parameter1 INTEGER)                    /* parameters */&lt;br /&gt;BEGIN                                      /* start of block */&lt;br /&gt;  DECLARE variable1 CHAR(10);                /* variables */&lt;br /&gt;  IF parameter1 = 17 THEN                    /* start of IF */&lt;br /&gt;    SET variable1 = 'birds';                   /* assignment */&lt;br /&gt;  ELSE&lt;br /&gt;    SET variable1 = 'beasts';                  /* assignment */&lt;br /&gt;  END IF;                                   /* end of IF */&lt;br /&gt;  INSERT INTO table1 VALUES (variable1);    /* statement */&lt;br /&gt;END                                       /* end of block */&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/24367054-114292073137077765?l=mysql-adsense.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mysql-adsense.blogspot.com/feeds/114292073137077765/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=24367054&amp;postID=114292073137077765' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/24367054/posts/default/114292073137077765'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/24367054/posts/default/114292073137077765'/><link rel='alternate' type='text/html' href='http://mysql-adsense.blogspot.com/2006/03/definition-and-examplea-stored.html' title=''/><author><name>ida</name><uri>http://www.blogger.com/profile/17670866193653730542</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-24367054.post-114292065044391259</id><published>2006-03-20T21:56:00.000-08:00</published><updated>2006-03-20T21:57:30.453-08:00</updated><title type='text'></title><content type='html'>&lt;strong&gt;Introduction&lt;br /&gt;&lt;/strong&gt;This 67 page guide is for long-time MySQL users who want to know "what's new" in version 5. The short answer is "stored procedures, triggers, views, information_schema". The long answer is the MySQL 5.0 New Features series, and this book is the first in the series.&lt;br /&gt;What I'm hoping to do is make this look like a hands-on session where you, as if you're working it out yourself on your keyboard, can walk through sample problems.&lt;br /&gt;To do this, I'll go through each little item, building up slowly. By the end, I'll be showing larger routines that do something useful, something that you might have thought was tough.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/24367054-114292065044391259?l=mysql-adsense.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mysql-adsense.blogspot.com/feeds/114292065044391259/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=24367054&amp;postID=114292065044391259' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/24367054/posts/default/114292065044391259'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/24367054/posts/default/114292065044391259'/><link rel='alternate' type='text/html' href='http://mysql-adsense.blogspot.com/2006/03/introduction-this-67-page-guide-is-for.html' title=''/><author><name>ida</name><uri>http://www.blogger.com/profile/17670866193653730542</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-24367054.post-114281125991483575</id><published>2006-03-19T15:33:00.000-08:00</published><updated>2006-03-19T15:34:19.916-08:00</updated><title type='text'></title><content type='html'>mysql adalah database yang pasting bagus&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/24367054-114281125991483575?l=mysql-adsense.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mysql-adsense.blogspot.com/feeds/114281125991483575/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=24367054&amp;postID=114281125991483575' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/24367054/posts/default/114281125991483575'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/24367054/posts/default/114281125991483575'/><link rel='alternate' type='text/html' href='http://mysql-adsense.blogspot.com/2006/03/mysql-adalah-database-yang-pasting.html' title=''/><author><name>ida</name><uri>http://www.blogger.com/profile/17670866193653730542</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
