Posts

Showing posts from March, 2011

How to Set user name and email globally in git

Git needs to know your username and email address to properly credit your commits. Setting this setting will also let GitHub link the commits you make to your GitHub account. Only commits made after you change this setting will use the new info, old commits will preserve the info they were committed with. The 'email' setting does not have to be a valid email address, it only need match the 'user@server' naming scheme. git config --global user.name "amal" git config --global user.email "amal@gmail.com" NOTE:-   For more GIT Configuration files info  http://www.geekgumbo.com/2010/04/19/git-config-files/

MySQL: How to grant permission to a database for a particular user.

Login to mysql grant select, insert, update, delete, create, drop, create routine ,  index, alter, create temporary tables, lock tables on db_name.* to user_name@localhost identified by 'password'; Thats it. Your user now has the permission to access the database.