I was trying to connect my laravek project to database but I couldnot connect with my xampp mysql. I can connect with my local downloaded mysql. but not with the xampp mysql.
I wanted to connect my project with xampp mysql and was expecting I will be able to work in phpmyadmin.
Maybe this article can help you. Remember to edit the.env file in your project root directory to set the environment variables value
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=database_name
DB_USERNAME=root
DB_PASSWORD=
By default, the Xampp user is root, with no password
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.