Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Aug 2004
    Posts
    54

    Default add user to database

    i know how to add a mysql user from the command line, but how do i add an user to a database with full rights from the command line

  2. #2
    Member
    Join Date
    Jan 2004
    Posts
    755

    Default

    Umm... that was a simple google search

    GRANT ALL ON *.* TO 'new_username'@'localhost';

    all privs on all databases, which I assume you don't want, so change the *.* to the database name. (database.*)

Similar Threads & Tags
Similar threads

  1. MySQL: add user to database
    By Kurieuo in forum cPanel Developers
    Replies: 7
    Last Post: 08-14-2010, 07:50 AM
  2. postwwwacct Add user to MySQL Database
    By cfidecaro in forum cPanel Developers
    Replies: 2
    Last Post: 04-04-2009, 04:32 PM
  3. Cant add user to database
    By ykongbam in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 04-12-2008, 04:52 PM
  4. Can't create user to add them to a database
    By dsecrets in forum Database Discussions
    Replies: 4
    Last Post: 01-02-2008, 09:36 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube