eh? whats that about?
it happens when i run cmd.php.
if anyone can help explain or fix this problem i would be grateful.
mysqladmin: connect to server at '-u' failed
Moderators: Developers, Moderators
I have the very same problem with cacti 0.6.8a. MySQL is running. Any ideas?
[cactiuser@netsaint cacti]$ php /usr/local/apache/htdocs/cacti/cmd.php
ping: bad number of packets to transmit.
mysqladmin: connect to server at '-u' failed
error: 'Unknown MySQL Server Host '-u' (1)'
Check that mysqld is running on -u and that the port is 3306.
You can check this by doing 'telnet -u 3306'
sh: -c: line 2: syntax error near unexpected token `main(.'
sh: -c: line 2: `Warning: main(../include/config.php) [http://www.php.net/function.main]: failed to create stream: No such file or directory in /usr/local/apache/htdocs/cacti/scripts/sql.php on line 4'
Failed to open byte range locking database
ERROR: Failed to initialise locking database
wc: /var/log/httpd/access_log: No such file or directory
[cactiuser@netsaint cacti]$ php /usr/local/apache/htdocs/cacti/cmd.php
ping: bad number of packets to transmit.
mysqladmin: connect to server at '-u' failed
error: 'Unknown MySQL Server Host '-u' (1)'
Check that mysqld is running on -u and that the port is 3306.
You can check this by doing 'telnet -u 3306'
sh: -c: line 2: syntax error near unexpected token `main(.'
sh: -c: line 2: `Warning: main(../include/config.php) [http://www.php.net/function.main]: failed to create stream: No such file or directory in /usr/local/apache/htdocs/cacti/scripts/sql.php on line 4'
Failed to open byte range locking database
ERROR: Failed to initialise locking database
wc: /var/log/httpd/access_log: No such file or directory
Hmz. If I edit scripts/sql.php and add the hostname there, it more or less solves the issue. But I still get this:
[cactiuser@netsaint cacti]$ php /usr/local/apache/htdocs/cacti/cmd.php
ping: bad number of packets to transmit.
sh: use: command not found
sh: and: command not found
sh: current: command not found
sh: works: command not found
sh: Is: command not found
sh: one: command not found
sh: use: command not found
sh: -c: line 71: unexpected EOF while looking for matching `''
sh: -c: line 72: syntax error: unexpected end of file
sh: -c: line 2: syntax error near unexpected token `main(.'
sh: -c: line 2: `Warning: main(../include/config.php) [http://www.php.net/function.main]: failed to create stream: No such file or directory in /usr/local/apache/htdocs/cacti/scripts/sql.php on line 4'
Failed to open byte range locking database
ERROR: Failed to initialise locking database
wc: /var/log/httpd/access_log: No such file or directory
[cactiuser@netsaint cacti]$ php /usr/local/apache/htdocs/cacti/cmd.php
ping: bad number of packets to transmit.
sh: use: command not found
sh: and: command not found
sh: current: command not found
sh: works: command not found
sh: Is: command not found
sh: one: command not found
sh: use: command not found
sh: -c: line 71: unexpected EOF while looking for matching `''
sh: -c: line 72: syntax error: unexpected end of file
sh: -c: line 2: syntax error near unexpected token `main(.'
sh: -c: line 2: `Warning: main(../include/config.php) [http://www.php.net/function.main]: failed to create stream: No such file or directory in /usr/local/apache/htdocs/cacti/scripts/sql.php on line 4'
Failed to open byte range locking database
ERROR: Failed to initialise locking database
wc: /var/log/httpd/access_log: No such file or directory
Who is online
Users browsing this forum: No registered users and 0 guests