# Sql: error

**URL:** <https://www.ruby-forum.com/t/sql-error/85955>\
**Category:** Radiant CMS\
**Created:** [February 18, 2007, 3:02am UTC](https://www.ruby-forum.com/t/sql-error/85955 "2007-02-18T03:02:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![keith](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/f05b48/32.png) [@keith](https://www.ruby-forum.com/u/keith)\
**Post date:** [February 18, 2007, 3:02am UTC](https://www.ruby-forum.com/t/sql-error/85955/1 "2007-02-18T03:02:47Z")

</div>

All,

Hope some1 can help.

I am receiving the following error having set up radiant and visiting  
the  
localhost:3000. Any ideas?

ActiveRecord::StatementInvalid in SiteController#show\_page

Mysql::Error: Lost connection to MySQL server during query: SHOW FIELDS  
FROM  
config

---

<div class="post-metadata">

**Author:** ![keith](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/f05b48/32.png) [@keith](https://www.ruby-forum.com/u/keith)\
**Post date:** [February 18, 2007, 5:06am UTC](https://www.ruby-forum.com/t/sql-error/85955/2 "2007-02-18T05:06:55Z")

</div>

Have you run “rake db:migrate”? (or script/setup\_database on pre-  
mental Radiant)

---

<div class="post-metadata">

**Author:** ![keith](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/f05b48/32.png) [@keith](https://www.ruby-forum.com/u/keith)\
**Post date:** [February 18, 2007, 11:38am UTC](https://www.ruby-forum.com/t/sql-error/85955/3 "2007-02-18T11:38:11Z")

</div>

Jamie,

In command prompt I ran 'ruby script/setup\_database production. Am I  
setting  
up the correct database? I have dev - test and live.

Keith

* * *

From: Jamie M. Wilkinson [[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)]  
Sent: 18 February 2007 04:05  
To: removed\_email\_address@domain.invalid; removed\_email\_address@domain.invalid  
Subject: Re: [Radiant] sql: error

Have you run “rake db:migrate”? (or script/setup\_database on pre-mental  
Radiant)

On Feb 17, 2007, at 9:01 PM, keith wrote:

All,  
Hope some1 can help.  
I am receiving the following error having set up radiant and visiting  
the  
localhost:3000. Any ideas?

ActiveRecord::StatementInvalid in SiteController#show\_page

Mysql::Error: Lost connection to MySQL server during query: SHOW FIELDS  
FROM  
config
