in reply to Create new user in MySQL

You should issue the GRANT first - before you attempt to connect to the database.

The MySQL user authentication is actually managed in the mysql database - e.g. your list of users is in mysql.user.

Note that if you manipulate the mysql.* tables the changes do not take effect until you issue a reload.

Regards,

Jeff

Replies are listed 'Best First'.
Re: Re: Create new user in MySQL
by gmishra (Sexton) on Mar 27, 2004 at 05:17 UTC
    hey thanks.
    But i need a database handle($dbh) to run the "grant" right? how dow do i make the handle.. unless i connect. Also, what is "reload"?
    Please help. I am very new in this area.
    waiting,
    gauravi
        Thanks so much.
        Gauravi