<?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>vincentkong.com &#187; MySQL</title>
	<atom:link href="http://www.vincentkong.com/tag/mysql/feed" rel="self" type="application/rss+xml" />
	<link>https://www.vincentkong.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Wed, 07 Jul 2010 00:32:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Problem using MySQL JDBC on Tomcat 5.5 and Ubuntu 8.04</title>
		<link>https://www.vincentkong.com/2008/11/problem-using-mysql-jdbc-on-tomcat-55-and-ubuntu-804</link>
		<comments>https://www.vincentkong.com/2008/11/problem-using-mysql-jdbc-on-tomcat-55-and-ubuntu-804#comments</comments>
		<pubDate>Wed, 05 Nov 2008 03:36:39 +0000</pubDate>
		<dc:creator>Vincent Kong</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Tomcat]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.vincentkong.com/?p=224</guid>
		<description><![CDATA[Normally when I build a web application that connects to a MySQL database, I would place the mysql-connector-java-bin.jar file into the WEB-INF/lib of the web application. However, when I deployed the application on Tomcat 5.5 on Ubuntu 8.04 I got an exception: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver I couldn&#8217;t find the reason which caused the exception, so I [...]


Related posts:<ol><li><a href='https://www.vincentkong.com/2007/10/tomcat-55-doesnt-start-in-ubuntu-710' rel='bookmark' title='Permanent Link: Tomcat 5.5 Doesn&#8217;t Start in Ubuntu 7.10'>Tomcat 5.5 Doesn&#8217;t Start in Ubuntu 7.10</a></li>
<li><a href='https://www.vincentkong.com/2007/05/mysql-for-ubuntu-quickstart-guide' rel='bookmark' title='Permanent Link: MySQL for Ubuntu Quickstart Guide'>MySQL for Ubuntu Quickstart Guide</a></li>
<li><a href='https://www.vincentkong.com/2007/05/tomcat-55-for-ubuntu-quickstart-guide' rel='bookmark' title='Permanent Link: Tomcat 5.5 for Ubuntu Quickstart Guide'>Tomcat 5.5 for Ubuntu Quickstart Guide</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Normally when I build a web application that connects to a MySQL database, I would place the <code>mysql-connector-java-bin.jar</code> file into the <code>WEB-INF/lib</code> of the web application.</p>
<p>However, when I deployed the application on Tomcat 5.5 on Ubuntu 8.04 I got an exception: <code>java.lang.ClassNotFoundException: com.mysql.jdbc.Driver</code></p>
<p>I couldn&#8217;t find the reason which caused the exception, so I did a quick fix by placing the jar file into the Tomcat&#8217;s common lib directory.</p>
<p><code>$ cp mysql-connector-java-bin.jar /usr/share/java<br />
$ cd /usr/share/tomcat5.5/common/lib<br />
$ ln -s ../../../java/mysql-connector-java-bin.jar mysql-connector-java-bin.jar</code></p>


<p>Related posts:<ol><li><a href='https://www.vincentkong.com/2007/10/tomcat-55-doesnt-start-in-ubuntu-710' rel='bookmark' title='Permanent Link: Tomcat 5.5 Doesn&#8217;t Start in Ubuntu 7.10'>Tomcat 5.5 Doesn&#8217;t Start in Ubuntu 7.10</a></li>
<li><a href='https://www.vincentkong.com/2007/05/mysql-for-ubuntu-quickstart-guide' rel='bookmark' title='Permanent Link: MySQL for Ubuntu Quickstart Guide'>MySQL for Ubuntu Quickstart Guide</a></li>
<li><a href='https://www.vincentkong.com/2007/05/tomcat-55-for-ubuntu-quickstart-guide' rel='bookmark' title='Permanent Link: Tomcat 5.5 for Ubuntu Quickstart Guide'>Tomcat 5.5 for Ubuntu Quickstart Guide</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>https://www.vincentkong.com/2008/11/problem-using-mysql-jdbc-on-tomcat-55-and-ubuntu-804/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL for Ubuntu Quickstart Guide</title>
		<link>https://www.vincentkong.com/2007/05/mysql-for-ubuntu-quickstart-guide</link>
		<comments>https://www.vincentkong.com/2007/05/mysql-for-ubuntu-quickstart-guide#comments</comments>
		<pubDate>Tue, 15 May 2007 16:01:15 +0000</pubDate>
		<dc:creator>Vincent Kong</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://wordpress.vincentkong.com/?p=96</guid>
		<description><![CDATA[Installing MySQL for Ubuntu From the Ubuntu desktop: Go to System &#62; Administration &#62; Synapatic Package Manager Search for &#8220;mysql-server&#8221; and &#8220;Mark for installation&#8221; Click on the &#8220;Apply&#8221; to install From the command line: $ sudo apt-get install mysql-server Setting a Password for the MySQL Root User By default the MySQL installation doesn&#8217;t have the [...]


Related posts:<ol><li><a href='https://www.vincentkong.com/2008/11/problem-using-mysql-jdbc-on-tomcat-55-and-ubuntu-804' rel='bookmark' title='Permanent Link: Problem using MySQL JDBC on Tomcat 5.5 and Ubuntu 8.04'>Problem using MySQL JDBC on Tomcat 5.5 and Ubuntu 8.04</a></li>
<li><a href='https://www.vincentkong.com/2007/05/drupal-quickstart-guide' rel='bookmark' title='Permanent Link: Drupal Quickstart Guide'>Drupal Quickstart Guide</a></li>
<li><a href='https://www.vincentkong.com/2007/05/openssh-for-ubuntu-quickstart-guide' rel='bookmark' title='Permanent Link: OpenSSH for Ubuntu Quickstart Guide'>OpenSSH for Ubuntu Quickstart Guide</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><strong>Installing MySQL for Ubuntu</strong></p>
<p>From the Ubuntu desktop:</p>
<ol>
<li>Go to System &gt; Administration &gt; Synapatic Package Manager</li>
<li>Search for &#8220;mysql-server&#8221; and &#8220;Mark for installation&#8221;</li>
<li>Click on the &#8220;Apply&#8221; to install</li>
</ol>
<p>From the command line:</p>
<p><code>$ sudo apt-get install mysql-server<br />
</code></p>
<p><strong>Setting a Password for the MySQL Root User</strong></p>
<p>By default the MySQL installation doesn&#8217;t have the password set for root. To set the password at the unix prompt:</p>
<p><code>$ mysqladmin -u root password &lt;password&gt;</code></p>
<p><strong>Creating a Database in MySQL</strong></p>
<p>Login into MySQL as root and in the prompt type:</p>
<p><code>mysql&gt; CREATE DATABASE &lt;database name&gt;</code></p>
<p><strong>Granting Privileges in MySQL</strong></p>
<p>In the MySQL prompt:</p>
<p><code>mysql&gt; GRANT &lt;what to grant&gt; ON &lt;database name&gt;.* TO '&lt;username&gt;'@'&lt;hostname&gt;' IDENTIFIED BY '&lt;password&gt;'</code></p>
<p><strong>Backing Up Your Database</strong></p>
<p>Use the <code>mysqldump</code> command line:</p>
<p><code>$ mysqldump &lt;database name&gt;</code></p>
<p>To backup more than one database:</p>
<p><code>$ mysqldump --databases &lt;database 1&gt; &lt;database 2&gt; </code></p>
<p>To backup all the databases:</p>
<p><code>$ mysqldump --all-databases</code></p>
<p><strong>Restoring Your Database</strong></p>
<p><code>$ mysql -u &lt;username&gt; -p &lt;database name&gt; &lt; &lt;database backup file&gt;</code></p>


<p>Related posts:<ol><li><a href='https://www.vincentkong.com/2008/11/problem-using-mysql-jdbc-on-tomcat-55-and-ubuntu-804' rel='bookmark' title='Permanent Link: Problem using MySQL JDBC on Tomcat 5.5 and Ubuntu 8.04'>Problem using MySQL JDBC on Tomcat 5.5 and Ubuntu 8.04</a></li>
<li><a href='https://www.vincentkong.com/2007/05/drupal-quickstart-guide' rel='bookmark' title='Permanent Link: Drupal Quickstart Guide'>Drupal Quickstart Guide</a></li>
<li><a href='https://www.vincentkong.com/2007/05/openssh-for-ubuntu-quickstart-guide' rel='bookmark' title='Permanent Link: OpenSSH for Ubuntu Quickstart Guide'>OpenSSH for Ubuntu Quickstart Guide</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>https://www.vincentkong.com/2007/05/mysql-for-ubuntu-quickstart-guide/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
