![]() To fix this error, you need to define the hostname based on your localhost development server. Sometimes, you might face following error: public $default =, 'port' = > 3306, ] CodeIgniter\Database\Exceptions\DatabaseException In this segment, you have to open the app/Config/Database.php and add the database name, username, and password in the $default array. Name varchar ( 100 ) NOT NULL COMMENT 'Name', type varchar ( 255 ) NOT NULL COMMENT 'File Type', PRIMARY KEY (id ) ) ENGINE = InnoDB DEFAULT CHARSET =latin1 COMMENT = 'files table' AUTO_INCREMENT = 1 Add Database Credentials Id int ( 11 ) NOT NULL AUTO_INCREMENT COMMENT 'Primary Key' , Make sure to execute the following SQL query to generate a new table. We will not just rotate the image but also validate the image file and store it in the database for storing the image, we need a database and a files table. ini_set ( 'display_errors', '1' ) Create File Table You need to go to app/Config/Boot/development.php likewise app/Config/Boot/production.php files and carefully switch the display_errors property to 1 from 0. ![]() This step is optional, you can activate the error debugging. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |