Category : mamp

I have been trying to install a system to my local MAC via MAMP, I just recently updated the Database connection not configured error but not upon making the changes to the right configuration I got another error SQLSTATE[HY000] [2002] Connection refused. Error goes as follows : SQLSTATE[HY000] [2002] Connection refused (SQL: select active_template from ..

Read more

I am currently doing a local project, using MAMP with PHP version 7.4.21 and I can’t seem to run my system because the database is not configured correctly. Here’s my .env APP_NAME=Laravel APP_ENV=local APP_KEY= APP_DEBUG=true APP_URL=http://localhost:8888/VMLM LOG_CHANNEL=stack LOG_LEVEL=debug DB_CONNECTION=vmlm DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=laravel DB_USERNAME=root DB_PASSWORD= and here’s my database.php connections’ => [ ‘sqlite’ => [ ‘driver’ ..

Read more

I have this weird thing going on with my setup right now that involves MAMP + Laravel Accessing Laravel and any of its routes, like the following gives me about 1 second delay. http://127.0.0.1/test-controller Route::get(‘/test-controller’, function () { dd("test-controller called, no DB access whatsoever"); }); Direct access to html, jpeg, php shown below have no ..

Read more

I’m using Laravel Valet, I can see the website in the browser, but am unable to make a database connection. I know this because I get error message when trying to migrate my tables. SQLSTATE[HY000] [2002] Connection refused STEPS: I installed php and mysql using Homebrew. After installing mysql, I ran mysql -uroot -p and ..

Read more

when I use this php artisan migrate command, I got thsi error, [IlluminateDatabaseQueryException] could not find driver (SQL: select * from information_schema.tables where table_schema = laravelcrud and t able_name = migrations) [PDOException] could not find driver my .env file, DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=laravelcrud DB_USERNAME=root DB_PASSWORD=root Please help me to fix this error, Sourc..

Read more

I have installed MAMP and PostgreSQL with PGAdmin4, now problems are getting psql command not found error from terminal. I have added export PATH=/Library/PostgreSQL/10/bin:$PATH into ~/.bash_profile, but whenever I’m reopening the terminal, getting the same error again. getting Warning: PHP Startup: Unable to load dynamic library ‘pdo_pgsql’ (tried: /usr/local/lib/php/pecl/20180731/pdo_pgsql (dlopen(/usr/local/lib/php/pecl/20180731/pdo_pgsql, 9): image not found) and ..

Read more

i am working on a Laravel project in MAMP environment. Basically, if i created Laravel project in /User/my-user/Desktop/myLaravelProj It shows me 403 Forbidden error "You don’t have permission to access this resource." And if i moved Laravel project to /Users/my-user/.composer/vendor/laravel/installer/myLaravelProj or /Library/WebServer/Documents/myLaravelProj It works fine. I’ve changed /etc/apache2/httpd.conf‘s DocumentRoot and <Directory> to corresponding-directory/myLaravelProj/public when i ..

Read more

Somehow most of my php artisan commands report an error: C:Projectsbapestore>php artisan migrate IlluminateDatabaseQueryException could not find driver (SQL: select * from information_schema.tables where table_schema = bapestore and table_name = migrations and table_type = ‘BASE TABLE’) at C:ProjectsbapestorevendorlaravelframeworksrcIlluminateDatabaseConnection.php:669 665| // If an exception occurs when attempting to run a query, we’ll format the error 666| ..

Read more

I’m trying to do php artisan migrate and I got this error: IlluminateDatabaseQueryException : could not find driver (SQL: select * from information_schema.tables where table_schema = forge and table_name = migrations and table_type = ‘BASE TABLE’) catch (Exception $e) { 664| throw new QueryException( 665| $query, $this->prepareBindings($bindings), $e 666| ); 667| } I have in ..

Read more