<?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>Linux Servers cPanel webhosting blog &#187; Mysql + phpmyadmin</title>
	<atom:link href="http://www.theperfectarts.com/category/mysql-phpmyadmin/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.theperfectarts.com</link>
	<description>Basics cPanel tutorials / issue,mysql,php errors etc</description>
	<lastBuildDate>Wed, 08 Feb 2012 05:58:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>phpMyAdmin showing the foreach() error</title>
		<link>http://www.theperfectarts.com/2012/02/phpmyadmin-showing-the-foreach-error/</link>
		<comments>http://www.theperfectarts.com/2012/02/phpmyadmin-showing-the-foreach-error/#comments</comments>
		<pubDate>Sat, 04 Feb 2012 17:18:43 +0000</pubDate>
		<dc:creator>Gunjan</dc:creator>
				<category><![CDATA[cPanel + cPanel scripts]]></category>
		<category><![CDATA[Mysql + phpmyadmin]]></category>
		<category><![CDATA[output_buffering error]]></category>
		<category><![CDATA[phpmyadmin session error message]]></category>
		<category><![CDATA[phpMyAdmin showing the foreach() error]]></category>

		<guid isPermaLink="false">http://www.theperfectarts.com/?p=1900</guid>
		<description><![CDATA[After upgrading the cPanel version, the following error is occur when we are browsing the phpMyAdmin. Warning: Invalid argument supplied for foreach() in /usr/local/cpanel/base/3rdparty/phpMyAdmin/tbl_replace.php on line 52 Warning: Invalid argument supplied for foreach() in /usr/local/cpanel/base/3rdparty/phpMyAdmin/tbl_replace.php on line 155 Warning: Cannot modify header information &#8211; headers already sent by (output started at /usr/local/cpanel/base/3rdparty/phpMyAdmin/tbl_replace.php:52) in /usr/local/cpanel/base/3rdparty/phpMyAdmin/libraries/common.lib.php on [...]]]></description>
			<content:encoded><![CDATA[<p><script type="text/javascript">// <![CDATA[
 google_ad_client = "ca-pub-1685490665026631"; /* Big images */ google_ad_slot = "0185136902"; google_ad_width = 336; google_ad_height = 280;
// ]]&gt;</script><br />
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">// <![CDATA[</p>
<p>// ]]&gt;</script><br />
<script type="text/javascript">// <![CDATA[
 google_ad_client = "ca-pub-1685490665026631"; /* Big images */ google_ad_slot = "0185136902"; google_ad_width = 336; google_ad_height = 280;
// ]]&gt;</script><br />
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">// <![CDATA[</p>
<p>// ]]&gt;</script><br />
After upgrading the cPanel version, the following error is occur when we are browsing the phpMyAdmin.</p>
<p><strong>Warning: Invalid argument supplied for foreach() in /usr/local/cpanel/base/3rdparty/phpMyAdmin/tbl_replace.php on line 52</strong></p>
<p>Warning: Invalid argument supplied for foreach() in /usr/local/cpanel/base/3rdparty/phpMyAdmin/tbl_replace.php on line 155</p>
<p>Warning: Cannot modify header information &#8211; headers already sent by (output started at /usr/local/cpanel/base/3rdparty/phpMyAdmin/tbl_replace.php:52) in /usr/local/cpanel/base/3rdparty/phpMyAdmin/libraries/common.lib.php on line 1154<strong></strong></p>
<p>To resolve the above error, we can simply enable the output_buffering in the following file.</p>
<p><strong>/usr/local/cpanel/3rdparty/lib/php.ini</strong></p>
<p>Change the <strong>&#8220;output_buffering&#8221;</strong> from <strong>Off to On</strong>.</p>
<p>&copy;2012 <a href="http://www.theperfectarts.com">Linux Servers cPanel webhosting blog</a>. All Rights Reserved.</p>.]]></content:encoded>
			<wfw:commentRss>http://www.theperfectarts.com/2012/02/phpmyadmin-showing-the-foreach-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Recreate the jos_session for Joomla script</title>
		<link>http://www.theperfectarts.com/2012/01/recreate-the-jos_session-for-joomla-script/</link>
		<comments>http://www.theperfectarts.com/2012/01/recreate-the-jos_session-for-joomla-script/#comments</comments>
		<pubDate>Tue, 03 Jan 2012 20:32:43 +0000</pubDate>
		<dc:creator>Gunjan</dc:creator>
				<category><![CDATA[Mysql + phpmyadmin]]></category>
		<category><![CDATA[Third party script issue]]></category>
		<category><![CDATA[corrupt jos_session]]></category>
		<category><![CDATA[Create new FTP account from cPanel]]></category>
		<category><![CDATA[drop jos_session table]]></category>
		<category><![CDATA[issue with jos_session]]></category>
		<category><![CDATA[joomla jos_session error]]></category>
		<category><![CDATA[jos_session error]]></category>
		<category><![CDATA[jos_session recreation]]></category>
		<category><![CDATA[problem with jos_session]]></category>
		<category><![CDATA[recreate jos_session table]]></category>
		<category><![CDATA[resolve jos_session issue]]></category>
		<category><![CDATA[table jos_session issue]]></category>
		<category><![CDATA[what is jos_session tabke]]></category>

		<guid isPermaLink="false">http://www.theperfectarts.com/?p=1845</guid>
		<description><![CDATA[Some time we face the jos_session session corrupt error message at that time, we can recreate the &#8220;jos_session&#8221; table by running the following query from the phpmyadmin. DROP table if exist `jos_session` CREATE TABLE `jos_session` (   `username` varchar(150) default &#8221;,   `time` varchar(14) default &#8221;,   `session_id` varchar(200) NOT NULL default &#8217;0&#8242;,   `guest` [...]]]></description>
			<content:encoded><![CDATA[<p>Some time we face the jos_session session corrupt error message at that time, we can recreate the &#8220;jos_session&#8221; table by running the following query from the phpmyadmin.<br />
<script type="text/javascript">// <![CDATA[
  google_ad_client = "ca-pub-1685490665026631"; /* images */ google_ad_slot = "1433358698"; google_ad_width = 300; google_ad_height = 250;
// ]]&gt;</script><br />
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">// <![CDATA[</p>
<p>// ]]&gt;</script><br />
<script type="text/javascript">// <![CDATA[
       var _gaq = _gaq || [];   _gaq.push(['_setAccount', 'UA-27772211-1']);   _gaq.push(['_trackPageview']);   (function() {     var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;     ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';     var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);   })();
// ]]&gt;</script></p>
<blockquote><p><strong>DROP table if exist `jos_session`</strong></p>
<p><strong>CREATE TABLE `jos_session` (</strong><br />
<strong>  `username` varchar(150) default &#8221;,</strong><br />
<strong>  `time` varchar(14) default &#8221;,</strong><br />
<strong>  `session_id` varchar(200) NOT NULL default &#8217;0&#8242;,</strong><br />
<strong>  `guest` tinyint(4) default &#8217;1&#8242;,</strong><br />
<strong>  `userid` int(11) default &#8217;0&#8242;,</strong><br />
<strong>  `usertype` varchar(50) default &#8221;,</strong><br />
<strong>  `gid` tinyint(3) unsigned NOT NULL default &#8217;0&#8242;,</strong><br />
<strong>  `client_id` tinyint(3) unsigned NOT NULL default &#8217;0&#8242;,</strong><br />
<strong>  `data` longtext,</strong><br />
<strong>  PRIMARY KEY  (`session_id`(64)),</strong><br />
<strong>  KEY `whosonline` (`guest`,`usertype`),</strong><br />
<strong>  KEY `userid` (`userid`),</strong><br />
<strong>  KEY `time` (`time`)</strong><br />
<strong>) TYPE=MyISAM CHARACTER SET `utf8`;</strong></p></blockquote>
<p>But make sure that you have taken the backup for the existing database.</p>
<p><script type="text/javascript">// <![CDATA[
  google_ad_client = "ca-pub-1685490665026631"; /* images */ google_ad_slot = "1433358698"; google_ad_width = 300; google_ad_height = 250;
// ]]&gt;</script>NOTE : If you have any issue to copy the above query, please refer to the following URL to copy the jos_session table query.</p>
<p>http://www.theperfectarts.com/jos_session.txt</p>
<p><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">// <![CDATA[</p>
<p>// ]]&gt;</script></p>
<p>&copy;2012 <a href="http://www.theperfectarts.com">Linux Servers cPanel webhosting blog</a>. All Rights Reserved.</p>.]]></content:encoded>
			<wfw:commentRss>http://www.theperfectarts.com/2012/01/recreate-the-jos_session-for-joomla-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Monitor Mysql process</title>
		<link>http://www.theperfectarts.com/2011/11/monitor-mysql-process/</link>
		<comments>http://www.theperfectarts.com/2011/11/monitor-mysql-process/#comments</comments>
		<pubDate>Thu, 10 Nov 2011 14:05:05 +0000</pubDate>
		<dc:creator>Gunjan</dc:creator>
				<category><![CDATA[Linux Administrator Interview Questions]]></category>
		<category><![CDATA[Mysql + phpmyadmin]]></category>
		<category><![CDATA[VPS]]></category>
		<category><![CDATA[check mysql cpu]]></category>
		<category><![CDATA[check mysql running process]]></category>
		<category><![CDATA[cpu usage for mysql]]></category>
		<category><![CDATA[issue with mysql]]></category>
		<category><![CDATA[monitor mysql command]]></category>
		<category><![CDATA[monitor mysql process]]></category>
		<category><![CDATA[monitor running process]]></category>
		<category><![CDATA[mysql pr]]></category>
		<category><![CDATA[mysql proc stat]]></category>
		<category><![CDATA[mysql process]]></category>
		<category><![CDATA[mysql procs]]></category>
		<category><![CDATA[mysql status]]></category>
		<category><![CDATA[mysqladmin proc]]></category>
		<category><![CDATA[mysqladmin stats]]></category>
		<category><![CDATA[proc mysqladmin]]></category>
		<category><![CDATA[running mysql]]></category>
		<category><![CDATA[solve mysql cpu issue]]></category>

		<guid isPermaLink="false">http://www.theperfectarts.com/?p=1603</guid>
		<description><![CDATA[In the daily Linux monitoring,we are facing the high mysql cpu usage problem but not sure which database or mysql query is using excessive CPU, at that time we can use the following commands to monitor the mysql process and optimize the offending database. server@root[~]#mysqladmin proc stat The above command will show you the current [...]]]></description>
			<content:encoded><![CDATA[<p>In the daily Linux monitoring,we are facing the high mysql cpu usage problem but not sure which database or mysql query is using excessive CPU, at that time we can use the following commands to monitor the mysql process and optimize the offending database.</p>
<p><strong>server@root[~]#mysqladmin proc stat</strong><br />
<!-- Place this tag where you want the +1 button to render --><br />
<g:plusone annotation="inline"></g:plusone></p>
<p><!-- Place this render call where appropriate --><br />
<script type="text/javascript">
  (function() {
    var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
    po.src = 'https://apis.google.com/js/plusone.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
  })();
</script></p>
<p>The above command will show you the current status for mysql process and if you want to check the continuously running mysql process then run the following command.</p>
<p><strong>server@root[~]#mysqladmin -i3 pr</strong></p>
<p>You can also install watchmysql to monitor the mysql<br />
<script type="text/javascript">// <![CDATA[
   google_ad_client = "ca-pub-1685490665026631"; /* images */ google_ad_slot = "1433358698"; google_ad_width = 300; google_ad_height = 250;
// ]]&gt;</script></p>
<p><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">// <![CDATA[</p>
<p>// ]]&gt;</script></p>
<p>&copy;2012 <a href="http://www.theperfectarts.com">Linux Servers cPanel webhosting blog</a>. All Rights Reserved.</p>.]]></content:encoded>
			<wfw:commentRss>http://www.theperfectarts.com/2011/11/monitor-mysql-process/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Change database encoding value for postgresql dataabse.</title>
		<link>http://www.theperfectarts.com/2011/03/change-database-encoding-value-for-postgresql-dataabse/</link>
		<comments>http://www.theperfectarts.com/2011/03/change-database-encoding-value-for-postgresql-dataabse/#comments</comments>
		<pubDate>Sat, 05 Mar 2011 15:11:21 +0000</pubDate>
		<dc:creator>Gunjan</dc:creator>
				<category><![CDATA[Linux Administrator Interview Questions]]></category>
		<category><![CDATA[Mysql + phpmyadmin]]></category>
		<category><![CDATA[VPS]]></category>
		<category><![CDATA[change encoding from UTF8 to LATIN1]]></category>
		<category><![CDATA[encoding from UTF to LATIN]]></category>
		<category><![CDATA[postgresql dataabse]]></category>
		<category><![CDATA[postgresql dataabse fix]]></category>
		<category><![CDATA[postgresql dataabse issue]]></category>
		<category><![CDATA[postgresql dataabse server]]></category>
		<category><![CDATA[steps to change encoding in postgresql dataabse]]></category>
		<category><![CDATA[tutorial for postgresql dataabse]]></category>

		<guid isPermaLink="false">http://www.theperfectarts.com/?p=1236</guid>
		<description><![CDATA[We can change database encoding values for postgresql database by using following steps but make sure that you have taken backup for current database. Log in to server as root user and switch to postgres su postgres - To check all database run psql -l To switch database for example we are using support_test psql [...]]]></description>
			<content:encoded><![CDATA[<p>We can change database encoding values for postgresql database by using following steps but make sure that you have taken backup for current database.</p>
<p>Log in to server as root user and switch to postgres</p>
<p><strong>su postgres -</strong></p>
<p>To check all database run</p>
<p><strong>psql -l</strong></p>
<p>To switch database for example we are using support_test</p>
<p><strong>psql -d support_test</strong></p>
<p>Run command to check encoding</p>
<p><strong>SET CLIENT_ENCODING TO &#8216;LATIN1&#8242;;<br />
or<br />
SET NAMES &#8216;LATIN1&#8242;;</strong></p>
<p>Now check encoding</p>
<p><strong>support_test=# SHOW client_encoding;<br />
client_encoding</strong><br />
<strong>&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
LATIN1<br />
(1 row)</strong></p>
<p><script type="text/javascript"><!--
google_ad_client = "ca-pub-1685490665026631";
/* images */
google_ad_slot = "1433358698";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p>&copy;2012 <a href="http://www.theperfectarts.com">Linux Servers cPanel webhosting blog</a>. All Rights Reserved.</p>.]]></content:encoded>
			<wfw:commentRss>http://www.theperfectarts.com/2011/03/change-database-encoding-value-for-postgresql-dataabse/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>&#8220;unauthenticated user&#8221; problem in mysql logs?</title>
		<link>http://www.theperfectarts.com/2010/06/unauthenticated-user-problem-in-mysql-logs/</link>
		<comments>http://www.theperfectarts.com/2010/06/unauthenticated-user-problem-in-mysql-logs/#comments</comments>
		<pubDate>Wed, 30 Jun 2010 19:54:11 +0000</pubDate>
		<dc:creator>Gunjan</dc:creator>
				<category><![CDATA[Linux Administrator Interview Questions]]></category>
		<category><![CDATA[Mysql + phpmyadmin]]></category>
		<category><![CDATA[Server Security]]></category>
		<category><![CDATA[VPS]]></category>
		<category><![CDATA[check running mysql process]]></category>
		<category><![CDATA[disable remote mysql acces. /etc/my.cnf]]></category>
		<category><![CDATA[mysql issue with unauthenticated user login]]></category>
		<category><![CDATA[mysqladmin -i3 pr]]></category>
		<category><![CDATA[mysqladmin command]]></category>
		<category><![CDATA[problem with unauthenticated user login]]></category>
		<category><![CDATA[skip-host-cache]]></category>
		<category><![CDATA[skip-locking]]></category>
		<category><![CDATA[skip-name-resolve]]></category>
		<category><![CDATA[skip-networking]]></category>
		<category><![CDATA[solution for mysql unauthenticated user login]]></category>
		<category><![CDATA[solution for unauthenticated user problem]]></category>
		<category><![CDATA[unauthenticated user]]></category>
		<category><![CDATA[unauthenticated user access]]></category>
		<category><![CDATA[unauthenticated user issue]]></category>
		<category><![CDATA[unauthenticated user mysql issue]]></category>
		<category><![CDATA[unauthenticated user problem]]></category>
		<category><![CDATA[unauthenticated user resolve]]></category>

		<guid isPermaLink="false">http://www.theperfectarts.com/?p=1074</guid>
		<description><![CDATA[While running following command. mysqladmin -i3 pr We are getting result. 056 &#124; unauthenticated user &#124; localhost &#124;    &#124; Connect &#124;      &#124; Reading from net &#124; To avoid such problem add following lines in /etc/my.cnf file to avoid access for unauthenticated user. root@server [~]# pico /etc/my.cnf skip-networking skip-name-resolve skip-host-cache skip-locking Now restart the mysql service [...]]]></description>
			<content:encoded><![CDATA[<p>While running following command.</p>
<blockquote><p><strong><span style="color: #800000;">mysqladmin -i3 pr</span></strong></p></blockquote>
<p>We are getting result.</p>
<blockquote><p><strong><span style="color: #800000;">056 | unauthenticated user | localhost |    | Connect |      | Reading from net |</span></strong></p></blockquote>
<p>To avoid such problem add following lines in /etc/my.cnf file to avoid access for unauthenticated user.</p>
<blockquote><p><strong><span style="color: #800000;">root@server [~]# pico /etc/my.cnf</span></strong></p></blockquote>
<blockquote><p><strong><span style="color: #800000;">skip-networking</span></strong><br />
<strong><span style="color: #800000;"> skip-name-resolve</span></strong><br />
<strong><span style="color: #800000;"> skip-host-cache</span></strong><br />
<strong><span style="color: #800000;"> skip-locking</span></strong></p></blockquote>
<p>Now restart the mysql service and check mysql process logs again.</p>
<p><script type="text/javascript">// <![CDATA[
     google_ad_client = "ca-pub-1685490665026631"; /* images */ google_ad_slot = "1433358698"; google_ad_width = 300; google_ad_height = 250;
// ]]&gt;</script></p>
<p><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">// <![CDATA[</p>
<p>// ]]&gt;</script></p>
<p>&copy;2012 <a href="http://www.theperfectarts.com">Linux Servers cPanel webhosting blog</a>. All Rights Reserved.</p>.]]></content:encoded>
			<wfw:commentRss>http://www.theperfectarts.com/2010/06/unauthenticated-user-problem-in-mysql-logs/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Database sizes shows zero in cPanel?</title>
		<link>http://www.theperfectarts.com/2010/04/database-sizes-shows-zero-in-cpanel/</link>
		<comments>http://www.theperfectarts.com/2010/04/database-sizes-shows-zero-in-cpanel/#comments</comments>
		<pubDate>Sun, 04 Apr 2010 08:37:32 +0000</pubDate>
		<dc:creator>Gunjan</dc:creator>
				<category><![CDATA[cPanel + cPanel scripts]]></category>
		<category><![CDATA[Mysql + phpmyadmin]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[/scripts/update_db_cache]]></category>
		<category><![CDATA[/var/cpanel/cpanel.config]]></category>
		<category><![CDATA[cPanel 11.24 to 11.25 version.]]></category>
		<category><![CDATA[cPanel database size issue]]></category>
		<category><![CDATA[database issue]]></category>
		<category><![CDATA[database size]]></category>
		<category><![CDATA[mysql database size in cPanel]]></category>
		<category><![CDATA[zero disk space]]></category>

		<guid isPermaLink="false">http://www.theperfectarts.com/?p=996</guid>
		<description><![CDATA[Once we upgrade from cPanel 11.24 to 11.25 version. We are receiving lots bug. One of them is database size showing zero in cPanel. To resolve this issue you have to edit following file /var/cpanel/cpanel.config root@support[~]vi /var/cpanel/cpanel.config Search line &#8220;disk_usage_include_sqldbs&#8221; in file &#8220; /var/cpanel/cpanel.config &#8220; and change it From disk_usage_include_sqldbs=0 to disk_usage_include_sqldbs=1 And run script [...]]]></description>
			<content:encoded><![CDATA[<p>Once we upgrade from cPanel 11.24 to 11.25 version. We are receiving lots bug. One of them is database size showing zero in cPanel. To resolve this issue you have to edit following file <strong>/var/cpanel/cpanel.config</strong></p>
<p><strong>root@support[~]vi </strong><strong>/var/cpanel/cpanel.config</strong></p>
<p>Search line &#8220;<strong>disk_usage_include_sqldbs</strong>&#8221; in file &#8220;<strong> </strong><strong>/var/cpanel/cpanel.config</strong><strong></strong><strong> </strong><strong><span><span style="font-family: Arial; font-size: x-small;">&#8220;</span></span></strong> and change it</p>
<input type="hidden" name="IL_RELATED_TAGS" value="1" />From</p>
<p><strong>disk_usage_include_sqldbs=0</strong></p>
<p>to</p>
<p><strong>disk_usage_include_sqldbs=1</strong></p>
<p>And run script</p>
<p><strong>-/scripts/update_db_cache</strong><br />
<script type="text/javascript">// <![CDATA[
 google_ad_client = "ca-pub-1685490665026631"; /* images */ google_ad_slot = "1433358698"; google_ad_width = 300; google_ad_height = 250;
// ]]&gt;</script></p>
<p><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">// <![CDATA[</p>
<p>// ]]&gt;</script></p>
<p>&copy;2012 <a href="http://www.theperfectarts.com">Linux Servers cPanel webhosting blog</a>. All Rights Reserved.</p>.]]></content:encoded>
			<wfw:commentRss>http://www.theperfectarts.com/2010/04/database-sizes-shows-zero-in-cpanel/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to check mysql servers set values?</title>
		<link>http://www.theperfectarts.com/2010/02/how-to-check-mysql-servers-set-values/</link>
		<comments>http://www.theperfectarts.com/2010/02/how-to-check-mysql-servers-set-values/#comments</comments>
		<pubDate>Sun, 21 Feb 2010 01:59:34 +0000</pubDate>
		<dc:creator>Gunjan</dc:creator>
				<category><![CDATA[Linux Administrator Interview Questions]]></category>
		<category><![CDATA[Mysql + phpmyadmin]]></category>
		<category><![CDATA[check mysql values]]></category>
		<category><![CDATA[my.cnf]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[mysql value]]></category>
		<category><![CDATA[mysqld --no-defaults --verbose --help]]></category>

		<guid isPermaLink="false">http://www.theperfectarts.com/?p=982</guid>
		<description><![CDATA[Most of the time we need to check the mysql value set on server and most of the techs checks /etc/my.cnf file.If you want to check all values set in mysql on server. We can use following simple command. mysqld &#8211;no-defaults &#8211;verbose &#8211;help &#169;2012 Linux Servers cPanel webhosting blog. All Rights Reserved..]]></description>
			<content:encoded><![CDATA[<p>Most of the time we need to check the mysql value set on server and most of the techs checks /etc/my.cnf file.If you want to check all values set in mysql on server. We can use following simple command.</p>
<p><span style="color: #800000;">mysqld &#8211;no-defaults &#8211;verbose &#8211;help</span><script type="text/javascript">// <![CDATA[
 google_ad_client = "ca-pub-1685490665026631"; /* images */ google_ad_slot = "1433358698"; google_ad_width = 300; google_ad_height = 250;
// ]]&gt;</script></p>
<p><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">// <![CDATA[</p>
<p>// ]]&gt;</script></p>
<p>&copy;2012 <a href="http://www.theperfectarts.com">Linux Servers cPanel webhosting blog</a>. All Rights Reserved.</p>.]]></content:encoded>
			<wfw:commentRss>http://www.theperfectarts.com/2010/02/how-to-check-mysql-servers-set-values/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>phpmyadmin error &#8220;Cannot start session without errors&#8221;?</title>
		<link>http://www.theperfectarts.com/2009/12/phpmyadmin-error-cannot-start-session-without-errors/</link>
		<comments>http://www.theperfectarts.com/2009/12/phpmyadmin-error-cannot-start-session-without-errors/#comments</comments>
		<pubDate>Wed, 02 Dec 2009 14:22:06 +0000</pubDate>
		<dc:creator>Gunjan</dc:creator>
				<category><![CDATA[Mysql + phpmyadmin]]></category>
		<category><![CDATA[/usr/local/cpanel/3rdparty/etc/phpmyadmin/php.ini]]></category>
		<category><![CDATA[Cannot start session without errors]]></category>
		<category><![CDATA[issue with phpmyadmin session]]></category>
		<category><![CDATA[php.ini for phpmyadmin issue]]></category>
		<category><![CDATA[php.ini session]]></category>
		<category><![CDATA[phpmyadmin error]]></category>
		<category><![CDATA[phpmyadmin session issue]]></category>
		<category><![CDATA[phpmyadmin session php.ini]]></category>
		<category><![CDATA[phpmyadmin session problem]]></category>
		<category><![CDATA[phpmyadmin session resolution]]></category>
		<category><![CDATA[phpmyadmin session solution]]></category>
		<category><![CDATA[session error with phpmyadmin]]></category>
		<category><![CDATA[session file issue]]></category>
		<category><![CDATA[session issue]]></category>
		<category><![CDATA[set session value for phpmyadmin session in php.ini]]></category>
		<category><![CDATA[set the session in php.ini file]]></category>
		<category><![CDATA[solution for session issue in phpmyadmin]]></category>

		<guid isPermaLink="false">http://www.theperfectarts.com/?p=709</guid>
		<description><![CDATA[The most common problem in newly installed cPanel server is as follows after browsing the phpmyadmin problem. &#8220;cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly.&#8221; To resolve above error you need to change the values in /usr/local/cpanel/3rdparty/etc/phpmyadmin/php.ini file. root@admin[~]#pico /usr/local/cpanel/3rdparty/etc/phpmyadmin/php.ini And [...]]]></description>
			<content:encoded><![CDATA[<p>The most common problem in newly installed cPanel server is as follows after browsing the phpmyadmin problem.</p>
<p><a href="http://www.theperfectarts.com/2009/12/phpmyadmin-error-cannot-start-session-without-errors/phpmyadmin/" rel="attachment wp-att-710"><img class="aligncenter size-medium wp-image-710" title="phpmyadmin" src="http://www.theperfectarts.com/wp-content/uploads/2009/12/phpmyadmin-300x156.jpg" alt="phpmyadmin" width="300" height="156" /></a><span class="Apple-style-span" style="color: #800000;">&#8220;cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly.&#8221;</span></p>
<p><span style="color: #800000;"><span style="color: #000000;">To resolve above error you need to change the values in</span> </span>/usr/local/cpanel/3rdparty/etc/phpmyadmin/php.ini file.</p>
<p><span style="color: #800000;">root@admin[~]#pico /usr/local/cpanel/3rdparty/etc/phpmyadmin/php.ini</span><br />
And than change the following values in php.ini file</p>
<p>FROM:<br />
&#8212;&#8211;<br />
<span style="color: #800000;">session.save_handler = sqlite<br />
session.save_path =/var/cpanel/userhomes/cpanelphpmyadmin/sessions/phpsess.sdb</span><br />
&#8212;&#8211;</p>
<p>TO<br />
&#8212;&#8211;<br />
<span style="color: #800000;">session.save_handler = files<br />
session.save_path = /tmp</span><br />
Note : To make change the values in php.ini you need to login into as root user.<br />
<script type="text/javascript">// <![CDATA[
 google_ad_client = "ca-pub-1685490665026631"; /* images */ google_ad_slot = "1433358698"; google_ad_width = 300; google_ad_height = 250;
// ]]&gt;</script></p>
<p><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">// <![CDATA[</p>
<p>// ]]&gt;</script></p>
<p>&copy;2012 <a href="http://www.theperfectarts.com">Linux Servers cPanel webhosting blog</a>. All Rights Reserved.</p>.]]></content:encoded>
			<wfw:commentRss>http://www.theperfectarts.com/2009/12/phpmyadmin-error-cannot-start-session-without-errors/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to repair mysql database table manually?</title>
		<link>http://www.theperfectarts.com/2009/11/how-to-repair-mysql-database-table-manually/</link>
		<comments>http://www.theperfectarts.com/2009/11/how-to-repair-mysql-database-table-manually/#comments</comments>
		<pubDate>Mon, 16 Nov 2009 20:21:04 +0000</pubDate>
		<dc:creator>Gunjan</dc:creator>
				<category><![CDATA[Mysql + phpmyadmin]]></category>
		<category><![CDATA[mysql database table]]></category>
		<category><![CDATA[repair mysql table]]></category>
		<category><![CDATA[repaire mysql database]]></category>

		<guid isPermaLink="false">http://www.theperfectarts.com/?p=439</guid>
		<description><![CDATA[You can repair the database table manually from shell by using following command. root@admin[~]mysql&#62;mysql –u databaseusername –p databasename For example if we are using database gunjan_db root@admin[~]mysql mysql&#62; use gunjan_db; Database changed mysql&#62; show tables; +&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+ &#124; Tables_in_gunjan_db              &#124; +&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+ &#124; additional_images &#124; address_book &#124; address_format &#124; administrators &#124; banners &#124; banners_history &#124; cache [...]]]></description>
			<content:encoded><![CDATA[<p>You can repair the database table manually from shell by using following command.</p>
<p><strong><span style="color: #800000;">root@admin[~]mysql&gt;mysql –u databaseusername –p databasename</span></strong></p>
<p>For example if we are using database gunjan_db</p>
<p><strong><span style="color: #800000;">root@admin[~]mysql</span></strong></p>
<p><strong><span style="color: #800000;">mysql&gt; use gunjan_db;</span></strong><br />
Database changed</p>
<p><strong>mysql&gt; show tables;</strong></p>
<p><strong>+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+</strong><br />
<strong> | Tables_in_gunjan_db              |</strong><br />
<strong> +&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+</strong><br />
<strong> | additional_images</strong><br />
<strong> | address_book</strong><br />
<strong> | address_format</strong><br />
<strong> | administrators</strong><br />
<strong> | banners</strong><br />
<strong> | banners_history</strong><br />
<strong> | cache</strong><br />
<strong> | categories</strong><br />
<strong> | categories_description</strong><br />
<strong> | configuration</strong><br />
<strong> | configuration_group</strong></p>
<p><strong>| counter</strong></p>
<p><strong>| orders_products</strong><br />
<strong> | orders_products_attributes</strong><br />
<strong> | orders_products_download</strong><br />
<strong> | c</strong><br />
<strong> | orders_status_history</strong><br />
<strong> | orders_total</strong></p>
<p>For example we need to repair table orders_status</p>
<p><span style="color: #800000;">mysql&gt; repair table orders_status;</span><br />
+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;-+<br />
| Table                              | Op     | Msg_type | Msg_text |<br />
+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;-+<br />
| gunjan_db.orders_status | repair | status   | OK       |<br />
+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;-+<br />
1 row in set (0.11 sec)</p>
<p><strong><span style="color: #800000;">mysql&gt; q</span></strong><br />
Bye<br />
<script type="text/javascript">// <![CDATA[
 google_ad_client = "ca-pub-1685490665026631"; /* images */ google_ad_slot = "1433358698"; google_ad_width = 300; google_ad_height = 250;
// ]]&gt;</script></p>
<p><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">// <![CDATA[</p>
<p>// ]]&gt;</script></p>
<p>&copy;2012 <a href="http://www.theperfectarts.com">Linux Servers cPanel webhosting blog</a>. All Rights Reserved.</p>.]]></content:encoded>
			<wfw:commentRss>http://www.theperfectarts.com/2009/11/how-to-repair-mysql-database-table-manually/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Backup of mysql database using cron job.</title>
		<link>http://www.theperfectarts.com/2009/10/backup-of-mysql-database-using-cron-job/</link>
		<comments>http://www.theperfectarts.com/2009/10/backup-of-mysql-database-using-cron-job/#comments</comments>
		<pubDate>Tue, 06 Oct 2009 08:30:58 +0000</pubDate>
		<dc:creator>Gunjan</dc:creator>
				<category><![CDATA[Basic Linux]]></category>
		<category><![CDATA[Cron jobs issue]]></category>
		<category><![CDATA[Mysql + phpmyadmin]]></category>
		<category><![CDATA[backup for mysql database]]></category>
		<category><![CDATA[Backup of mysql database using cron job.]]></category>
		<category><![CDATA[configure cron for the mysql]]></category>
		<category><![CDATA[configure the cron for mysql databases backup]]></category>
		<category><![CDATA[Cron job to generate  database backup]]></category>
		<category><![CDATA[cron to secure mysql database]]></category>
		<category><![CDATA[Cronjob to compress database]]></category>
		<category><![CDATA[mysql backup viz cron]]></category>
		<category><![CDATA[mysql database backup in .bz2 format]]></category>
		<category><![CDATA[mysql database backup in .gz format]]></category>
		<category><![CDATA[mysql database backup in .sql format]]></category>
		<category><![CDATA[secure the mysql databases viz cron]]></category>
		<category><![CDATA[set cron for mysql]]></category>
		<category><![CDATA[set mysql database backups]]></category>

		<guid isPermaLink="false">http://www.theperfectarts.com/?p=290</guid>
		<description><![CDATA[To generate the backup of mysql database using cron job refer following three format as per your requirement. 1) Cron job to generate  database backup in  .sql format * * * * * /usr/bin/mysqldump -u databaseusername databasename -ppassword &#62; /path of database database.sql 2) Cronjob to compress database backup in .bz2 format * * * [...]]]></description>
			<content:encoded><![CDATA[<p>To generate the backup of mysql database using cron job refer following three format as per your requirement.</p>
<p>1) Cron job to generate  database backup in  .sql format</p>
<p><span style="color: #800000;">* * * * * /usr/bin/mysqldump -u databaseusername databasename -ppassword &gt; /path of database database.sql</span></p>
<p>2) Cronjob to compress database backup in .bz2 format</p>
<p><span style="color: #800000;">* * * * * /usr/bin/mysqldump -u datbaseusername databasename -pdatbasepassword|bzip2 -c &gt; /path of database database.bz2</span></p>
<p>3)  Cronjob to compress database backup in .gz format</p>
<p><span style="color: #800000;">* * * * * /usr/bin/mysqldump -u databaseusername databasename -ppassword|gzip &gt; /path of databasedatabase.gz</span></p>
<p>If you have any problem or idea about this thread than contact me at <span style="color: #800000;">linux7802@gmail.com</span><br />
<script type="text/javascript">// <![CDATA[
       google_ad_client = "ca-pub-1685490665026631"; /* images */ google_ad_slot = "1433358698"; google_ad_width = 300; google_ad_height = 250;
// ]]&gt;</script></p>
<p><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">// <![CDATA[</p>
<p>// ]]&gt;</script></p>
<p>&copy;2012 <a href="http://www.theperfectarts.com">Linux Servers cPanel webhosting blog</a>. All Rights Reserved.</p>.]]></content:encoded>
			<wfw:commentRss>http://www.theperfectarts.com/2009/10/backup-of-mysql-database-using-cron-job/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

