[typo] rake aborted - access denied to mysql db

Alan Partis alpartis at thundernet.com
Thu Feb 5 23:30:08 EST 2009


Update: my problem appears to be resolved.  The solution is that I appear
to have been missing a 'db_host=' argument to the 'typo install' command
line.

Thanks for your troubles.


On Thu, 5 Feb 2009, Alan Partis wrote:

>
> I really hate to be a bother, but I'm running out of thoughts to resolve
> my problem getting Typo running on my host (Dreamhost.com).
>
> They've got the Typo 5.2 gem installed with Rails 2.2.2 and Ruby 1.8.5.
> mysql --version reports the following:
>
> mysql  Ver 14.12 Distrib 5.0.16, for pc-linux-gnu (i386) using readline 5.0
>
> I have established a mysql database named xyz_test and a user with full
> privileges called xyz.  I have verified that I can connect to the db using
> the following command line:
>
>  $ mysql -h mysql.mydomain.com -u xyz -pxxxx -D xyz_test
>
> My problem is a failure when running the Typo install to my local path as
> follows ($GEM_PATH is set to ~/gems):
>
>  $ typo install my_root/typo db_user=xyz db_name=xyz_test db_password=xxxx
>
> The output (showing a couple problems):
>
> Installing typo 5.2
>  Stopping Typo
> ** Ruby version is not up-to-date; loading cgi_multipart_eof_fix
> !!! PID file ~/my_root/typo/tmp/pid.txt does not exist.  Not running?
> mongrel::stop reported an error. Use mongrel_rails mongrel::stop -h to get
> help.
>  Checking for existing Typo install in
> /home/.mooer/alpartis/staging.thundernet.com/typo
>  Reading files from /home/alpartis/gems/gems/typo-5.2
>  copying rails 2.2.2 to
> /home/.mooer/alpartis/staging.thundernet.com/typo/vendor/rails/railties
>  copying activesupport 2.2.2 to
> /home/.mooer/alpartis/staging.thundernet.com/typo/vendor/rails/activesupport
>  copying activerecord 2.2.2 to
> /home/.mooer/alpartis/staging.thundernet.com/typo/vendor/rails/activerecord
>  copying actionpack 2.2.2 to
> /home/.mooer/alpartis/staging.thundernet.com/typo/vendor/rails/actionpack
>  copying actionmailer 2.2.2 to
> /home/.mooer/alpartis/staging.thundernet.com/typo/vendor/rails/actionmailer
>  Making scripts executable
>  Checking database
>  Creating initial database
>  Creating MySQL database
> ERROR 2002 (HY000): Can't connect to local MySQL server through socket
> '/var/run/mysqld/mysqld.sock' (2)
> ERROR 2002 (HY000): Can't connect to local MySQL server through socket
> '/var/run/mysqld/mysqld.sock' (2)
>  Migrating Typo's database to newest release
> rake aborted!
> Access denied for user 'xyz'@'nnnnnnnnnnn' (using password: YES)
>
>
>
> QUESTIONS:
>
> 1. It seems that my host's Ruby installation is slightly out of date for
>    Typo's needs (1.8.5 vs. 1.8.6) but the installer appears to handle that
>    by loading the cgi_multipart_eof_fix.  Do I need to install my own
>    local copy of Ruby?
>
> 2. Where is Typo picking up the apparently incorrect reference to the
>    mysqld socket file?
>
> 3. Is the socket failure the cause of the Access denied error?
>
> Thanks for any insight provided.
>
>
>
> _______________________________________________________
> Alan Partis
> thundernet development group


More information about the Typo-list mailing list