1. download the latest sugarbox from here.. (or you can use git clone command)
2. upload to your server, initially set permission to all
3.check whether you have all the required items(go to your browser http://localhost/sugarbox/web/check.php)
4.In terminal cd to your sugarbox directory
5.in terminal type this
php blog/console -s
6.you'll get a symfony environment. to see all the available commands type this:
list
7.to create database as configured in blog/config/config.yml type this in terminal:
doctrine:database:create
8.we create the Entity model in src/Application/BlogBundle/Entity/Blog.php doctrine take this and convert to database schema. to create this(schema) type
doctrine:schema:create
9.next, create repositories for entity
doctrine:generate:repositories
10.the above will create BlogBundle/Entity/BlogRepositories.php
After finishing the above steps check in your browser.
http://localhost/sugarbox/web/index.php
To create new blog post :
http://localhost/sugarbox/web/index.php/blog/new
I get an error when I try to create the database...
ReplyDelete[code]
Symfony > doctrine:database:create
Could not create database for connection named todo
SQLSTATE[28000] [1045] Access denied for user 'root'@'localhost' (using password: YES)
[/code]
Here is the connection section of my blog/config/config.yml (password hidden)...
[code]
doctrine.dbal:
connections:
default:
driverClass: Doctrine\DBAL\Driver\PDOMySql\Driver
dbname: sugarbox
user: bud
password:
[/code]
Please let me know what I am doing wrong?
Thanks,
Bud