<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Installing Trac with MySQL database</title>
	<atom:link href="http://famvdploeg.com/blog/2008/08/installing-trac-with-mysql-database/feed/" rel="self" type="application/rss+xml" />
	<link>http://famvdploeg.com/blog/2008/08/installing-trac-with-mysql-database/</link>
	<description>A simple look on things</description>
	<lastBuildDate>Thu, 03 May 2012 11:33:11 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Samuel</title>
		<link>http://famvdploeg.com/blog/2008/08/installing-trac-with-mysql-database/comment-page-1/#comment-1069</link>
		<dc:creator>Samuel</dc:creator>
		<pubDate>Wed, 10 Jun 2009 06:44:13 +0000</pubDate>
		<guid isPermaLink="false">http://famvdploeg.com/blog/?p=68#comment-1069</guid>
		<description>I found necessary to perform the following steps (I don&#039;t know non-standard my trac installation is). I don&#039;t know why the upgrade fails, but I compared the sqlite dump and found a column missing in the milestones table.

1. In the [trac] section of the conf/trac.ini file I needed to add the following:

    database = mysql://trac:trac@localhost:3306/trac
    database_charset = latin1

1.1   Reload the apache server

   /etc/rc.d/init.d/httpd restart

2. trac-admin project-dir upgrade

   I get an error there about a table, then 

3. In mysql 

   drop table milestone;

   create table milestone (
     name varchar(255) primary key,
     due int(11) null default null,
     completed int(11) null default null,
     started int(11) null default null,
     description text null default null);

   INSERT INTO milestone VALUES (&#039;milestone1&#039;,0,0,0,NULL);
   INSERT INTO milestone VALUES (&#039;milestone2&#039;,0,0,0,NULL);
   INSERT INTO milestone VALUES (&#039;milestone3&#039;,0,0,0,NULL);
   INSERT INTO milestone VALUES (&#039;milestone4&#039;,0,0,0,NULL);
   

4. Try again the upgrade...</description>
		<content:encoded><![CDATA[<p>I found necessary to perform the following steps (I don&#8217;t know non-standard my trac installation is). I don&#8217;t know why the upgrade fails, but I compared the sqlite dump and found a column missing in the milestones table.</p>
<p>1. In the [trac] section of the conf/trac.ini file I needed to add the following:</p>
<p>    database = mysql://trac:trac@localhost:3306/trac<br />
    database_charset = latin1</p>
<p>1.1   Reload the apache server</p>
<p>   /etc/rc.d/init.d/httpd restart</p>
<p>2. trac-admin project-dir upgrade</p>
<p>   I get an error there about a table, then </p>
<p>3. In mysql </p>
<p>   drop table milestone;</p>
<p>   create table milestone (<br />
     name varchar(255) primary key,<br />
     due int(11) null default null,<br />
     completed int(11) null default null,<br />
     started int(11) null default null,<br />
     description text null default null);</p>
<p>   INSERT INTO milestone VALUES (&#8216;milestone1&#8242;,0,0,0,NULL);<br />
   INSERT INTO milestone VALUES (&#8216;milestone2&#8242;,0,0,0,NULL);<br />
   INSERT INTO milestone VALUES (&#8216;milestone3&#8242;,0,0,0,NULL);<br />
   INSERT INTO milestone VALUES (&#8216;milestone4&#8242;,0,0,0,NULL);</p>
<p>4. Try again the upgrade&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

