[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Mysql question.



On 03-09-15 07:13 +0200, Mark Maas wrote:
> Ah yes, I tried those doc's first.:
> menem:/home/mark# mysqladmin -u root password 'secret'
> mysqladmin: connect to server at 'localhost' failed
> error: 'Access denied for user: 'root@localhost' (Using password: NO)'
> 
> And I swear to you, I never set a password! I freshly installed mysql, and I
> cannot access it. Could this be a DNS problem?
> 
> (When I ping localhost, I do get respons from 127.0.0.1) I'm at a loss...
> 

Hi Mark,

somebody mentioned to you the skip-networking option the other day, as
well as the README.Debian file; can you post the result of 

$ grep networking /etc/mysql/my.cnf 

just to verify that that line has been commented out

(if, as you say, all you did was freshly install mysql, it won't be
listening on the network; see the docs you were pointed to)

if you have already commented out that option, try 

$ nmap localhost | grep mysql

just to verify that it is, in fact, listening.. it should be using port 
3306 by default

if it doesn't show up, you may want to try it again after stopping
whatever firewall you may be running

hth,
Kenneth




Reply to: