Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite+ 1
how to connect my database with terminal
2 Réponses
0
You can connect with the following command:
mysql -h hostname -u username -p
Then you are asked to authenticate and insert the password for that user.
If you are not granted access to Mysql in linux systems try to prepend sudo to the previous command.
P.S. use SELECT User, Host, Password FROM mysql.user once you are logged in to see table of users, hostname and passwords in your Mysql server.