Go Back   cPanel Forums > cPanel® and WHM® (for Linux® and FreeBSD® Servers) > cPanel and WHM Discussions

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-09-2004, 10:37 PM
Registered User
 
Join Date: Feb 2004
Posts: 2
tvmt
'root@localhost' (Using password: YES) at /usr/local/cpanel/Cpanel/Mysql.pm line 42".

Hi !

i have error with mysql database.

i set my Setup to Remote MySQL server on cpanel = IP, but unsuccess.
when i change mysql server to localhost, i get error : all database disappear in mysql (cpanel interface), i can see it in phpmyadmin.

and this is error in mysql:
DBI connect('mysql:localhost','root',...) failed: Access denied for user: 'root@localhost' (Using password: YES) at /usr/local/cpanel/Cpanel/Mysql.pm line 42 ERROR 1045: Access denied for user: 'root@localhost' (Using password: YES)

i can using database for normal.

how i can correct this?

please help me!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 08-10-2004, 09:30 PM
Registered User
 
Join Date: Jan 2004
Posts: 8
NrgUser
root@localhost means that you are trying to connect with user root on your own server, not the other one.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-04-2007, 07:12 PM
Registered User
 
Join Date: Apr 2006
Posts: 7
xanaduservers is on a distinguished road
For anyone else seeing this open /root/.my.cnf on your cPanel server and on the remote server then verify the password.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-28-2007, 07:48 AM
Registered User
 
Join Date: Jan 2006
Posts: 18
Divino is on a distinguished road
Unhappy Help DBI connect

In the SQL Services.
I changed the password in: MySQL Root Passwd


DBI connect('mysql:localhost','root',...) failed: Access denied for user 'root'@'localhost' to database 'mysql' at /usr/local/cpanel/Cpanel/Mysql.pm line 42

Can anybody help myself to revolve?

Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 03-01-2007, 07:10 PM
Registered User
 
Join Date: Jul 2006
Location: Poland
Posts: 76
Grzeslaw is on a distinguished road
1. Edit the file /root/.my.cnf
2. Use the mysql root password in the file and reset the mysql password to that password in .my.cnf file.
Code:
/etc/init.d/mysqld stop
safe_mysqld --skip-grant-tables
mysql
USE mysql
UPDATE user
SET password=password("Password in .my.cnf file")
WHERE user="root";
flush privileges;
exit;
killall mysqld
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 03-12-2007, 04:40 PM
Registered User
 
Join Date: Jan 2006
Posts: 18
Divino is on a distinguished road
Talking Thanks

He/she perfectly worked.

Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
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 Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 11:32 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© cPanel Inc