Your HostICan Community  


Go Back   Your HostICan Community > HostICan Web Hosting > Virtual Private Servers (VPS)

Virtual Private Servers (VPS) Need help with your VPS plan on HostICan? Please feel free to ask and we'll give you the answers!

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 11-06-2007, 08:58 PM
lnxcode's Avatar
lnxcode lnxcode is offline
The British Kid
 
Join Date: Sep 2007
Location: Richmond, VA
Posts: 2,020
Send a message via AIM to lnxcode Send a message via Skype™ to lnxcode
Default How To: MySQL Error "Access denied for user..."

Are you getting ?

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

How do you fix the above?

From SSH, you will do the below commands:
  • service chkservd stop
  • service mysql stop
  • vi /mysql.recover
  • #add the following line to /mysql.recover and change MyNewPassword to the password that you want
  • SET PASSWORD FOR 'root'@'localhost' = PASSWORD('MyNewPassword');
  • chmod 777 /mysql.recover
  • mysqld_safe --init-file=/mysql.recover &
  • service mysql stop
  • rm -fv /mysql.recover
  • service mysql start
  • service chkservd start
  • the root pass is in /root/.my.cnf
You should be all set!
__________________
Thanks,

Denis Motova
Affiliate / Operations Manager

HostICan Answers | Become a HostICan Affiliate | Create a Support Ticket.
Reply With Quote
 

Tags
access denied for user, error, mysql

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Upgrade MySQL From 4.2.2 To 5.x: Do I Dare? itwasntme Virtual Private Servers (VPS) 4 09-22-2008 11:05 AM
I want to host my wordpress site with high mysql load aadhunik Pre-Sales Questions 3 08-19-2008 11:39 PM
Chris - Importing MySQL table Smaug PHP / MySQL Assistance 3 06-18-2008 04:36 PM
MySQL my.ini Queue Virtual Private Servers (VPS) 4 04-09-2008 01:19 PM
Remote MySQL lnxcode Shared Hosting 7 09-26-2007 02:13 AM


All times are GMT -4. The time now is 03:33 AM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.

Copyright © 2003 - 2008 HostICan. All Rights Reserved.