> Create the record for the user in the user table (do not forget to do > password=PASSWORD('pastext')) > Then insert a record in the db table with the db name you want them to > access and the options.
Or you could use: GRANT SELECT, UPDATE, INSERT, DELETE ON somedb.* TO someuser@localhost IDENTIFIED BY 'passtext'; This should create a record in both the user and db tables. If you do direct inserts/updates on the user/db tables don't forget to run FLUSH PRIVILEGES; Josh > HTH. > > JFernand > ** sql ** > > -----Original Message----- > From: John Meyer [mailto:johnmeyer_1978@;yahoo.com] > Sent: October 31, 2002 16:49 > To: [EMAIL PROTECTED] > Subject: Creating users through SQL > > > How do I create users for a specific database using SQL? --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php