Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Posts
    553
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Setting database user and password

    I have set up mysql with phpmyadmin on my localhost. I created a database using phpmyadmin. Now i want to create a user and password for the database. Can I use phpmyadmin to do this? Or do I need something else? How do I go about doing it? I went into the mysql user table and tried setting the 'host' , 'user' and 'password' fields, but no luck.

    G

  • #2
    New Coder
    Join Date
    Jul 2002
    Location
    H-Town
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You have to use the GRANT command.

  • #3
    Regular Coder
    Join Date
    Jun 2002
    Posts
    553
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks, Benahimvp, this is what I used, and it worked:

    GRANT ALL PRIVILEGES ON db.* TO user@localhost IDENTIFIED BY 'passw'

    G



  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •