Welcome Guest | Login

Trying to upgrade to new typo

I have been using typo for a while and decided it was time to upgrade.  So I took the information here:http://www.hostingrails.com/forums/wiki_thread/3
which didn't provide much on how to upgrade, so i tried my best.

Did the SVN command (which failed a few times then finally seemed to work).  Then i moved my old typo folder over to back it up and moved the new one over to its own foloder: /typo

Then i set up the database yml file to point to my old typo database, and then ran typo.  At first it failed cause I didn't copy over the theme it was using, so then I goto the admin page and it lets me do nothing but update the database I guess?  So I ran this several times...and finally can get the typo page changed but not all my pages in my typo admin area work and usually cause an error in the browser.  I don't think I migrated correctly cause now going to the typo admin page I can only goto a few pages from there, the other pages all give me a HTTP 500 (stuff like the Articles, Feed back and even the Themes page now.)  I guess there is a first time for everything, and I am willing to redo what I have to in order to learn and get this to work.  The tutorial wiki was pretty good too but I think there is an error on the line that speaks of being:

[~/typo]#--user=username_typouser --pass=** username_typo <db/schema.mysql.sql

isn't there a mysql command missing? and perhaps a database name?  I think this was the only sticking point on this tutorial (that and it wasn't written it seemed for those trying to upgrade the installs).

I am sure I was making it harder than it had to be but id like to figure this out.  I was wondering if there was more perhaps command line driven steps I had to do to upgrade my typo then merely copying the folder over and updating the database.yml (and .htaccess and environment.rb stuff, typical application deployment) was there more to that?

Thanks,
Shane
p.s. I did search the forums for typo installs but nothing seemed to be exactly my problem and they spoke of things that are out of date (gems, and using rake?)




2007-07-24 10:30 AM

Should be:

[~/typo]# mysql --user=username_typouser --pass=** username_typo <db/schema.mysql.sql

database name in there is "username_typo"

The Typo problems you're experiencing are common to the app - sometimes hard to avoid.  And often the trunk has errors in it -- so you should stick with something stable if you got it.



2007-07-24 11:23 AM

oh im new to svn too, whats not the trunk?  (i guess the trunk is the latest release...) hmmm I hope i didnt screw up my database.  I didn't notice the database name there, I guess I could rebuild a new database and see how that works...(btw Still love my hosting here, awesome setup and fast responses!)

2007-07-24 11:35 AM

A typical svn directory tree has branches, tags, and a trunk.  Tags are typically releases like "1.0", branches are when developers want to branch off any try something away from trunk, and trunk is the latest code (or EDGE, so to speak)

2007-07-24 12:49 PM

How do I create a new database if I don't have access to all the web tools?  I think i goofed and tried a: sudo mysql call and it said incident reported, was that a no no?  I wanted to create a new database for my typo install to try out to see if it was a database migration issue or the install itself I did.


2007-07-24 01:41 PM

Hi there - you need to create new databases through your cPanel.  And yes, "incident reported",   be careful not to get that message again. :)  

2007-07-24 03:05 PM

K i wont do that again :) i did create a database and added a user to it and then i did this line:
mysql --user=username_typouser --pass=** username_typo <db/schema.mysql.sql
but alas it keeps saying access denied for user: gives my name and then says using password YES  , does the --pass have to be in single quotes or something?

2007-07-24 03:36 PM

I've tried the same command to connect to the database which threw an error saying a table already exists. You may want to ensure that you've added the MySQL user to the database with full privileges. If this issue persists, please contact support, so this can be dealt in detail.

2007-07-24 05:26 PM


Hello Guest! In order to post you must be an active client with us, please log in or sign up.