Home » Php » Cake 3.0 » how to connect the database in cakephp 3.0

how to connect the database in cakephp 3.0

how to connect the database in cakephp 3.0

In the last tutorials we demonstrate how we install cake 3.0 using comoser. And now we will explian how to connect new fresh installtion project to the database.

  1. Create a new databse in you phpmyadmin and locate the file in below location and open your editor. D:\xamp\htdocs\cakephp3\config\app.php
  2. Go to line no 206 and change your Defalut connection string veraible(Host name, database Password and databse name)
  3. After change the default credentail referesh your browser and you are getting "CakePHP is able to connect to the database." Message like as below screenshot.

cakephp 3 database connection

, ,

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">