Archive for May, 2008

A casual visit to BIA – Bangalore International Airport Devanahalli

Saturday, May 31st, 2008

Today I had a plan already in mind, have a long bike ride to BIA
Devenahalli (Bangalore International Airport). The airport started fully
operational just a few days ago.
My plan was slightly affected by rain as I had to seek a shelter for
about 45 minutes. While coming back I was fully drenched !!

Enjoy the snaps..

By the way it was 6:30 pm and I had not taken my Sony DSC H2 along.
These snaps are taken using my Sony Ericsson K750i with night mode. So
comment on this :)

It was about to rain, I got into this tea stall to have a tea ..

It started raining heavily

It rained for nearly 45 minutes then I started again

This is the fly over on Highway towards the airport


Distant view of the runway

I was wondering where all these Renault Logans are heading towards from city.. Here they are.. Quite a number of them.

The car parking area..

Create a new MySQL user – Howto?

Thursday, May 22nd, 2008

There are few ways you can create a new user for a MySQL DB.

  1. Using grant command to create a new user and assign privileges to access a DB.
  2. Use the create user mysql command followed by grant command to set access privileges.
  3. Directly editing the mysql DB using insert, update etc (which is a bit complex)

Create USER

For creating user following command is used

CREATE USER user [IDENTIFIED BY [PASSWORD] 'password']

The above command creates a new user, but who has no access to any DB. In order to grant prermissions to access any DB, we need to use the grant command.

Grant Command

GRANT ALL ON *.* TO 'someuser'@'somehost';

The above will grant ALL the permission (select, insert, updat, delet etc) to someuser at somehost. If you would like to set a user from a particular IP to access the DB, you can use like

GRANT ALL ON *.* TO 'someuser'@'IPADDRESS';

The following command will give only select and insert privileges to someuser at somehost

GRANT SELECT, INSERT ON *.* TO 'someuser'@'somehost';