This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
DATABASE MISSING A database is required to access the back-end. Check the database is configured and migrated before trying again.
I've done a fair bit of Googling and based on suggestions fiddled with things here and there, but still no joy. I uncommented a few lines as seemed may be good in .htaccess, changed localhost to 127.0.0.1 (I think it was), looked around and tried to find anything that might be funny, but just have no idea.
Keep seeing others ask about a .env file, but I can not find that file anywhere. Where should it be located???
Front end comes up beautifully.
Last updated
Hi
I believe that if your page is composed only with static files it will work. To check connection problems with your database you can consult the settings in the /config/database.php file
put the password, username and database name as it is in your production environment.
Remember that you have to create your bank and upload the tables to your hosting server. This can usually be done with your server's phpmyadmin
cassiotalle54928 said:
Hi
I believe that if your page is composed only with static files it will work. To check connection problems with your database you can consult the settings in the /config/database.php file
put the password, username and database name as it is in your production environment.
Remember that you have to create your bank and upload the tables to your hosting server. This can usually be done with your server's phpmyadmin
Thanks for your suggestions. As mentioned, I installed through Softaculous and the script created the database. Phpmyadmin shows a lot of tables for the created db, but I don't know what I'm looking at so if something's funny I wouldn't know. I honestly don't know what "bank" means, but I'll check it out. I'll also check the config/database again. To my layman's layman eyes, things look as I would guess they should in that file though . . .
By the way, and maybe this is what you meant when mentioning that the static files "will work", but since the front end comes up fine, doesn't that indicate that the database is "there" and operational? Just the backend access is telling me there is no database. This seems a rather common problem from what I've seen while searching, but all the clues to fix it haven't helped me yet.
Thanks again!
Hi open your /config/database.php file and verify the mysql configuration database, username, host and password
the username and password are probably the same as the ones you use to access phpmyadmin
'mysql' => [
'driver' => 'mysql',
'engine' => 'InnoDB',
'host' => 'localhost',
'port' => 3306,
'database' => 'database name',
'username' => 'your_username',
'password' => 'your_password',
'charset' => 'utf8mb4',
'collation' => 'utf8mb4_unicode_ci',
'prefix' => '',
'varcharmax' => 191,
cassiotalle54928 said:
Hi open your /config/database.php file and verify the mysql configuration database, username, host and password
the username and password are probably the same as the ones you use to access phpmyadmin
'mysql' => [ 'driver' => 'mysql', 'engine' => 'InnoDB', 'host' => 'localhost', 'port' => 3306, 'database' => 'database name', 'username' => 'your_username', 'password' => 'your_password', 'charset' => 'utf8mb4', 'collation' => 'utf8mb4_unicode_ci', 'prefix' => '', 'varcharmax' => 191,
Yes! Done many times on many attempts at reinstallation. It's all correct, every time. I appreciate your advice, but bottom line, something is broken about this that should be rather obvious I think. I would have to advise the developers that October isn't going to go anywhere if they can't get a working install script into Softaculous so that newbies are welcome to the party. I was very interested to try it out and think it would have been a great solution for me, but I have moved on. I came across many threads about the same problem that just went silent and no one (except one) ever resolved the issue. And the one that was resolved never posted how he resolved it.
Thanks again, though.
Last updated
brntoki said:
cassiotalle54928 said:
Hi open your /config/database.php file and verify the mysql configuration database, username, host and password
the username and password are probably the same as the ones you use to access phpmyadmin
'mysql' => [ 'driver' => 'mysql', 'engine' => 'InnoDB', 'host' => 'localhost', 'port' => 3306, 'database' => 'database name', 'username' => 'your_username', 'password' => 'your_password', 'charset' => 'utf8mb4', 'collation' => 'utf8mb4_unicode_ci', 'prefix' => '', 'varcharmax' => 191,
Yes! Done many times on many attempts at reinstallation. It's all correct, every time. I appreciate your advice, but bottom line, something is broken about this that should be rather obvious I think. I would have to advise the developers that October isn't going to go anywhere if they can't get a working install script into Softaculous so that newbies are welcome to the party. I was very interested to try it out and think it would have been a great solution for me, but I have moved on. I came across many threads about the same problem that just went silent and no one (except one) ever resolved the issue. And the one that was resolved never posted how he resolved it.
Thanks again, though.
I m experiencing the same problem and unfortunately there doesnt seem to be any solution. i have done all of the above and nothing works. the funny thing is that it works perfectly on my localhost. Please share if you've figured out a solution.
Check your config/database.php, specifically the default
setting and the settings for the driver specified in default
.
Guys it just worked! I didnt have to touch any config/database.php file as LukeTowers above suggests. The only thing that i did was to add the public directory as the installation directory. (i dont normally do this). Now i m not sure if that's what solved this issue. But thanx anyway guys!
1-9 of 9