grant select on bd.table to 'user'@'%' identified by 'password'; grant select on bd.table to 'user'@localhost identified by 'passsword'; flush privileges;