Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I see no problem with the syntax you have there. The error you have posted seems to indicate you have mistakenly done this somewhere:</p> <pre><code>development: &lt;&lt; *production pool: 5 </code></pre> <p>Can you post the complete <code>database.yml</code> file that has the problem? Redact it as much as you need, but I think the problem lies somewhere in the data that wasn't posted.</p> <p><strong>EDIT</strong></p> <p>I was correct, you were trying to make production inherit from a block that didn't exist:</p> <pre><code>production: &amp;development ... </code></pre> <p>I didn't try it to verify, but it could be that ruby 1.8's YAML parser is more forgiving about these types of errors.</p> <p>Anyways, I went ahead and DRYed up that file for you and made sure that it parsed correctly:</p> <pre><code>defaults: &amp;defaults adapter: mysql2 username: root password: timeout: 60000 encoding: utf8 development: &amp;development &lt;&lt;: *defaults database: &lt;%= $dev_main_database %&gt; host: &lt;%= $dev_linux_machine_name %&gt; test: &lt;&lt;: *defaults host: tecpdb database: ecpmain_test staging: &amp;staging &lt;&lt;: *defaults database: ecpmain_staging username: sa password: woofer8 host: &lt;%= $staging_database_host %&gt; production: &amp;production &lt;&lt;: *defaults database: &lt;%= $dev_main_database %&gt; host: &lt;%= $dev_linux_machine_name %&gt; background_process_development: &lt;&lt;: *development background_process_staging: &lt;&lt;: *staging background_process_production: &lt;&lt;: *production doc_finals_defaults: &amp;doc_finals_defaults adapter: mysql2 username: sa password: woofer8 timeout: 60000 encoding: utf8 doc_finals_development: &amp;doc_finals_development &lt;&lt;: *doc_finals_defaults database: &lt;%= $dev_docs_database %&gt; host: &lt;%= $dev_linux_machine_name %&gt; doc_finals_test: &lt;&lt;: *doc_finals_defaults database: ecpdocs_test host: tecpdb doc_finals_staging: &amp;doc_finals_staging &lt;&lt;: *doc_finals_defaults adapter: mysql2 database: ecpdocs_staging host: &lt;%= $staging_database_host %&gt; doc_finals_production: &amp;doc_finals_production &lt;&lt;: *doc_finals_defaults database: ecpdocs_production username: sa password: nash!@w host: pecpdb3 doc_finals_background_process_development: &lt;&lt;: *doc_finals_development doc_finals_background_process_staging: &lt;&lt;: *doc_finals_staging doc_finals_background_process_production: &lt;&lt;: *doc_finals_production logging_defaults: &amp;logging_defaults adapter: mysql2 username: sa password: woofer8 timeout: 60000 encoding: utf8 logging_development: &amp;logging_development &lt;&lt;: *logging_defaults database: &lt;%= $dev_logging_database %&gt; host: &lt;%= $dev_linux_machine_name %&gt; logging_test: &lt;&lt;: *logging_defaults database: ecplogging_test host: tecpdb logging_staging: &amp;logging_staging &lt;&lt;: *logging_defaults database: ecplogging_staging host: &lt;%= $staging_database_host %&gt; logging_production: &amp;logging_production &lt;&lt;: *logging_defaults database: ecplogging_production username: sa password: nash!@w host: pecpdb3 logging_background_process_development: &lt;&lt;: *logging_development logging_background_process_staging: &lt;&lt;: *logging_staging logging_background_process_production: &lt;&lt;: *logging_production </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload