Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 02-21-2007, 08:05 AM   #1
LQ Newbie
Registered: Feb 2006
Posts: 6

Rep: Reputation: 0
Cacti installation on Debian Sarge: create cacti database error


I have searched the whole internet for a solution to my problem but it seems i going nowhere. I am installing Cacti on Debian sarge and my apt-get install cacti went thru. However the big challenge is on creating the cacti database by running this command :-

# mysqladmin –user=root create cacti

Below is the error reported :-

mysqladmin: connect to server at 'locahost' failed
error: 'Access denied for user 'root@localhost' (using password: NO)

Help please.

Thanks you
Old 02-22-2007, 05:09 PM   #2
Senior Member
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
If you never configured mysql, that is the source of your problems. Mysql doesn't automatically import all your system accounts into itself, so it is quite possible mysql has no root account. I believe Debian installs mysql with only user debian-sys-maint. You'll need to look in the mysql configs, or get to a point where you can sign into mysql and create users/databases etc.

Old 08-26-2008, 07:35 AM   #3
LQ Newbie
Registered: Dec 2005
Posts: 3

Rep: Reputation: 0
Originally Posted by Yahweee View Post

# mysqladmin –user=root create cacti

Below is the error reported :-

mysqladmin: connect to server at 'locahost' failed
error: 'Access denied for user 'root@localhost' (using password: NO)

use the mysql console, instead this one.

mysql -u root[@somehost] -psome.passwd (if any)
mysql> create cacti;
import tables, etc - as instructed.



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
Cacti Installation Problems with include/config.php tovythomas Linux - Software 2 03-13-2007 07:49 PM
DISCUSSION: Cacti installation HOWTO sysconfig LQ Articles Discussion 0 11-20-2006 10:23 AM
Cacti installation HOWTO (should be in LinuxAnswers) sysconfig Linux - General 1 11-04-2006 07:58 AM
SNMP not in use - Cacti Zetec Ubuntu 2 07-16-2006 04:49 PM
creating traffic graphs with cacti (Debian Sarge) retiem Linux - Software 0 02-09-2006 07:54 PM > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 11:29 AM.

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