[Radiant] Database setup problem

John W. Long ng at johnwlong.com
Mon Nov 20 23:03:18 CST 2006


Charles McKnight wrote:
> I'm new to using Radiant although I've been doing some things in Rails
> for a bit. When I set up a test project to learn how to use Radiant, I
> tried to use the MySQL database (I've been using it for a while as well,
> btw) and got the following errors (after following the installation
> instructions in the handbook):
> 
> ...
>
> /usr/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/conne
> ction_adapters/mysql_adapter.rb:330:in `real_connect': Can't connect to
> local MySQL server through socket '/tmp/mysql.sock' (111) (Mysql::Error)
                                      ^^^^^^^^^^^^^^^
There's the problem. If you are using sockets with Radiant you should 
set up the path to the socket in database so that it is correct. 
Otherwise you should set the configuration so that it connects over the 
appropriate port. My suggestion is to look at the database configuration 
for another Rails app that you have running on MySQL and use it as a 
reference for configuring your Radiant install.

--
John Long
http://wiseheartdesign.com



More information about the Radiant mailing list