Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Mar 2005
    Posts
    18

    Smile Using a SSH Command to Connect Existing DBase User to Existing DBase?

    Hey All...

    Trying to figure this out... want to work with a shell command (instead of using cPanel). Want to create a new database and add an existing dbase user to that Dbase all via Shell


    1. Create new Database
    # mysql
    # create database dom1_test1;

    ... WORKS


    2. Then want to Connect User dom1_user9 (already have it setup via cPanel with august66 as password) with ALL privileges to the Dbase above...

    # GRANT ALL PRIVILEGES ON dom1_test1 TO
    'dom1_user9'@'localhost' IDENTIFIED BY 'august66' WITH GRANT OPTION;

    ... DOES NOT WORK

    Have tried dozens of variations.. with no success.. Can anyone see what I am missing?

  2. #2
    Registered User maheshkasbe's Avatar
    Join Date
    Aug 2006
    Posts
    2

    Default Mysql grant

    Use this man You will get success,let me know if yes


    mysql>GRANT ALL PRIVILEGES ON dom1_test1
    TO dom1_user9@localhost IDENTIFIED BY "august66" WITH GRANT OPTION;


    mysql>grant insert,delete,update,select on dom1_test1.*
    to dom1_user8@localhost identified by "august66" ;


    Both are same.

  3. #3
    Member
    Join Date
    Mar 2005
    Posts
    18

    Default

    Thanks for the reply. Can't get it to work..

    Both commands respond with:

    Query OK, 0 rows affected (1.16 sec)

    but then cPanel still does NOT show the user connected to the dBase.. Driving me crazy!

Similar Threads & Tags
Similar threads

  1. how to install dBase on cPanel/WHM with PHP 5.3.6
    By thapame in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-26-2011, 05:07 PM
  2. Tie existing MySQL databases to existing users
    By wholehog in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 10-29-2007, 05:47 PM
  3. PHP with --enable-dbase
    By Przemek in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 02-14-2006, 03:25 AM
  4. My Sql Dbase
    By c4host in forum Database Discussions
    Replies: 0
    Last Post: 07-12-2003, 08:57 PM
  5. My Sql Dbase
    By c4host in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 07-12-2003, 08:57 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube