On Sunday 23 February 2003 02:19, Robert Mark Bram wrote:

> I would like to create a user that will only access my current project's
> database.

Use GRANT command to give grants to user only for certain database.

>I would also like to store the data for my current project's
> database in a particular location.
>
> Can I use my.ini to do this?
>
> For example,
>  - user = newProject
>  - pwd = newProject
>  - datadir=C:/newProject/MySqlData
>
> When newProject user logs in, she automatically USES a database called
> 'newProject' for example...

You can use the following entries

user=user_name
password=user_password
database=database_name

and user can connect as user 'user_name' with password 'user_password' to the 
database 'database_name'.

> My second question: can this work for InnoDB tables? I am using *only*
> InnoDB tables..

You can have several innodb table spaces, but they are used by all users. You 
can't create table space per database or per user.




-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.net http://www.ensita.net/
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Egor Egorov
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.net
       <___/   www.mysql.com




---------------------------------------------------------------------
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

Reply via email to