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 9244173
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T08:57:52+00:00 2026-06-18T08:57:52+00:00

I have a VPS running CentOS and have apache, php, mysql all installed. I

  • 0

I have a VPS running CentOS and have apache, php, mysql all installed. I was following a tutorial for installation and apparently did something wrong when setting up mysql (I believe something with setting user and password). Now whenever I try to get to the MySQL command line interface I receive this error.

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

I looked this up and got a few suggestions to try to bypass so I can reset the passwords. I’ve tried:

/etc/init.d/mysqld --skip-grant-tables

Which came up with the same error. I tried reinstalling by first removing mysql and then installing it again. Same Error appears. What else can I do?

  • 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-18T08:57:53+00:00Added an answer on June 18, 2026 at 8:57 am

    (if U don’t have anything in DB, remove mysqlDB – not installation, but DB files in /var/lib/mysql/ – backup it first!)

    start this: shell# mysql_secure_installation

    it will ask U to:

    • Set a root password. If you already have it
    • you’ll need to enter it for the remaining steps.
    • Remove anonymous users
    • Disable non-local root access
    • Remove the test database and access rules related to it
    • Reload privilege tables so the above changes are in effect

    BR

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

Sidebar

Related Questions

I have VPS and it already has apache and php sites running. Now i
I have a new Red5 server installed on my VPS, I'm running CentOS 5.7
I am running a LAMP server on a VPS, and I have just installed
I have a centos 5.8 VPS which is running mod_php rather than fastcgi which
I have normal sites running with php and jango on my VPS. Now i
I'm running cloud9 on a VPS. I have looked all over and I can't
I have a VPS running Fedora, and I have installed nginx and PHP5.3.6. Here
I have Apache 2 running on a VPS server (running Debian). I recently changed
I have a VPS that is running Fedora Core 6, with yum somehow removed
I have just bought a VPS running Ubuntu and I need to install the

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.