Notes on Java, Solaris, PHP, LDAP…

April 9, 2008

MySQL local rights

Filed under: Java — negev @ 11:36 am
Tags:

When you want to create a local MySQL user (account) and you want to use that account on the same host (machine), then you need something like this:
GRANT SELECT , INSERT , UPDATE , DELETE ON my_app. * TO ‘my_app’@’localhost’
IDENTIFIED BY ‘my_app’
WITH MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0

Don’t use ‘my_app’@’%’ because that somehow didn’t work – at least not on MySQL 5.0.18 which comes with SUSE Linux SLES 10.

Advertisements

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: