Rohitashv Singhal
Rohitashv Singhal

Reputation: 4557

unable to run the command in symfony

hey i am working on form using the tutorial http://symfony.com/doc/current/book/forms.html I have created a simple form and configured the data in parameter.ini as follow:

database_driver   = pdo_mysql
    database_host     = localhost
    database_port     =
    database_name     = symfony
    database_user     = root
    database_password = 123456

when i am running in local host then i am getting the following error:

Connection refused
500 Internal Server Error - ConnectionException 

why this is here ?

Upvotes: 1

Views: 430

Answers (2)

weyandch
weyandch

Reputation: 644

Did you run the console commands to build your schema, create the database and tables?

The task

php app/console doctrine:schema:update

should run or give you a detailed error message on the console.

Upvotes: 2

Mick
Mick

Reputation: 31959

Just a guess, but it looks like you haven't changed the password. This is the base config:

parameters:
    database_driver:   pdo_mysql
    database_host:     localhost
    database_port:     ~
    database_name:     symfony
    database_user:     root
    database_password: root

Upvotes: 1

Related Questions