problem in GRANT command
Posted: Fri Sep 08, 2006 4:44 am
HI
in subphse 6.1 /usr/local/mysql/bin/mysql
is a executable file so cd /usr/local/mysql/bin/mysql shows
-bash: cd: /usr/local/mysql/bin/mysql: Not a directory
so in it how can i runfollowing queries
GRANT SELECT,INSERT,UPDATE,DELETE on asterisk.* TO cron@'%' IDENTIFIED BY '1234';
GRANT SELECT,INSERT,UPDATE,DELETE on asterisk.* TO cron@localhost IDENTIFIED BY '1234';
and also if i try on /usr/local/mysql/include/mysql:
(RATHER THAN bin/mysql ) & try to GRANT queries then error shows
-bash: GRANT: command not found
my sql is running because
head /usr/lib/perl5/site_perl/5.8.7/Net/MySQL.pm
package Net::MySQL;
use 5.004;
use IO::Socket;
use Carp;
use vars qw($VERSION $DEBUG);
use strict;
$VERSION = '0.08';
use constant COMMAND_SLEEP => "\x00";
plz help me
thanks
in subphse 6.1 /usr/local/mysql/bin/mysql
is a executable file so cd /usr/local/mysql/bin/mysql shows
-bash: cd: /usr/local/mysql/bin/mysql: Not a directory
so in it how can i runfollowing queries
GRANT SELECT,INSERT,UPDATE,DELETE on asterisk.* TO cron@'%' IDENTIFIED BY '1234';
GRANT SELECT,INSERT,UPDATE,DELETE on asterisk.* TO cron@localhost IDENTIFIED BY '1234';
and also if i try on /usr/local/mysql/include/mysql:
(RATHER THAN bin/mysql ) & try to GRANT queries then error shows
-bash: GRANT: command not found
my sql is running because
head /usr/lib/perl5/site_perl/5.8.7/Net/MySQL.pm
package Net::MySQL;
use 5.004;
use IO::Socket;
use Carp;
use vars qw($VERSION $DEBUG);
use strict;
$VERSION = '0.08';
use constant COMMAND_SLEEP => "\x00";
plz help me
thanks