Cacti db create

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
apache210
Posts: 3
Joined: Mon May 08, 2006 5:18 pm

Cacti db create

Post by apache210 »

Maybe someone can help me, how do I get to the shell prompt? When I go tot "mysql command line client" it gave me the mysql> prompt and I'm not able to create db as per instruction.


Set a password for the root user

shell> cd mysql\bin
shell> mysqladmin --user=root password somepassword
shell> mysqladmin --user=root
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Hi

have you tried this :

Code: Select all

# mysqladmin --user=root -p create cacti
# mysql -p cacti < cacti.sql
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
apache210
Posts: 3
Joined: Mon May 08, 2006 5:18 pm

Post by apache210 »

fmangeant wrote:Hi

have you tried this :

Code: Select all

# mysqladmin --user=root -p create cacti
# mysql -p cacti < cacti.sql

How do I get to the # prompt or is this a different utility than the "mysql command line clinet"?
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

The "#" prompt is a shell prompt.
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
bigbenjam
Posts: 6
Joined: Wed May 10, 2006 9:14 am

Post by bigbenjam »

try

Code: Select all

mysql --user=root --password
to launch mysql command line client
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest