how to connect my database with terminal | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

how to connect my database with terminal

7th Oct 2021, 5:19 AM
Annu kumar gupta
2 Answers
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.
7th Oct 2021, 5:59 AM
Simone Appella
Simone Appella - avatar