Answer the question
In order to leave comments, you need to log in
How to "make friends" laravel with mysql?
Good day. Faced the following kind of problem.
There is a database, in the console it is:
+--------------------+
| Database |
+--------------------+
| information_schema |
| forge |
| mysql |
| performance_schema |
| phpmyadmin |
| sys |
+--------------------+
Answer the question
In order to leave comments, you need to log in
The port is standard. You probably do not have a [email protected] user, and you can only connect as root via a socket, which is what the console client does by default. Naturally, for a web application, there is no need to connect under root, so you need to do one of two things:
-Create a user with rights to this database and @127.0.0.1
, and connect via 127.0.0.1:3306.
-Create a user with rights to this database, @localhost
and connect via socket.
Well, mysql [email protected] assign a password if it is really empty.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question