Reputation: 13333
I am newbie to yii. I have made database in MySQL.After that I want to migrate the database.So for that I made a folder called migration under protected and from framework folder whenever I am writing command yiic migrate create --name=add_table
in terminal.It is showing error like yiic: command not found
I am using ubuntu 11.04.So what is the problem behind that.
Upvotes: 2
Views: 1717
Reputation: 3185
cd down to the folder containing the yiic file and try the command then. If that doesn't work try to put "php" in front of the command like:
php yiic migrate create --name=add_table
Or you could try:
./yiic
Upvotes: 4