i got it, thank you sir,but a have one more problem when creating database query.here's the error:
mysql> create database asterisk;
ERROR 1007: Can't create database 'asterisk'. Database exists
mysql> GRANT SELECT,INSERT,UPDATE,DELETE on asterisk.* TO cron@'%' IDENTIFIED BY '1234';
Query OK, 0 rows affected (0.00 sec)
mysql> GRANT SELECT,INSERT,UPDATE,DELETE on asterisk.* TO cron@localhost IDENTIF IED BY '1234';
Query OK, 0 rows affected (0.00 sec)
mysql> use asterisk;
Database changed
mysql> \. /usr/src/astguiclient/MySQL_AST_CREATE_tables.sql
ERROR:
Failed to open file '/usr/src/astguiclient/MySQL_AST_CREATE_tables.sql',
error: 2
mysql> GRANT SELECT on asterisk.phones TO idcheck@'%' IDENTIFIED BY '1234';
ERROR 1146: Table 'asterisk.phones' doesn't exist
mysql> GRANT SELECT on asterisk.phones TO idcheck@localhost IDENTIFIED BY '1234' ;
ERROR 1146: Table 'asterisk.phones' doesn't exist
mflorell wrote:Is mysqld running?
If it is, run this command:(from the SCRATCH_INSTALL doc)
ln -s /tmp/mysql.sock /var/run/mysql/mysql.sock