Welcome to dbForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Accounts in Mysql

 
   Database Forums (Home) -> PHP SQL RSS
Next:  Review my site  
Author Message
Gaston Verhulst

External


Since: Jan 17, 2008
Posts: 5



(Msg. 1) Posted: Wed Feb 13, 2008 12:00 pm
Post subject: Accounts in Mysql
Archived from groups: alt>php>sql (more info?)

Hello,

Learning about Mysql Accounts, there is something I like to ask for.

I have made some database tests as root mysql with
[gastonv@telenetPC ~]$ mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 4
Server version: 5.0.45 Source distribution

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> SHOW DATABASES;
+--------------------+
| Database |
+--------------------+
| information_schema |
| MemberDirectory |
| PetCatalog |
| books |
| guestbook |
| mysql |
| test |
| world |
+--------------------+
8 rows in set (0.01 sec)

Then I select a database:

mysql> use PetCatalog
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql> SHOW TABLES;
+----------------------+
| Tables_in_PetCatalog |
+----------------------+
| Pet |
| PetColor |
| PetType |
+----------------------+
3 rows in set (0.00 sec)

mysql>

Please, how can I see of all the accounts for this database?
And otherwise, how can I add a new account for e.g. only seeing or only
looking for data into tables of that database?

For instance, I am gastonv@localhost, and I like to make an account for
only seeing, or for only adding something in a table of it, please how
can I do that?

Many thanks in advance and greetings,
Gaston Verhulst.

 >> Stay informed about: Accounts in Mysql 
Back to top
Login to vote
J.O. Aho

External


Since: Dec 01, 2003
Posts: 397



(Msg. 2) Posted: Wed Feb 13, 2008 7:14 pm
Post subject: Re: Accounts in Mysql [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Gaston Verhulst wrote:

> Please, how can I see of all the accounts for this database?

You find that in the mysql database which includes all the users.


> And otherwise, how can I add a new account for e.g. only seeing or only
> looking for data into tables of that database?

Take a look at the grant syntax:
http://dev.mysql.com/doc/refman/5.0/en/grant.html


--

//Aho

 >> Stay informed about: Accounts in Mysql 
Back to top
Login to vote
Gaston Verhulst

External


Since: Jan 17, 2008
Posts: 5



(Msg. 3) Posted: Wed Feb 13, 2008 7:59 pm
Post subject: Re: Accounts in Mysql [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

J.O. Aho schreef:
> Gaston Verhulst wrote:
>
>> Please, how can I see of all the accounts for this database?
>
> You find that in the mysql database which includes all the users.
>
>
>> And otherwise, how can I add a new account for e.g. only seeing or only
>> looking for data into tables of that database?
>
> Take a look at the grant syntax:
> http://dev.mysql.com/doc/refman/5.0/en/grant.html
>
>
Hi,
I have to thank you very much for your tip.
In the database mysql, I could find all accounts with their privileges
with the command SELECT * FROM user, wo users is a TABLE from DATABASE
mysql.
And the link also is a very good one, so I can manage accounts.
Many greetings,
Gaston Verhulst.
 >> Stay informed about: Accounts in Mysql 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
mysql - I am new to PHP and mysql. I am trying to create a database with just one table. How do I setup the username and password ? I am trying to run a script like this $user="username"; $password="password"; $database="database&qu...

Var to use in MySql - Hi! What kind of var should I use to store some words in a field? For instance, I would like to save some key words for each user. How can I achieve it? USER KEY WORDS john family,sports,basket,pete lucas mirror,dog,soccer I can't use SET var..

MySQL -> XML -> MySQL - I'm trying to go back and forth between a db and XML pages that filter db data. I have a multidimensional array (parsed from XML) like this (simplified): Array ( [name] => TABLE1 [attributes] => Array ( [ID] => ID1 [FIELD1] => Value...

MySQL Query - If I have a table set up like this: Name | VARCHAR Email | VARCHAR Age | TINYINT | NULL (Default: NULL) And I want the user to enter his or her name, email, and age - but AGE is optional. My insert would look something like: INSERT INTO data (Name,....

accessing mysql using ssl - Hi all, here is a question that all the googling the the world has not answered. how do you test a mysql ssl connection in php 4.x? you connect with mysql_connect("localhost","root", "moses", CLIENT_SSL); but how do you kn...
   Database Forums (Home) -> PHP SQL All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]