mysqladmin: connect to server at '-u' failed

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

Moderators: Developers, Moderators

Post Reply
Guest

mysqladmin: connect to server at '-u' failed

Post by Guest »

eh? whats that about?

it happens when i run cmd.php.

if anyone can help explain or fix this problem i would be grateful.
Guest

Post by Guest »

seems that it is removing the 'localhost' part of the command:

mysqladmin localhost -u

?
Bever
Posts: 2
Joined: Tue Feb 25, 2003 5:54 am

Post by Bever »

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
Bever
Posts: 2
Joined: Tue Feb 25, 2003 5:54 am

Post by Bever »

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
natech

-u

Post by natech »

Try to change include ("../include/config.php"); in file sql.php to full path
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests