How can I connect with command line to MySQL on Linux?
In the past we had a dream,
to have place where we could share IT knowledge,
to ask questions without fear that someone will judge us.
Now we are a group of people who make this dream come true. ❤ 💻
If you think sharing knowledge and helping other is valuable.
join our community - Click here
Quick solution, just enter:
mysql -u root -p
It will ask you for password. In case you want to login on any other user, instead of 'root' use other user name.
If we want to enter password in the same line:
mysql -u root -proot
Parameter -p is connected with our password in this case the password is root.
When we use MySQL or MariaDB for tests on localhost or VM's we use root or admin as a password, for convenience when the security is not so importnat.
Checkout latest Findings & News:
Checkout latest questions:
Checkout latest wiki articles:
- Dirask is IT community, where we share coding knowledge and help each other to solve coding problems.
We welcome everyone,
no matter what the experience,
no matter how basic the question is,
this community will help you.
- C#/.NET - thread pool
- TypeScript - interface extends keyword
- Java - convert int to String
- Linux - list available groups