<?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>LinuxHostingSupport &#187; Mysql &amp; PostGres SQL</title>
	<atom:link href="http://linuxhostingsupport.net/blog/category/mysql-and-postgres-sql/feed" rel="self" type="application/rss+xml" />
	<link>http://linuxhostingsupport.net/blog</link>
	<description>Everything About _Linux WebHosting_</description>
	<lastBuildDate>Tue, 15 May 2012 15:39:04 +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>Converting table to InnoDB: &#8220;The used table type doesn&#8217;t support FULLTEXT indexes&#8221;</title>
		<link>http://linuxhostingsupport.net/blog/converting-table-to-innodb-the-used-table-type-doesnt-support-fulltext-indexes</link>
		<comments>http://linuxhostingsupport.net/blog/converting-table-to-innodb-the-used-table-type-doesnt-support-fulltext-indexes#comments</comments>
		<pubDate>Sun, 29 Apr 2012 19:31:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Mysql & PostGres SQL]]></category>
		<category><![CDATA[FULLTEXT indexes error while converting table to innodb]]></category>
		<category><![CDATA[howto remove FULLTEXT indexes from myisam table?]]></category>
		<category><![CDATA[mysql command to drop FULLTEXT indexes]]></category>
		<category><![CDATA[used table type doesn't support FULLTEXT indexes]]></category>

		<guid isPermaLink="false">http://linuxhostingsupport.net/blog/?p=1879</guid>
		<description><![CDATA[Somtimes you may want to change the Mysql table from MyISAM to InnoDB engine to setup foreign keys, to use row level locks, improve performace etc.
The conversion of the MyISAM table to InnoDB is easy however, if the table is setup with &#8220;FULLTEXT indexes&#8221;, it cannot be converted as this feature is not supported in InnoDB.
If a table is setup with &#8220;FULLTEXT indexes&#8221;, the conversion of table to InnoDB will result in &#8220;The used table type doesn&#8217;t support FULLTEXT indexes&#8221; error message.

mysql&#62; ALTER TABLE test ENGINE=InnoDB;
ERROR 1214: The [...]]]></description>
		<wfw:commentRss>http://linuxhostingsupport.net/blog/converting-table-to-innodb-the-used-table-type-doesnt-support-fulltext-indexes/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mysql failed after upgrade: Table &#8216;mysql.plugin&#8217; doesn&#8217;t exist</title>
		<link>http://linuxhostingsupport.net/blog/mysql-failed-after-upgrade-table-mysql-plugin-doesnt-exist</link>
		<comments>http://linuxhostingsupport.net/blog/mysql-failed-after-upgrade-table-mysql-plugin-doesnt-exist#comments</comments>
		<pubDate>Sat, 24 Mar 2012 12:42:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Mysql & PostGres SQL]]></category>
		<category><![CDATA[Can't open mysql.plugin table: run mysql_upgrade]]></category>
		<category><![CDATA[mysql.plugin table missing message in mysql logs]]></category>
		<category><![CDATA[mysqld failed: Table mysql.plugin doesn't exist]]></category>
		<category><![CDATA[table mysql.plugin doesnt exist after mysql upgrade]]></category>

		<guid isPermaLink="false">http://linuxhostingsupport.net/blog/?p=1832</guid>
		<description><![CDATA[After performing a mysql upgrade, you may run into a problem where Mysql won&#8217;t start successfully and will result in a &#8220;Table &#8216;mysql.plugin&#8217; doesn&#8217;t exist&#8221; error message. The mysql error logs will state something like follows:

/usr/libexec/mysqld: Table 'mysql.plugin' doesn't exist
110620  01:01:01 [ERROR] Can't open the mysql.plugin table.
Please run mysql_upgrade to create it.

The solution is to run mysql_upgrade to create the mysql.plugin table but the problem is you can execute the command only when Mysql is online. Tricky situation, isn&#8217;t it?
This mostly likely happens when mysql is still using [...]]]></description>
		<wfw:commentRss>http://linuxhostingsupport.net/blog/mysql-failed-after-upgrade-table-mysql-plugin-doesnt-exist/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Enable Remote Access to Mysql database server?</title>
		<link>http://linuxhostingsupport.net/blog/how-to-enable-remote-access-to-mysql-database-server</link>
		<comments>http://linuxhostingsupport.net/blog/how-to-enable-remote-access-to-mysql-database-server#comments</comments>
		<pubDate>Tue, 13 Mar 2012 14:59:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Mysql & PostGres SQL]]></category>
		<category><![CDATA[disable skip-networking in mysql]]></category>
		<category><![CDATA[enable remote access database on centos ubuntu]]></category>
		<category><![CDATA[enable remote access to mysql server]]></category>
		<category><![CDATA[grant remote access database to all IPs]]></category>
		<category><![CDATA[howto grant remote access mysql database]]></category>
		<category><![CDATA[what is skip-networking in mysql?]]></category>

		<guid isPermaLink="false">http://linuxhostingsupport.net/blog/?p=1804</guid>
		<description><![CDATA[By default, Mysql doesn&#8217;t allow remote connections for security reasons. However, sometimes you or your client may want to acess the database remotely i.e. from a different server Or from home Or a developer who is working on the website.
To grant remote access to a Mysql databas, the first thing is to make sure &#8216;skip-networking&#8217; is not enabled in Mysql configuration i.e. in the my.cnf file.
On a CentOS/RHEL server, the file is located at /etc/my.cnf
On a Debian/Ubuntu server, the file is located at /etc/mysql/my.cnf
1) SSH to the server [...]]]></description>
		<wfw:commentRss>http://linuxhostingsupport.net/blog/how-to-enable-remote-access-to-mysql-database-server/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to migrate a Mysql database/table from one server to another?</title>
		<link>http://linuxhostingsupport.net/blog/how-to-migrate-a-mysql-databasetable-from-one-server-to-another</link>
		<comments>http://linuxhostingsupport.net/blog/how-to-migrate-a-mysql-databasetable-from-one-server-to-another#comments</comments>
		<pubDate>Sat, 03 Mar 2012 18:03:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Mysql & PostGres SQL]]></category>
		<category><![CDATA[backup mysql table restore on remote server]]></category>
		<category><![CDATA[copy mysql database one server to another]]></category>
		<category><![CDATA[create mysql backup restore on remote server]]></category>
		<category><![CDATA[transfer mysql database one server to another]]></category>

		<guid isPermaLink="false">http://linuxhostingsupport.net/blog/?p=1792</guid>
		<description><![CDATA[The easiest way to transfer a Mysql database from one server to another is by creating a backup, copy the mysql database backup to another server and restore it on the remote server.
The first thing is to create a backup of the mysql database using mysqldump. It creates a backup in the .sql format. You have to use your SSH user/password while backup/restore of database.
To backup a specific database:

# mysqldump -u root -p db_name &#62; db_name.sql

To backup a specific Mysql table:

# mysqldump -u root -p db_name tb_name &#62; [...]]]></description>
		<wfw:commentRss>http://linuxhostingsupport.net/blog/how-to-migrate-a-mysql-databasetable-from-one-server-to-another/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to defragment or optimize a database in Mysql?</title>
		<link>http://linuxhostingsupport.net/blog/how-to-defragment-or-optimize-a-database-in-mysql</link>
		<comments>http://linuxhostingsupport.net/blog/how-to-defragment-or-optimize-a-database-in-mysql#comments</comments>
		<pubDate>Tue, 23 Nov 2010 13:06:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Mysql & PostGres SQL]]></category>
		<category><![CDATA[command to optimize a mysql database]]></category>
		<category><![CDATA[defragment a mysql database]]></category>
		<category><![CDATA[fragmentation of mysql database results performance loss]]></category>
		<category><![CDATA[how to optimize a mysql database?]]></category>

		<guid isPermaLink="false">http://linuxhostingsupport.net/blog/?p=1159</guid>
		<description><![CDATA[In case you remove a lot of data from the tables OR change the database structure, a de-fragmentation/optimizing of the database is necessary to avoid performance loss, especially while running queries. To avoid performance loss, optimize the database.
SSH to your server and execute:

mysqlcheck -o &#60;databasename&#62;

where, -o stands for optimize which is similar to defragmentation. You should look to defragment the tables regularly when using VARCHAR fields since these columns get fragmented too often.
]]></description>
		<wfw:commentRss>http://linuxhostingsupport.net/blog/how-to-defragment-or-optimize-a-database-in-mysql/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mysql: Access denied for user &#8216;root&#8217;@&#039;localhost&#8217;</title>
		<link>http://linuxhostingsupport.net/blog/mysql-access-denied-for-user-rootlocalhost</link>
		<comments>http://linuxhostingsupport.net/blog/mysql-access-denied-for-user-rootlocalhost#comments</comments>
		<pubDate>Sun, 14 Mar 2010 10:43:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Mysql & PostGres SQL]]></category>
		<category><![CDATA[Access denied for user 'root'@'localhost']]></category>
		<category><![CDATA[Access denied for user (using password: NO)]]></category>
		<category><![CDATA[How to reset a Mysql password for 'root'?]]></category>
		<category><![CDATA[mysql update query to reset mysql password]]></category>
		<category><![CDATA[reset mysql password with skip-grant-tables]]></category>

		<guid isPermaLink="false">http://linuxhostingsupport.net/blog/?p=561</guid>
		<description><![CDATA[You may receive the &#8220;Access denied for user &#8216;root&#8217;@'localhost&#8217;&#8221; message while accessing mysql from the command prompt.
The error message states that the Mysql password for user &#8216;root&#8217; is incorrect and need to reset the password using the skip-grant-tables method.

ERROR 1045 (28000): Access denied for user 'root'@'localhost' 
(using password: NO)

How to reset root Mysql password in Linux?
First stop the mysql service


# /etc/init.d/mysql stop

Make sure all the mysql processes are stopped by executing the killall command

# killall -9 mysqld

Next, start mysql is safe mode i.e. the privileges will be skipped [...]]]></description>
		<wfw:commentRss>http://linuxhostingsupport.net/blog/mysql-access-denied-for-user-rootlocalhost/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to enable &#8216;General Query Log&#8217; in Mysql?</title>
		<link>http://linuxhostingsupport.net/blog/how-to-enable-general-query-log-in-mysql</link>
		<comments>http://linuxhostingsupport.net/blog/how-to-enable-general-query-log-in-mysql#comments</comments>
		<pubDate>Sun, 17 Jan 2010 12:44:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Mysql & PostGres SQL]]></category>
		<category><![CDATA[enable 'General Query Log' in Mysql?]]></category>
		<category><![CDATA[enable logs in mysql]]></category>
		<category><![CDATA[how to keep track of mysql queries?]]></category>
		<category><![CDATA[save mysql logs]]></category>
		<category><![CDATA[what is General Query Log in mysql?]]></category>

		<guid isPermaLink="false">http://linuxhostingsupport.net/blog/?p=473</guid>
		<description><![CDATA[General Query Log is used to keep track of mysql status i.e. it writes the information when a client connects/disconnects OR a query is executed. It is useful when the number of people managing the database is high. In order to enable &#8216;General Query Log&#8217;,
edit the Mysql configuration file
vi /etc/my.cnf
enable the log under the &#8216;mysqld&#8217; section
log=/var/log/mysql.general.log
Save the file. Now create the log file and set the mysql ownership
touch /var/log/mysql.general.log
chown mysql.mysql /var/log/mysql.general.log
Now, restart the mysql service
/etc/init.d/mysql restart
You can now execute the queries using phpMyAdmin OR 3rd party sql software [...]]]></description>
		<wfw:commentRss>http://linuxhostingsupport.net/blog/how-to-enable-general-query-log-in-mysql/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>invalid byte sequence for encoding &#8220;UTF8&#8243;</title>
		<link>http://linuxhostingsupport.net/blog/invalid-byte-sequence-for-encoding-utf8</link>
		<comments>http://linuxhostingsupport.net/blog/invalid-byte-sequence-for-encoding-utf8#comments</comments>
		<pubDate>Sat, 28 Nov 2009 10:44:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Mysql & PostGres SQL]]></category>
		<category><![CDATA[byte sequence does not match the encoding]]></category>
		<category><![CDATA[dump and restore a postgres database]]></category>
		<category><![CDATA[how to change client_encoding?]]></category>
		<category><![CDATA[how to dump a pgsql database?]]></category>
		<category><![CDATA[how to restore a pgsql database?]]></category>
		<category><![CDATA[invalid byte sequence for encoding "UTF8"]]></category>
		<category><![CDATA[pgsql database + utf8 encoding error]]></category>
		<category><![CDATA[pgsql database and client_encoding]]></category>
		<category><![CDATA[UTF8 encoding error while restoring pgsql database]]></category>

		<guid isPermaLink="false">http://linuxhostingsupport.net/blog/?p=351</guid>
		<description><![CDATA[Error:
root@host [~]#  psql databasename &#60; dump.sql
ERROR:  invalid byte sequence for encoding &#8220;UTF8&#8243;: 0xd1e9
HINT:  This error can also happen if the byte sequence does not match the encoding expected by the server, which is controlled by &#8220;client_encoding&#8221;.
The above error is received while restoring a pgsql dump and when the clicnt_encoding of the database is mismatched.
Solution:
1) Edit the dump.sql file
vi dump.sql
2) Change the line
SET client_encoding = &#8216;SQL_ASCII&#8217;;
to
SET client_encoding = &#8216;latin-1&#8242;;
i.e. you need to change the client_encoding from &#8216;SQL_ASCII&#8217; to &#8216;latin-1&#8242;.
3) Save the file and restore the database once again.
]]></description>
		<wfw:commentRss>http://linuxhostingsupport.net/blog/invalid-byte-sequence-for-encoding-utf8/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>how to enable log-queries-not-using-indexes</title>
		<link>http://linuxhostingsupport.net/blog/how-to-enable-log-queries-not-using-indexes</link>
		<comments>http://linuxhostingsupport.net/blog/how-to-enable-log-queries-not-using-indexes#comments</comments>
		<pubDate>Sat, 31 Oct 2009 18:46:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Mysql & PostGres SQL]]></category>
		<category><![CDATA[how to check mysql variables]]></category>
		<category><![CDATA[how to edit mysql variables values]]></category>
		<category><![CDATA[how to enable log-queries-not-using-indexes]]></category>
		<category><![CDATA[log_queries_not_using_indexes]]></category>
		<category><![CDATA[log_queries_not_using_indexes + my.cnf]]></category>
		<category><![CDATA[mysqladmin variables]]></category>
		<category><![CDATA[where is the mysql configuration file]]></category>

		<guid isPermaLink="false">http://linuxhostingsupport.net/blog/?p=264</guid>
		<description><![CDATA[How to enable &#8220;log-queries-not-using-indexes&#8221; in Mysql?
Edit /etc/my.cnf and place the following line under the [mysqld] section:
log-queries-not-using-indexes
Save the file and restart the mysql service:
# /etc/init.d/mysql restart
To verify if it is set to ON, use the following command:
# mysqladmin variables &#124;grep  log_queries_not_using_indexes
]]></description>
		<wfw:commentRss>http://linuxhostingsupport.net/blog/how-to-enable-log-queries-not-using-indexes/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Howto: Backup and Restore a database</title>
		<link>http://linuxhostingsupport.net/blog/howto-backup-and-restore-a-database</link>
		<comments>http://linuxhostingsupport.net/blog/howto-backup-and-restore-a-database#comments</comments>
		<pubDate>Mon, 05 Oct 2009 21:28:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Mysql & PostGres SQL]]></category>
		<category><![CDATA[backup a database on a cPanel server]]></category>
		<category><![CDATA[howto backup a database on Plesk server]]></category>
		<category><![CDATA[Howto restore a .sql file]]></category>
		<category><![CDATA[Howto: Backup and Restore a database]]></category>

		<guid isPermaLink="false">http://linuxhostingsupport.net/blog/?p=185</guid>
		<description><![CDATA[You need to use the &#8220;mysqldump&#8221; command to backup a Mysql database.
Backup/Dump a Mysql database on a Linux Or Linux/cPanel server:
root@host [~]# mysqldump /var/lib/mysql/dbname &#62; dbname.sql
Restore the .sql file in a database:
root@host [~]# mysql /var/lib/mysql/dbname &#60; /path/to/filename.sql
Backup/Dump a Mysql database on a Linux/Plesk server:
root@host [~]# mysqldump -uadmin -p`cat /etc/psa/.psa.shadow` /var/lib/mysql/dbname &#62; dbname.sql
Restore the .sql file on a Plesk server :
root@host [~]# mysql -uadmin -p`cat /etc/psa/.psa.shadow` /var/lib/mysql/dbname &#60; /path/to/filename.sql
]]></description>
		<wfw:commentRss>http://linuxhostingsupport.net/blog/howto-backup-and-restore-a-database/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

