grant all PRIVILEGES on photodb.* to username@'xxx.xxx.xxx.xxx' identified by 'password'; flush privileges;