AsgardCMS Installation Error: 'homestead.page__pages' doesn't exist - laravel

I've installed https://asgardcms.com/en onto a Laravel Homestead WM twice now and got the error shown below both times when I try open it in a browser.
QueryException in Connection.php line 636:
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'homestead.page__pages' doesn't exist (SQL: select count(*) as aggregate from `page__pages`)
Screenshot on Imgur
I'm using the default MySQL database settings which are.
DB_HOST=localhost
DB_DATABASE=homestead
DB_USERNAME=homestead
DB_PASSWORD=secret
Everthing seemed fine from the terminal as there no installation issues shown.
Any ideas on what is happening here?

This looks like a database setup issue. Did you ran the install command php artisan asgard:install ? This will guide you step by step to set the database up.

Related

Laravel xampp migrate missing driver windowns 10

Windows 10, using xampp v3.2.4, Laravel 8.12. Whenever running php artisan migrate I get could not find driver (SQL: select * from information_schema.tables where table_schema = public and table_name = migrations and table_type = 'BASE TABLE').
I've tried just about every 'solution' on stack. I've updated the C:\xampp\php\php.ini file, by uncommenting extension=pdo_mysql and extension=mysqli plus setting extension_dir="C:/xampp/php/ext" with no luck.
I had no problems creating the database by logging into MySQL on the command line with mysql -u root and creating the database.
In the env file, `
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=testme
DB_USERNAME=root
DB_PASSWORD=
anddatabase.phpit's set to'default' => env('DB_CONNECTION', 'mysql'),` I'm out of solutions. Any help is much appreciated. The database shows on the PHPMyAdmin Dashboard.
After uninstalling Laravel, then reinstalling the migrate command is now working. Although I have no idea what caused it to now work correctly.

SQLSTATE[42S02]: Base table or view not found: 1932 Table 'blog.categories' doesn't exist in engine (SQL: select * from `categories`)

I had issues with my xampp phpmyadmin, I had to uninstall and reinstall it, after that , I tried copying my files back and running my application but it's not working.
Its giving me
SQLSTATE[42S02]: Base table or view not found: 1932 Table 'blog.categories' doesn't exist in engine (SQL: select * from `categories`)
I have tried migration of my files to the database but it's also not working
Here's what it says:
[Illuminate\Database\QueryException]
SQLSTATE[42S02]: Base table or view not found: 1932 Table 'blog.migrations' doesn't exist in engine (SQL: select `m
igration` from `migrations` order by `batch` asc, `migration` asc)
[PDOException]
SQLSTATE[42S02]: Base table or view not found: 1932 Table 'blog.migrations' doesn't exist in engine
Disconnect all server connections.
Including commands:
php artisan serve
And stop the Apache server and MySQL database and start again. then run:
php artisan migrate
If you try running this before
php artisan schema:dump
which may conflicted with database migration because it squashing migrations to be executed as sql before any migrations in database/migration, try deleting any file in database/schema then try run
php artisan migrate
if the migrate command didn't simply work, try the Negar answer to help the migration
That means that the DB lost or the base of that database doesn't exist. you must have a backup where you will have to drop and import that same db back then restart to what you wanted to do
or
drop the Database, create the same name and use command:
php artisan migrate
to return it but all previous data will have been lost and you have to add it manually or via the application again

Laravel is using the default homestead user details to connect, even though these have been deleted

I am using laravel 5.8.6 and can connect to my database using the artisan migration tool, and can read and write to the database using tinker with no issues.
When I launch the default scaffolding it fails to connect, complaining that the login failed for user homestead#localhost.
I have deleted the .env.example file and cleared the various cache files with no success.
A full search for homestead only reveals log entries:
Illuminate \ Database \ QueryException (1045)
SQLSTATE[HY000] [1045] Access denied for user 'homestead'#'localhost' (using password: YES) (SQL: select * from `users` where `email` =
Any ideas gratefully received.
I had the exact same problem and I just couldn't wrap my mind around how that was even possible. Turns out I seem to have changed the .env file after having started the dev server via php artisan serve. It doesn't pick up changes in the .env config at runtime and it caches the configuration.
After running
php artisan config:clear
, shutting down the dev server and restarting it, the issue was resolved and the database connection successful with the correctly set database credentials.

laravel 5 - when trying to retrive data from phpmyadmin: SQLSTATE HY000 1698 Access denied for user 'root'#'localhost'

That's my first post - I hope my problem explanation will be easy to understand. I just started with Laravel5.
I want to retrive data from mysql database that was successfully created using migrations. I'm following laracast series. I created route, controller and view to display the data. Unfortunatelly, when I enter browser to see it, I constantly get this error:
`SQLSTATE[HY000] [1698] Access denied for user 'root'#'localhost'`
enter image description here
My .env and database.php files are configured. Also, I can do migrations with no error (and I see result in phpmyadmin to which I can log in). When I type php artisan tinker, I can do various operations on my databases. The problem arises only when I want to display data in my laravel site.
I did vast research of the problem and tried numerus tips like:
1.change local host to 127.0.0.1
2.change my database login and pass for homeostead, secret
3.I did
`GRANT ALL PRIVILEGES ON *.* TO 'root'#'localhost' IDENTIFIED BY 'Your_Password';`
When I type mysql --user=root -p I can log in but command show databases acts like never ending and shows nothing.
and other ...
Now, I'm at loss for ideas what to do next, please help me. I will appreciate that a lot cos I'm really stucked at this point!
my .env file:
`DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=laravel
DB_USERNAME=root
DB_PASSWORD=haslo`
I use homeostead and Laravel 5 on Windows 7
Server type: MySQL5.7.15
PHP version: 7.1
Apache/2.4.23, PHP/7.1
have a look at my answer at Unable to connect to local MySQL DB using Laravel
That could be the answer for you as well.
If you use homestead with vagrant, then laravel will be lunched inside vagrant and 127.0.0.1,3306 will mean the mysql inside vagrant, type vagrant ssh and check for the database.
Try this command:
Php artisan config:clear

Access denied 'homestead'#'localhost' when running a Laravel Command

I'm having some trouble getting Laravel to connect to my database, when using a custom Artisan command.
I can post my command but I'll skip to my db settings as I suspect that is what is wrong. In start.php I have:
$env = $app->detectEnvironment(array(
'local' => array('homestead'),
));
and then I have no local/database.php files in my config. Instead I have a .env.local.php which works great for everything except this. All database settings are set as 'DB_NAME => getenv('DB_NAME'); etc.
When I run php artisan custom:command I get the following:
[Illuminate\Database\QueryException]
SQLSTATE[3D000]: Invalid catalog name: 1046 No database selected (SQL: select * from `users` where `paused_until` = 3)
Then if I run
php artisan fdb:reactivate-paused --env=local
I seem to get much closer but still get:
Access denied for user 'homestead'#'localhost' (using password: YES)
Is it that Laravel doesn't know to use the .env.local.php file when I am running commands in the terminal? All my migrate and db:seed queries seem to work fine. Can anyone point me in the right direction?
Looking at it again this morning, I must have been 100% burnt out. I was running the command from my Local Machine, not the Homestead VM.

Resources