<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Wowebmaster.com &#187; Mysql</title>
	<atom:link href="http://www.wowebmaster.com/category/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.wowebmaster.com</link>
	<description>World of Webmaster: Sharing Experiences</description>
	<lastBuildDate>Wed, 27 May 2009 10:31:11 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Changing MySQL Database Character Set</title>
		<link>http://www.wowebmaster.com/mysql/mysql-character-set-change/</link>
		<comments>http://www.wowebmaster.com/mysql/mysql-character-set-change/#comments</comments>
		<pubDate>Tue, 28 Oct 2008 23:19:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Mysql]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[command line]]></category>

		<guid isPermaLink="false">http://www.wowebmaster.com/?p=22</guid>
		<description><![CDATA[MySQL Database Character Set Problem]]></description>
			<content:encoded><![CDATA[<p>You have probably come across with the mysql character set problem, If you are trying to implement a database in a language other than English. You are inserting rows with your text in your language, but you see invalid characters on your database, phpmyadmin mostly.</p>
<p>This is mostly because of character set defined in your mysql database is not proper for your language. This is usually UTF-8 Unicode, and it is default.</p>
<p><strong>Fix:</strong></p>
<p>Changing the charecter set can be done via mysql command line.  Just login to your server via SSH and bring your mysql command line on with following command.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p22code1'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p221"><td class="code" id="p22code1"><pre class="bash" style="font-family:monospace;"> mysql <span style="color: #660033;">-h</span>   <span style="color: #660033;">-D</span>   <span style="color: #660033;">-u</span>   <span style="color: #660033;">-p</span></pre></td></tr></table></div>

<p>Now it will ask you password before giving access to mysql prompt.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p22code2'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p222"><td class="code" id="p22code2"><pre class="bash" style="font-family:monospace;">ALTER DATABASE wowebmaster DEFAULT CHARACTER SET utf8 COLLATE utf8_turkish_ci \g</pre></td></tr></table></div>

<p>When you get access to mysql command line,  type the above mysql command, it will change the character set of <em>wowebmaster</em> database to utf8_turkish_ci . That&#8217;s it. Replace the database name and the character set for your own modifications.</p>
<p><strong>Update: Changing Table Character Set</strong></p>
<p>If you are looking for changing your table&#8217;s character set, you can use the following command;</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p22code3'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p223"><td class="code" id="p22code3"><pre class="bash" style="font-family:monospace;">ALTER TABLE table_name DEFAULT CHARACTER SET utf8 COLLATE utf8_turkish_ci \g</pre></td></tr></table></div>

<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?&amp;linkurl=http%3A%2F%2Fwww.wowebmaster.com%2Fmysql%2Fmysql-character-set-change%2F&amp;linkname=Changing%20MySQL%20Database%20Character%20Set"><img src="http://www.wowebmaster.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Save/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.wowebmaster.com/mysql/mysql-character-set-change/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Handling with Mysql Error: Too many connections</title>
		<link>http://www.wowebmaster.com/mysql/handling-with-mysql-error-too-many-connections/</link>
		<comments>http://www.wowebmaster.com/mysql/handling-with-mysql-error-too-many-connections/#comments</comments>
		<pubDate>Wed, 14 May 2008 13:59:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Mysql]]></category>
		<category><![CDATA[error]]></category>

		<guid isPermaLink="false">http://www.wowebmaster.com/blog/?p=3</guid>
		<description><![CDATA[Overcoming Mysql's Max_Connections/Too Many Connections problem.]]></description>
			<content:encoded><![CDATA[<p>If you have a popular website, you may have come across with this annoying error.</p>
<p><code>Mysql Error: Too many connections</code></p>
<p>This is annoying because, it only appears in high volume traffic hours. Even if you don&#8217;t see this error, your users might come across with this. Getting this error may even differ from time to time.</p>
<p>Here is the solution:</p>
<p>On apache&#8217;s &#8220;my.cnf&#8221; configuration file, you must have had something like this:</p>
<p><code>[mysqld]<br />
port = 3306<br />
datadir=/var/lib/mysql<br />
socket=/var/lib/mysql/mysql.sock<br />
skip-locking<br />
set-variable = max_connections=100<br />
set-variable = key_buffer=16M<br />
set-variable = myisam_sort_buffer_size=64M<br />
set-variable = join_buffer=1M<br />
set-variable = record_buffer=1M<br />
set-variable = sort_buffer=2M<br />
set-variable = table_cache=1024<br />
set-variable = thread_cache_size=256<br />
set-variable = wait_timeout=9600<br />
set-variable = connect_timeout=10<br />
set-variable = max_allowed_packet=16M<br />
set-variable = max_connect_errors=10<br />
</code></p>
<p>Change <em>max_connections</em> to something higher. If you don&#8217;t have that line on your my.cnf file, your server must have used max_connections=100 by default. So add that line under [mysqld] with a higher value to overcome this problem.</p>
<p>Now you shouldn&#8217;t have a too many connections problem. Enjoy.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?&amp;linkurl=http%3A%2F%2Fwww.wowebmaster.com%2Fmysql%2Fhandling-with-mysql-error-too-many-connections%2F&amp;linkname=Handling%20with%20Mysql%20Error%3A%20Too%20many%20connections"><img src="http://www.wowebmaster.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Save/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.wowebmaster.com/mysql/handling-with-mysql-error-too-many-connections/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
