dbTalk Databases Forums  

newbie question

comp.databases.mysql comp.databases.mysql


Discuss newbie question in the comp.databases.mysql forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
adirtymindisajoyforever
 
Posts: n/a

Default newbie question - 05-10-2011 , 08:21 AM






hi,

i have a mysql server and when I run on that server;
# mysql -h localhost -u root -p
and the type the password I get the mysql prompt.

when i do this from a another machine:
# mysql -h <above_machines_ip> -u root -p
and the type the same passowrd I get :
ERROR 1045 (28000): Access denied for user 'root'@'x.x.x.x' (using
password: YES)

how can I further trace what the problem is? there is NO connectivity
problem, socket to server machine is opened, connected and message is
sent.

tnx for all replies

Reply With Quote
  #2  
Old   
Jerry Stuckle
 
Posts: n/a

Default Re: newbie question - 05-10-2011 , 08:59 AM






On 5/10/2011 9:21 AM, adirtymindisajoyforever wrote:
Quote:
hi,

i have a mysql server and when I run on that server;
# mysql -h localhost -u root -p
and the type the password I get the mysql prompt.

when i do this from a another machine:
# mysql -h<above_machines_ip> -u root -p
and the type the same passowrd I get :
ERROR 1045 (28000): Access denied for user 'root'@'x.x.x.x' (using
password: YES)

how can I further trace what the problem is? there is NO connectivity
problem, socket to server machine is opened, connected and message is
sent.

tnx for all replies
MySQL authorizations are based on both the user id and the ip address.
Generally you have one userid for localhost and another for one or more
(or all) remote ip addresses.

You need to create another user (it can be root with the same or
different password, but I really don't recommend it for security
reasons), such as

See http://dev.mysql.com/doc/refman/5.6/en/grant.html for more detailed
information and syntax.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex (AT) attglobal (DOT) net
==================

Reply With Quote
  #3  
Old   
Axel Schwenke
 
Posts: n/a

Default Re: newbie question - 05-10-2011 , 09:15 AM



adirtymindisajoyforever <getridofthespam (AT) yahoo (DOT) com> wrote:
^^^^^^^^^^^^^^^^^^^^^^^
your parents must have a sick kind of humor to give you such a name

Quote:
i have a mysql server and when I run on that server;
# mysql -h localhost -u root -p
and the type the password I get the mysql prompt.

when i do this from a another machine:
# mysql -h <above_machines_ip> -u root -p
and the type the same passowrd I get :
ERROR 1045 (28000): Access denied for user 'root'@'x.x.x.x' (using
password: YES)
Yes.

Quote:
how can I further trace what the problem is?
There is no problem. You first have to create a MySQL account to
connect from a different machine. A freshly installed MySQL server
comes with a root@localhost account and additionally allows anybody
access to the `test` database. You certainly don't want to leave it
that way.

http://dev.mysql.com/doc/refman/5.1/...tallation.html
http://dev.mysql.com/doc/refman/5.1/...anagement.html


PS: you should not use the "root" account (more precisely: any MySQL
account with the SUPER privilege) for daily work. Create a less
privileged account for that and use the root account only when needed.


XL

Reply With Quote
  #4  
Old   
The Natural Philosopher
 
Posts: n/a

Default Re: newbie question - 05-10-2011 , 09:56 AM



adirtymindisajoyforever wrote:
Quote:
hi,

i have a mysql server and when I run on that server;
# mysql -h localhost -u root -p
and the type the password I get the mysql prompt.

when i do this from a another machine:
# mysql -h <above_machines_ip> -u root -p
and the type the same passowrd I get :
ERROR 1045 (28000): Access denied for user 'root'@'x.x.x.x' (using
password: YES)

how can I further trace what the problem is? there is NO connectivity
problem, socket to server machine is opened, connected and message is
sent.

tnx for all replies
it is possible to set _different) permissions for users connecting
locally, and remotely.

These are held in the mysql database.


you obviously are connecting: so it has to be authentication at this level.


I am not sure of the purest and side effect free way of modifying these,
so I will refer you to the manual having said what you are looking for.

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.