bunner bob
Registered
Since upgrading to Panther (clean install) I'm only able to connect to my databases as "root".
I've granted access permissions to all my tables, using the (presumed correct) syntax:
PHP:
grant*select,*insert,*update,*delete*on*mydb.table*to*dbadmin*identified*by*'adminpassword';
and so on for each table in my database. The sql 'grant' commands are accepted and when I check, the proper username and table are in the mysql database, "tables_priv" table.
But, I still can only connect to my database using the "root" user and root password. I.E. - this works:
PHP:
$db*=*mysql_connect("localhost",*"root",*"rootpassword");
mysql_select_db('mydb');
but this doesn't:
PHP:
$db*=*mysql_connect("localhost",*"dbadmin",*"adminpassword");
mysql_select_db('mydb');
This all used to work fine, but since I upgraded to Panther it doesn't, and I must connect as the root user.
Any ideas why this might be, what I should check, etc.?
Thanks!
- Bob
(crossposted in phpbuilder.com)
I've granted access permissions to all my tables, using the (presumed correct) syntax:
PHP:
grant*select,*insert,*update,*delete*on*mydb.table*to*dbadmin*identified*by*'adminpassword';
and so on for each table in my database. The sql 'grant' commands are accepted and when I check, the proper username and table are in the mysql database, "tables_priv" table.
But, I still can only connect to my database using the "root" user and root password. I.E. - this works:
PHP:
$db*=*mysql_connect("localhost",*"root",*"rootpassword");
mysql_select_db('mydb');
but this doesn't:
PHP:
$db*=*mysql_connect("localhost",*"dbadmin",*"adminpassword");
mysql_select_db('mydb');
This all used to work fine, but since I upgraded to Panther it doesn't, and I must connect as the root user.
Any ideas why this might be, what I should check, etc.?
Thanks!
- Bob
(crossposted in phpbuilder.com)