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

Captcha Click on image to update the captcha.

Have an account? Sign In Now

Sign In

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

Sorry, you do not have a permission to ask a question, You must login to ask question.

Forgot Password?

Need An Account, Sign Up Here
Tech Answered Logo Tech Answered Logo
Sign InSign Up

Tech Answered

Tech Answered Navigation

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

Mobile menu

Close
Ask a Question
  • Home
  • About Us
  • Blog
  • Contact Us
Home / Questions /Q 1330
Next
In Process
sita
sita

sita

  • India
  • 105 Questions
  • 59 Answers
  • 1 Best Answer
  • 74 Points
View Profile
  • 0
sita
Asked: February 3, 20212021-02-03T12:37:15+05:30 2021-02-03T12:37:15+05:30In: Database Related

sql error access denied for user ‘root’@’localhost’ Fix

  • 0

when i tried to run the following Sql command “$ ./mysqladmin -u root -p ‘”
it is showing “sql error access denied for user ‘root’@’localhost'”. How can i fix $ ./mysqladmin -u root -p ‘ ?

mysqladmin: connect to server at ‘localhost’ failed error:
mysqlerror access denied for user rootlocalhost using password yes

how to fix sql error access denied for user 'root'@'localhost'sqlsql errorsql error access denied for user 'root'@'localhost'sql error access denied for user 'root'@'localhost' how to fixsql error access denied for user 'root'@'localhost' how to solvesql local host error
  • 1
  • 793
  • 0
  • 0
Answer
Share
  • Facebook

    Related Questions

    • How to install my SQL database on laptop with sample program
    • sql error 26 - error locating server/instance specified
    • How Python is used in Data Science?
    • what are SQL Joins? What are the types of SQL Joins?

    1 Answer

    1. chandra_tech

      chandra_tech

      • India
      • 1 Question
      • 1 Answer
      • 0 Best Answers
      • 23 Points
      View Profile
      chandra_tech
      2021-02-04T13:16:33+05:30Added an answer on February 4, 2021 at 1:16 pm

      To fix the “error access denied for user ‘root’@’localhost’ ” we need to check and verify the root password.

      root@localhost access denied errors need to reset of root password.Please do follow the below steps to solve :

      1.stop mysql

      /etc/init.d/mysql stop
      

      2.start mysql safe :

      mysqld_safe
      

      3.connect to mysql

      mysql -u root
      

      4.change the password

      mysql> use mysql;
      mysql> update user set password=PASSWORD(”YOUR_PASSWORD”) where user=’root’;
      mysql> flush privileges;
      mysql> quit
      

      5.stop mysql

      /etc/init.d/mysql stop
      

      6.start mysql

      /etc/init.d/mysql start
      
      Now you can able to login successfully with the new password.
      • 1
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    Leave an answer

    Leave an answer
    Cancel reply

    Browse

    Sidebar

    Ask A Question

    More Questions

    • dynamicapps5

      How to Write VBA Code To Auto delete Blank Or

    • Aniya

      How to install my SQL database on laptop with sample

    • Abrar

      What is mean by cascading style sheets (CSS) ? What

    • Abrar

      What is HTML ( hyper text markup language) how is

    • Abrar

      What is mean by Normalisation in data base management system?what

    • Abrar

      What is mean by structured query language (SQL) and how

    • Abrar

      What is Electronic data interchange (EDI) how does it work

    • Mr.Condoluci

      Browse internal hard drive

    Stats

    • Questions 1,987
    • Answers 2,097
    • Posts 12
    • Best Answers 73

    Related Questions

    • Aniya

      How to install my SQL database on laptop with sample program

    • nora khan

      sql error 26 - error locating server/instance specified

    • Priyanka Chakraborty

      How Python is used in Data Science?

    • Rohan Rathore

      what are SQL Joins? What are the types of SQL Joins?

    Explore

    • Home
    • Communities
    • Questions
      • New Questions
      • Trending Questions
      • Must read Questions
      • Hot Questions
    • Polls
    • Tags
    • Badges
    • Users
    • Help

    Footer

    Recent Comments

    • shree on How to use philips citrus press juicer 25 watts Demo
    • kiran kumar85 on How To Insert Names Automatically in Excel Sheet With VBA Code
    • Satish on How To Insert Names Automatically in Excel Sheet With VBA Code
    • jameslaurence on alarm won’t go off while on facetime how to fix
    • jameslaurence on how to solve export problem in kinemaster
    Ask A Question

    Archives

    Tags

    laptop buying guide (1) limit google news notifications (1) printer buying guide (1) stop google news notifications (1) turn off google news notifications (1)

    Social media

    © 2023 @ Techanswered.com.
    Terms, Privacy policy & Sitemap.

    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.