|
|
|
|
![]() ![]() |
Dec 31 2005, 01:08 PM
Post
#1
|
|
|
Privileged Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 535 Joined: 14-February 05 From: Oslo, Norway Member No.: 3,759 |
I am running my own apache server with PHP and MySQL, with phpMyAdmin on my own computer, to test things locally. I know how to create databases and how to create users, but how can I add a user to a database?
|
|
|
|
Jan 1 2006, 05:31 PM
Post
#2
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 436 Joined: 21-January 05 From: Koronadal City, Philippines Member No.: 3,358 |
MySQL has a default database called mysql which contains the table user where users with different access privileges are stored. To add users in the user table with privileges, login to mysql using your root account and type the following:
CODE GRANT privileges ON databasename.tablename TO username Identified by 'password'; example: GRANT SELECT, INSERT [I]//or GRANT ALL to grant all privileges[/I] ON DB1.* TO AMEZIS IDENTIFIED BY 'PIZZA'; I hope this helped. |
|
|
|
Jan 2 2006, 09:58 PM
Post
#3
|
|
|
Newbie [Level 2] ![]() ![]() Group: Members Posts: 26 Joined: 2-January 06 Member No.: 16,526 |
and i will explain you:
1st: On index page of phpmyadmin find link: Privileges 2st: On page Privileges you have user list click on edit user privileges. 3th: On page find Database-specific privileges select from list database and press go that is all... |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 21st August 2008 - 01:39 AM |