不可以给一个具体的数据库设置密码,但你可以添加一个可以操作这个数据库的用户,方法:
grant all on youdb.* to 'user'@'host' identified by 'password';