INR (₹)
India Rupee
$
Singapore Dollar

Need Help with Laravel MySQL Connection

By Arvind Goswami in 30 Jan 2024 | 22:24
Arvind Goswami

Arvind Goswami

Student
Loyal User
Forums Top User
Posts: 2
Following: 1
Member since: 27 Jan 2024

Dear community,
I'm Arvind Goswami, I'm new to Laravel and having trouble with 'artisan migrate.' I tried switching from 127.0.0.1 to localhost, but now it's showing "Connection refused." And also I've enabled PDO, but getting pdo_mysql loading error:

"PHP Warning: PHP Startup: Unable to load dynamic library 'pdo_mysql'."


Any simple fixes? Thanks!

30 Jan 2024 | 22:24
0 Likes
Rosaline Desouza

Rosaline Desouza

Student
Loyal User
Posts: 1
Member since: 26 Dec 2023

Can you please share the contents of the .env file and tell me what tools you are using for the server and database.

31 Jan 2024 | 08:53
0 Likes
Arvind Goswami

Arvind Goswami

Student
Loyal User
Forums Top User
Posts: 2
Following: 1
Member since: 27 Jan 2024

Currently, I'm using latest version of PHP which means PHP 8.3, Laravel 10 as framework, MySQL 8 as database and I'm trying to run this project on localhost xampp



31 Jan 2024 | 21:44
0 Likes

Report

Please describe about the report short and clearly.

GDPR

When you visit any of our websites, it may store or retrieve information on your browser, mostly in the form of cookies. This information might be about you, your preferences or your device and is mostly used to make the site work as you expect it to. The information does not usually directly identify you, but it can give you a more personalized web experience. Because we respect your right to privacy, you can choose not to allow some types of cookies. Click on the different category headings to find out more and manage your preferences. Please note, that blocking some types of cookies may impact your experience of the site and the services we are able to offer.