Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
MySQL login problems .....
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
an0nymity
n00b
n00b


Joined: 06 Jul 2002
Posts: 20

PostPosted: Tue Dec 17, 2002 9:02 pm    Post subject: MySQL login problems ..... Reply with quote

I have installed MySQL 3.23.54 about 3 times, and deleting the database to trouble shoot the same problem that I keep getting. If someone could help me, I'd greatly appreciate it.


Problem Synopsis:

emerge dev-db/mysql
** emerge successful **
/var/db/pkg/mysql-3.23.54/mysql3.23.54.ebuild config
** mysql databases being created **
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER ! This is done with: /etc/init.d/mysql start (you have to start the server first!) /usr/bin/mysqladmin -u root password 'new-password' /usr/bin/mysqladmin -u root -h krillan.an0nymity.com password 'new-password' See the manual for more instructions.
** passwords created **
mysqladmin create 'new-sql-database' (or and mysqladmin command)


Error I keep receiving:

Code:
 error: 'Access denied for user: 'root@localhost' (Using password: NO)'



Any one have a solution? at the present point, I unmerged mysql, killed all directories dealing with it, and re-emerged it, with no 'ebuild config' ... So I can get a fresh start on things. I'd appreciate any help in this matter.

Thanx,
An0nymity
Back to top
View user's profile Send private message
m0pr0be
Guru
Guru


Joined: 29 Aug 2002
Posts: 308

PostPosted: Wed Dec 18, 2002 12:50 am    Post subject: Reply with quote

hi

have a look at your /etc/hosts.

the name localhost must be mapped to 127.0.0.1

otherwise mysql wont let you in. because root is only allowed acces from localhost.

....
oops just checking here at my machine
seems like i'm getting the same behaviour :-(

i'm trying to investigate. i will let you know if i found something
Back to top
View user's profile Send private message
an0nymity
n00b
n00b


Joined: 06 Jul 2002
Posts: 20

PostPosted: Wed Dec 18, 2002 1:31 am    Post subject: Reply with quote

thanx m0pr0be, I'll await your responce


For future refernces here is exactly what my " /etc/hosts " looks like.

Code:
# /etc/hosts:  This file describes a number of hostname-to-address
#              mappings for the TCP/IP subsystem.  It is mostly
#              used at boot time, when no name servers are running.
#              On small systems, this file can be used instead of a
#              "named" name server.  Just add the names, addresses
#              and any aliases to this file...
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/hosts,v 1.7 2002/11/18 19:39:22 azarah Exp $
#

127.0.0.1       localhost
xxx.x.x.x       computer.mydomain.com   computer
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Wed Dec 18, 2002 2:59 am    Post subject: Reply with quote

Does adding the '-p' option and supplying a blank password work?
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
c_kuzmanic
Guru
Guru


Joined: 18 Apr 2002
Posts: 488
Location: Los Angeles , California

PostPosted: Wed Dec 18, 2002 3:02 am    Post subject: Re: MySQL login problems ..... Reply with quote

an0nymity wrote:

mysqladmin create 'new-sql-database' (or and mysqladmin command)


Lol, it's really simple:

mysqladmin create 'new-sql-database' -p

You forgot the '-p' , thus not telling mysql to prompt you for a password.

Hope this helps:)
Back to top
View user's profile Send private message
an0nymity
n00b
n00b


Joined: 06 Jul 2002
Posts: 20

PostPosted: Wed Dec 18, 2002 3:39 am    Post subject: Reply with quote

ugh ... I feel so stupid, adding the "-p" arg to the mysqladmin syntax worked.

Someone have a dunce cap?
Back to top
View user's profile Send private message
c_kuzmanic
Guru
Guru


Joined: 18 Apr 2002
Posts: 488
Location: Los Angeles , California

PostPosted: Wed Dec 18, 2002 5:58 am    Post subject: Reply with quote

an0nymity wrote:
ugh ... I feel so stupid, adding the "-p" arg to the mysqladmin syntax worked.

Someone have a dunce cap?


Lol, don't be too hard on yourself about it, I remember spending half an hour of agony on that very same prob when I encountered it first:)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum