开发者

Symfony database setup: command "symfony" in ms-dos doesn't work

开发者 https://www.devze.com 2023-01-13 21:52 出处:网络
I am trying to do this: c:\\> php symfony configure:database \"mysql:host=localhost;dbname=jobeet\" root mYsEcret

I am trying to do this:

c:\> php symfony configure:database "mysql:host=localhost;dbname=jobeet" root mYsEcret

This doesnt work for me because it says

Could not open input file

I thought I needed to add symfony-file located in C:\dev\sfprojects\jobeet\lib\vendor\symfony\data\bin\ to PATH, but this didn't do the trick. I tried to enter the whole path to the symfony-file like so:

c:\> php C:\dev\sfprojects\jobeet\lib\vendor\symfony\data\bin\symfony\ configure:database "mysql:host=localhost;dbname=jobeet" root mYsEcret

I get error Task configure:database not defined

What should I do in order to:

  1. Be able to use the symfony keyword rather than the whole path of the file
  2. Be able to run configure:database?

Thank you for your开发者_开发技巧 time.

Kind regards, Marius


You need to be in the directory of your symfony project, in this case C:\dev\sfprojects\jobeet\.


"Because the symfony shortcut file is executable, Unix users can replace all occurrences of 'php symfony' by './symfony' from now on.

On Windows you can copy the 'symfony.bat' file to your project and use 'symfony' instead of 'php symfony":

http://www.symfony-project.org/jobeet/1_4/Doctrine/en/01#chapter_01_sub_application_creation

0

精彩评论

暂无评论...
验证码 换一张
取 消