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

  • SEARCH
  • Home
  • 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 9019769
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T04:51:25+00:00 2026-06-16T04:51:25+00:00

I encounter the error below no matter what mysql command I enter in my

  • 0

I encounter the error below no matter what mysql command I enter in my shell on my bluehost connected server.

ERROR 1045 (28000): Access denied for user 'myuser'@'localhost' (using password: YES)

The simplest command I have tried that nets this error is

mysql -u myuser -pMypass
ERROR 1045 (28000): Access denied for user 'myuser'@'localhost' (using password: YES)

I am 100% sure the user and password are correct as I have tried several different users.
I have tried granting all permissions to each user.
I have tried executing as my root user. I have also tried with -e on a simply query.

Does anyone know if there is a global setting that is preventing my from even the simplest of commands?

I am getting access with PuTTy and can see/edit my files correctly.

EDIT:::: SOLUTION:::: My password contained a ‘$’ which needed to be escaped….

  • 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-16T04:51:25+00:00Added an answer on June 16, 2026 at 4:51 am

    When you ran

    mysql -u myuser -p
    

    and got this error

    ERROR 1045 (28000): Access denied for user 'myuser'@'localhost' (using password: YES)
    

    mysqld is expecting you to connect as myuser@localhost

    Try creating myuser@localhost

    CREATE USER myuser@localhost IDENTIFIED BY 'passpass';
    grant all privileges on *.* to myuser@localhost with grant option;
    

    If you want to connect remotely, you must specify either the DNS name, the public IP, or 127.0.0.1 using TCP/IP:

    mysql -u myuser -p -hmydb@mydomain.com
    mysql -u myuser -p -h10.1.2.30
    mysql -u myuser -p -h127.0.0.1 --protocol=TCP
    

    Once you login, please run this

    SELECT USER(),CURRENT_USER();
    

    USER() reports how you attempted to authenticate in MySQL

    CURRENT_USER() reports how you were allowed to authenticate in MySQL from the mysql.user table

    This will give you a better view of how and why you were allowed to login to mysql. Why is this view important to know? It has to do with the user authentication ordering protocol.

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

Sidebar

Related Questions

The SQL Server error I encounter as below: Could not allocate space for object
I am writing a RFID device driver and encounter an compiling error below: [root@localhost
I encounter error like this in my sql in running my program, How can
i encounter an error like Error 1 fatal error LNK1107: invalid or corrupt file:
I'm trying to call Dispatcher.PushFrame() from several different thread but encounter an error: Must
I'am very new to google-apps-script. I encounter this error TypeError: Cannot find function getValue
I'm encounter a strange error and I don't know how to fix it. I'm
While using inner join on Pro*C I am getting the below error: PCC-S-02201, Encountered
Am passing some parameters through in Struts2, and am getting below error when there
I get this error in the debugging mode when i first encounter the marked

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.