NewUser
NewUser

Reputation: 13333

database migration error in Yii

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

Answers (1)

k to the z
k to the z

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

Related Questions