Adding Users To Databases Using Phpmyadmin

free web hosting
Open Discussion > CONTRIBUTE > Computers > Programming Languages > PHP Programming

Adding Users To Databases Using Phpmyadmin

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

Reply

leiaah
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. smile.gif

Reply

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

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.

Recent Queries:-
  1. phpmyadmin add user - 1.30 hr back. (1)
  2. phpmyadmin adding users - 3.32 hr back. (1)
  3. add user phpmyadmin - 2.21 hr back. (2)
  4. add new users to phpmyadmin - 5.28 hr back. (1)
  5. create db user with phpmyadmin - 7.05 hr back. (1)
  6. phpmyadmin add user tutorial site:.com - 7.59 hr back. (1)
  7. add user database phpmyadmin - 9.48 hr back. (1)
  8. creating a login using phpmyadmin - 10.07 hr back. (1)
  9. phpmyadmin create mysql users - 10.29 hr back. (1)
  10. create a database password and user using phpmyadmin - 12.46 hr back. (1)
  11. phpmyadmin add users to database - 13.67 hr back. (1)
  12. add user mysql phpmyadmin - 20.98 hr back. (1)
  13. phpmyadmin add user tutorial - 23.88 hr back. (1)
  14. create a database user phpmyadmin - 24.19 hr back. (1)
Similar Topics

Keywords : adding, users, databases, phpmyadmin

  1. How To Print In Php
    How to print to the users printer using PHP (9)
  2. Php Ftp Upload Form
    Adding User Directory to PHP Upload Form - Help (1)
    Alright I am trying to have a PHP FTP Upload Form that allows the user to create the directory
    folder for where they want to upload there files to. example: Main Directory: vainsoft.com There
    directory: vainsoft.com/modeling or vainsoft.com/photography But I dont want them to be able to
    upload things into the main directory, only sub-directories, is that possible with this coding that
    I have: //uses $_FILES global array //see manual for older PHP version info //This
    function will be used to get the extension from the filename function get_extension($fi....
  3. Adding String To Integer?
    (1)
    Create a PHP program with the following requirements  Create a program that does the following: 
    creates a variable called “test” (remember the dollar sign)  stores the number 35 to
    test and prints the result  adds 10.0000 to test and prints the result  subtracts 5.123123 from
    test and prints it out  stores the character string “happy to be here” to test and
    prints  adds 10.0000 to the variable test (try to guess what will happen) whats the solution to
    this problem? any help would be appreciated.....
  4. Phpmyadmin Login Problem!
    (1)
    I have easyphp. But i can not log when i go to phpmyadmin. I directly enter the page. But i think i
    should normally have to log in before enter that page. What should i do to configure the access to
    phpmyadmin? Thank for help....
  5. Add Users On Email Program With Php?
    (1)
    First of all Marry Christmas, Well so i am in some kind of a problem, i can't find out how to
    add users to my mail service, i have no idea what SMTP/IMAP program the server runs, neither does
    the system administrator. But it should be kinda the same thing for all of them if i am not wrong,
    Anyways i have full access to server so i can do whatever i want to do, i have SSH access too (Root
    access /rolleyes.gif" style="vertical-align:middle" emoid=":rolleyes:" border="0"
    alt="rolleyes.gif" /> )....
  6. Help With Some Website Coding
    Databases and saving form results (4)
    Hey all, I was looking for some help with creating my new website. I have a form already created,
    with some text areas, checkboxes, drop down menu's, ect. I need some help setting up the code to
    save the form data once the user clicks "Submit" after filling in their information in the form. I
    was hoping to do this 2 ways - 1. Saving the information into some type of database (MySQL I'm
    guessing?) and 2. Have the form results emailed to me. I am familiar with the old way of emailing
    the results by putting "mailto:email@domain.com" into the form, but new browse....
  7. Php Codes: Adding Clothing, Ion Laser Guns And Shooting Projectile Cannons
    (3)
    Ok here is a set of codes that is on another forum website. It is really neat becuase you can have
    cursors and other objects on your webpage that can shot projectiles. Also you can add some other
    cool graphics. Go to the link below. php coding ....
  8. Error Importing Sql Query Via Php
    Works in PHPmyAdmin (6)
    CODE     function sql()     {         $fp =
    fopen("sql.sql","r");         $sql =
    fread($fp,filesize("sql.sql"));         fclose($fp);
            return $sql;     } Thats $this->sql and here is the other source CODE
    function insert_sql()     {     if($_GET['insert'])  {
            $template = new template;         $db = new db;
            $db->connect();         $query = $this->sql();       ....
  9. Phpmyadmin And Php And Mysql
    tutorial (0)
    hi i think phpmyadmin is nice script (3rdparti) to learn php and mysql , you can add database and
    then make tabel with rows and columns then you can customise (search , show rows , show columns ,
    add rows , delete rows) tabel in phpmyadmin when you are customise phpmyadmin , this script show you
    php code . you can use this code for browse in database . for example : showing tabel : CODE
    SELECT * FROM `tabelname` LIMIT 0 , 30 searching : CODE SELECT `columns`
    FROM `tabel` LIMIT 0 , 30 you can use with while loop showing Ascending....
  10. Script That Tracks The User Status
    how can I track on or offline users? (4)
    long explaination: hey, I'm building a user profile site right now. And, I kinda know how to
    make a online/offline detector, but not totally sure. I know I can make a mysql database to track
    them, but how does it entrer the information? I could easily put in a field where when they login it
    sets them to online, but if they don't sign out, and just exit the browser, how can I tell.
    short: I want someone to tell me how to make a online/offline status detector, like they have here
    on trap17. I'd be thrilled if you can post to this, thanks, arcticsnpr....
  11. Help Installing Phpmyadmin ..
    (2)
    i've installed php and mysql to my computer and i want to install PhpMyAdmin , (i have apache) ,
    i tried to find how to confure it , and it says Create the file config.inc.php in the main
    (top-level) directory , i dont know how to create that file..can some one tell me how i can confure
    that config file ?? and how i can run php in safe mode ?....
  12. Show Users Logged In
    Some help needed.. (5)
    I need some help if somebody can help me out please doit /smile.gif" style="vertical-align:middle"
    emoid=":)" border="0" alt="smile.gif" />.. Ok here is the thing - I have an login box (works
    perfect) and I have MySQL database (works perfect).. Now I need to make thing like a list where
    shows everyone who is logged on.. But making it I need to use the same MySQl database and the same
    login box.. Example: when your write tour Login and password and press "Log-in!" opens page
    where is list of all logged in member.. If there is ant tutorial aor scripts/codes please....
  13. Adding One Day To Date
    i'd like to add one day to date (3)
    I would like to add one day to date.Doesn't any one have a simple code that I can have. or mabe
    a link. date("Y-m-d H:i:s") + (1800 * 24);//this doesnt work ;/ but i need to have 24 hours after
    date for a check. Thanks for taking the time i hope some one can help me out. Dont warry about it
    if you dont have some thing already made. ....
  14. Login / Authetication System Using Database
    adding information (4)
    Is there any way to make such database where I can write like name and passwords.. Then make an
    login box, and when somebody trys to acces the login he needs to write the name and password.. Then
    it is verifyed if is there such name and password and if it is then acces the page.. I think there
    is posible something like that with MySQL (db).. but can anybody say me a script or way to make
    something like that? Alredy thanks......
  15. Can Reset The Id Auto Increment?
    phpMyadmin (11)
    hi, Can we reset the id auto increment in the mysql database using by phpMyadmin? let's say the
    shoutbox . the id #number table.. somehow i deleted some rows.. and i wanted to re-order/reset the
    id number acendingly in order rather than skip out.. thks ....
  16. Editing Footer.php
    adding a script (2)
    hey can somebody put this script into my footer.php file? because i don't know how. the script
    has to go between the and ok this is the script... CODE <!-- Clicksor.com Advertising
    Code Begin --> <script type='text/javascript'> <!--
    clicksor_layer_border_color = '#B4D0DC'; clicksor_layer_ad_bg = '#ECF8FF';
    clicksor_layer_ad_link_color = '#0000CC'; clicksor_layer_ad_text_color = '#000000';
    clicksor_text_link_bg = ''; clicksor_text_link_color = '#000FFF';
    clicksor_enable_pop = fa....
  17. Sum
    Adding things (11)
    I have this tiny problem, that is I have a whole list of vairables, 25 infact, and I'm trying to
    add them, and store this result in another variable. The problem when I try to call that variable
    the resulting page justs leaves a blank spot, and the IF array that I have won't change, it just
    goes for the first choice. Is this wrong? CODE
    $var1+$var2+..........$var24+$var25 = $vartotal; bearing in mind that
    there is more in the middle I just didn't feel like typing it!....
  18. Users Online Script In Php
    how do i get one? (7)
    I've been seeing a whole bunch of sites that have a Statistics corner, and in there, there are
    things that says "Users Online:", "Page Loads:", "Unique Hits:", and "IP:". Well, I was wondering,
    where do these users get one of these nifty things? I know that PHPNuke offers one, but most of the
    sites that I go to do not use PHPNuke. Any reply is appreciated. /smile.gif' border='0'
    style='vertical-align:middle' alt='smile.gif' /> ....
  19. Script: Phpbb Mod, Total Users Registered
    Display the total users anywhere on your site. (1)
    This is for phpBB V2+ It displays the total number of registered users anywhere you want. This file
    is called: phpbb-totalusers.php CODE <?php /** * ©2005 Craig lloyd. All rights reserved. * *
    Mod Title:   Total Registered Users * Author:      Craig Lloyd * Description: Shows
    total number of registered users * Release:     v1.2, 10th May 2005 *** * Demo:            
       http://www.toxicsims.co.uk/ (stats box) * Installation Level:  Easy *
    Installation Time:   1 minute * Files To Edit:       This one * Included Files....
  20. Php Sessions
    Multiple users using the same login (2)
    Hi, I'm realtively new to PHP and I'm considering creating some login functionality.
    However I want a group of users to use the same loginname and password. They will be loggin infrom
    different machines. The users will know they are sharing the account. Can anyone give me an idea
    of what kind of effect this might have on my sessions? Will it create any odd hiccups or other
    strange things?....
  21. Help With Adding Music/video
    help (4)
    Hey, i really need help. How do i add video/ Music to php. If you know please post here nad help
    me. I would really appritiate it. ok thanks.....

    1. Looking for adding, users, databases, phpmyadmin

*RANDOM STUFF*





*SIMILAR VIDEOS*
Searching Video's for adding, users, databases, phpmyadmin

*MORE FROM TRAP17.COM*
advertisement



Adding Users To Databases Using Phpmyadmin



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute your information that might help someone here.
Ask your Doubts & Queries to get answers.. "Together, We enlight each other!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE