Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 01-27-2007, 09:37 PM   #1
Registered: Dec 2002
Posts: 304

Rep: Reputation: 86
Can't ping mysql

When I first installed mysql I successfully pinged it with "mysqladmin ping" However, now when I try to ping it, I get the following error:

/usr/local/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: NO)'
I start mysql the same way I did last time with:

/usr/local/bin/mysqld_safe --user=mysql --datadir=/nsm/mysql &
Also when I try netstat it doesn't show mysql. Does anyone know how I can get this working?
Old 01-27-2007, 09:51 PM   #2
LQ Guru
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
Did you set a password for root? If so, did you try passing a password in your mysqladmin ping command? And why are you root? Should really never be root unless you have to, setup sudo and if you need to connect to mysql as root, pass the -u root option when connecting.
Old 01-28-2007, 06:53 AM   #3
Registered: Dec 2002
Posts: 304

Original Poster
Rep: Reputation: 86
Thanks, I can ping it now with
mysqladmin -u root -p ping
Enter password:
mysqld is alive
However, information from Snort isn't getting into the database for some reason.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange Ping Issue - Can't ping localhost but can ping others on LAN code_slinger Linux - Networking 15 03-30-2015 02:39 PM
Simple question about command syntax ping/log ping results ohalnet Linux - Networking 1 07-25-2006 04:46 AM
mysql error Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. Dannux Linux - Software 3 03-24-2006 08:44 AM
PPP establish can ping the gateway router but unable to ping the host deepalalla Linux - Networking 0 11-18-2004 09:10 AM
windows 98 m/c ping to ip address of red hat server but fails to ping hostname ravilohot Linux - Networking 2 09-07-2004 04:57 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:12 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration