Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8336815
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T04:06:40+00:00 2026-06-09T04:06:40+00:00

When I try to check the mysql version using terminal I get the following

  • 0

When I try to check the mysql version using terminal I get the following error.

KillBill:~ KillBill$ mysql -v
ERROR 1045 (28000): Access denied for user 'KillBill'@'localhost' (using password: NO)

but when I do the following and add the password it works and logs me into MYSQL prompt.

KillBill:~ KillBill$ mysql -u root -p

Why am I getting the following error on mysql -v prompt only. What do I do to fix it? Everything else is working fine, I can connect to mysql db in the apps I am developing no problem whatsoever.

Any help will be highly appreciated. Thank you!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T04:06:41+00:00Added an answer on June 9, 2026 at 4:06 am

    If you start the mysql client without givinng the -u option, it assumes you want to login with the current username, in your case KillBill. If this user isn’t a mysql user or is a mysql user, but has to specify a password to login, the user will be refused a connection.

    Login as “root”, create a mysql user names “KillBill” and assign a password. Have look here for the syntax of that. Then assign appropriate rights using the GRANT statement.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I get the following error message when I try this query: $query .= ($tid,
I am using the compareTo method in Java to try and check if a
When I try to access my site, then check my Heroku logs, I see
I'm connecting to a MySQL database using the MySqlClient class. When I try to
Getting a MySQL error message when I try to insert a text message from
I'm getting the following error whenever I try to post something with an apostrophe
I am getting this error when I try to run this MySQL command: CREATE
I commit all my files into bitbucket. i try check in,revert file i deleted
What the heck does obstructed mean when you try to check into Subversion? I
For some reason, when I try to check a file against FileAttributes.Normal, it seems

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.