Cacti.sql : No Such File or Directory
Moderators: Developers, Moderators
Cacti.sql : No Such File or Directory
I am trying to install Cacti onto one of my machines which already had PHP, Apache, and MySQL installed on it. I ran apt-get install cacti and debian got and installed everything it needed. I then started to go through the directions to create the cacti db. I got the DB created but when I did:
mysql cacti < cacti.sql
I get the following:
-bash: cacti.sql: No Such File or Directory
Anyone have any ideas what I am missing or doing wrong? I am a little baffled by this one. I created the DB so why can't it find it?
Thanks in Adv.
mysql cacti < cacti.sql
I get the following:
-bash: cacti.sql: No Such File or Directory
Anyone have any ideas what I am missing or doing wrong? I am a little baffled by this one. I created the DB so why can't it find it?
Thanks in Adv.
You can try another way to insert the Database.
If you have phpmyadmin you can ran this and
in the database you can insert Database/sql files.
This worked on my PC as well.
EDIT: and your problem: you should change in the cacti directory to insert
that or you can do it this way: mysql cacti < /opt/lampp/htdocs/cacti/cacti.sql
that should work too
IMurDOOM
If you have phpmyadmin you can ran this and
in the database you can insert Database/sql files.
This worked on my PC as well.
EDIT: and your problem: you should change in the cacti directory to insert
that or you can do it this way: mysql cacti < /opt/lampp/htdocs/cacti/cacti.sql
that should work too
IMurDOOM
I tried creating the DB 2 ways, one by Command line and the other through PHPMyAdmin and with both I get an error while doing the following:
mysql cacti < cacti.sql
I get the following:
-bash: cacti.sql: No Such File or Directory
I looked for the config.php for cacti but I don't find it. I know PHP and MYSql work on my server since I already have a website running on it. The issue I am running into is trying to move the Cacti.sql file to the correct folder. I created the DB but Mysql says it does not exits.
mysql cacti < cacti.sql
I get the following:
-bash: cacti.sql: No Such File or Directory
I looked for the config.php for cacti but I don't find it. I know PHP and MYSql work on my server since I already have a website running on it. The issue I am running into is trying to move the Cacti.sql file to the correct folder. I created the DB but Mysql says it does not exits.
IMurDOOM wrote:If you inserted the cacti.sql in the database an in the databse
exists tables, around 40-50 than all is okay and you dont have
to run the command you described.
Than you have to open the cacti folder with the browser
and install it.
First configuration is
user: admin
password: admin
IMurDOOM
I am missing something here.... First off if I go to my browser and try to go to Cacti it gives me an error telling me to import cacti.sql into my cacti folder. I am then back to where my trouble is...
mysql cacti < cacti.sql
I get the following:
-bash: cacti.sql: No Such File or Directory
If I go into PHPMyAdmin and look at the Cacti DB it has no tables or anything, it is empty. If I look at the directions online for setting up Cacti in linux step 2 is to create the DB cacti, step 3 is to import it which is where I am having issues. Am I missing somthing here? You are talking about tables being made and the such but I don't see where that happens in the first 3 steps of the directions.
Ok I have found my answer. I guess Cacti on Debian has a bit more work and thanks to Prefetch for posting this. I had to dig a lot but I found it in his post and now I seem to be on the right track:
I was using: mysql cacti < catci.sql
When I should have been using the following:
zcat /usr/share/doc/cacti/cacti.sql.gz | mysql -u cacti --password=cacti cacti
I was using: mysql cacti < catci.sql
When I should have been using the following:
zcat /usr/share/doc/cacti/cacti.sql.gz | mysql -u cacti --password=cacti cacti
The cacti.sql file is in your /var/www/cacti/ directory or wherever you extracted your cacti-0.8.6g.tar.gz file. If you don't see the cacti.sql file, try downloading the tar file again. When you run the mysql command, you'll have to be in your cacti direcotry, or you add the full path before cacti.sqlrfd wrote:I have the same problem!
I have Fedora and the same phrase appears:
-bash: cacti.sql: No Such File or Directory
I see the database but i don't even have a cacti.sql file, I did a search and doesn't exists.
Thanks, i downloaded a wrong package. With that you said the sql file exists!
I'm doing everthing remotely, but now , when i do "http://IPAddress/cacti", i have the message
What could be? I'm a newbie in linux and sql... some configuration in mysql or php? I installed mysql with rmp packages, not as described in the .pdf document in cacti site about how to install it. The machine is already providing a service (something completly different of cacti, is another service) and in the page "http://IPAddress/" we have a webpage with various information, but the error above appears when i do "http://IPAddress/cacti"
I'm doing everthing remotely, but now , when i do "http://IPAddress/cacti", i have the message
Code: Select all
Not Found
The requested URL /cacti was not found on this server.
Try accessing the URL with a slash after the directory name, like http://IPAddress/cacti/
Who is online
Users browsing this forum: No registered users and 1 guest