Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Servers > [SOLVED] mysqladmin connection error

Forgot Password?
 Servers   Anything server related, Apache, MySQL, Samba, server security, sendmail, exim, etc

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Closed Thread
 
Thread Tools Display Modes
Old 07-03-2009   #1 (permalink)
Just Joined!
 
Join Date: Jun 2009
Posts: 2
Question [SOLVED] mysqladmin connection error

I'm trying to connect to a database I made on a linux box using mysqladmin from XP.

When I try to login as root I get this error.
Code:
MySQL Error Number 1045
Access Denied for user 'root' at 'myip' (using password: NO)
There is no root password setup. (at least i think there isn't based on this)
Code:
$ mysql -u root
Welcome to the MySQL monitor. ...
mysql>
I've already ran a GRANT ALL ... command if that makes any difference here

Any help would be appreciated
wsetchell is offline  


Old 07-03-2009   #2 (permalink)
Linux Newbie
 
Join Date: May 2008
Location: NYC, moved from KS & MO
Posts: 244
Not sure how your grant command looks like, but if you want to enable access for user root from <xp_ip>, you would have to execute the following mysql commands on the server after logging in with user root:
Code:
grant all on *.* to 'root'@'<xp_ip>' identified by '<password>';
flush privileges;
Substitute <xp_ip> and <password> with your xp's ip and the password you want.
secondmouse is offline  
Old 07-06-2009   #3 (permalink)
Just Joined!
 
Join Date: Jul 2009
Posts: 7
Hi Wsetchell, You might have forgot to give access to IP in that SQL string. try above SQL query if that doesnt work then make sure that port 3306 is open in your firewall.

Good Luck.
bills is offline  
Old 07-06-2009   #4 (permalink)
Linux Newbie
 
Join Date: May 2008
Location: NYC, moved from KS & MO
Posts: 244
Quote:
make sure that port 3306 is open in your firewall
I don't think firewall is the problem here since the reply message
Quote:
MySQL Error Number 1045
Access Denied for user 'root' at 'myip' (using password: NO)
is from mysql server, meaning if you are not connected to the mysql server, you would not have seen that error at all.
secondmouse is offline  
Old 07-06-2009   #5 (permalink)
Just Joined!
 
Join Date: Jun 2009
Posts: 2
Quote:
Originally Posted by secondmouse View Post
grant all on *.* to 'root'@'<xp_ip>' identified by '<password>';
flush privileges;
Substitute <xp_ip> and <password> with your xp's ip and the password you want.
This fixed my problems. Thanks everyone
wsetchell is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 05:13 PM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2