mysql - Remote db connection issues -
i trying log mysql using ssh using command:
mysql -u username -p -h hostname where 'username' , 'hostname' , placeholders real params. however, above gives error :
error 1045 (28000): access denied user 'username'@'vps-xxxxxx.xxxx.com' (using password: yes) why appending "@vps-xx...." remote server username?
place on root
grant privileges on *.* 'username'@'ip' identified 'password' grant options; once have finalized permissions want set new users, sure reload privileges.
flush privileges; how grant different user permissions
here short list of other common possible permissions users can enjoy.
all privileges- saw previously, allow mysql user access designated database (or if no database selected, across system)create- allows them create new tables or databasesdrop- allows them them delete tables or databasesdelete- allows them delete rows tablesinsert- allows them insert rows tablesselect- allows them use select command read through databasesupdate- allow them update table rowsgrant option- allows them grant or remove other users' privileges
Comments
Post a Comment