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

Accounts in Mysql

 
   Database Help (Home) -> PHP SQL RSS
Next:  XML comparison  
Author Message
Gaston Verhulst

External


Since: Jan 17, 2008
Posts: 5



(Msg. 1) Posted: Wed Feb 13, 2008 2:54 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: 190



(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:
php + MySQL problems - I'm trying to get php + MySQL running on my web server. I tested the setup on an old RH8 server install that I was going to upgrade; everything worked fine. So I wiped out the old RedHat, installed Fedora Core 2, and repeated the installation. No dice...

php and mySql - I get an error message while trying to follow these procedures: http://www.howtoforge.com/intrusion-...on-ubuntu-7.10 Here is the error: Fatal error: Call to undefined function mysql_connect() in /var/www/adodb5/drivers/adodb-mysql.inc.php on line 363..

[MySQL] hierachy problem ... - Hello, I have a table which have these fields: - id - idParent - label I would like to display each field and his children but each parent may have no child. Example: A AA AB AC B C CA CB .... I can't write the request, could you help me?....

simple question I think...about PHP/mySQL - I want to make a website that starts with letters A thru Z . Click on the letter A you get a list of surnames beginning with A.... Click on surname A..... you get a table with all the information from a mySQL on the people with that surnames. My simpl...

Testing PHP and MySQL - Hello, I'm working in FC8 and I like to use MySQL with PHP. I have installed: [gastonv@telenetPC ~]$ yum list installed | grep php php.i386 5.2.4-3 installed php-cli.i386 5.2.4-3 installed php-common.i386 ...
   Database Help (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 ]