Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Apr 2004
    Posts
    147

    Question When is cpanel going to add support for multiple entries in a single go?

    Hello,

    I'm restoring sites for a client. He has around 450 databases for one user alone.

    I'm stuck at creating databases, multiple clicks per database. I'm getting frustrated!! by the speed of work. I could be done with it in 5mins, if I could do it via shell. If I do that, it won't show up in that users's cpanel.

    What is the alternative?

    I frequently get clients, who need me to import resources (files, databases) and each time I have to input alot of stuff, I get more and more frustrated with cpanel.

    I created a bug/enhancement ticket for it, but looks like it fell on deaf ears.

    Is anyone at cpanel listening to this? When are you guys going to allow multiple entries in one go? for instance allow to create 5-10 databases at one time in cpanel

    When are you going to give us some flexibility?

    M. Istehbab
    Last edited by hariskhan; 04-13-2008 at 03:16 AM.

  2. #2
    Member
    Join Date
    Dec 2003
    Location
    France
    Posts
    300
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by hariskhan View Post
    I'm stuck at creating databases, multiple clicks per database. I'm getting frustrated!! by the speed of work. I could be done with it in 5mins, if I could do it via shell. If I do that, it won't show up in that users's cpanel.
    You can create a db through shell and it will show up in your user's cpanel if you add the username as prefix :
    mysql -e "CREATE DATABASE username_dbname;" -p
    Good luck with your 450 dbs
    Marie - Co-Owner
    Need Further Assistance ? Here you go !
    English, french and spanish support

  3. #3
    Member
    Join Date
    Apr 2004
    Posts
    147

    Question How to add one mysql user to 450 DBs?

    Hello,

    That's for mysql. Will that also ammend the 'cpanel account files' for the user and tell cpanel that the user has this many DBs?

    Secondly, how do I add one mysql user to 450 DBs?

    M. Istehbab

  4. #4
    Member
    Join Date
    Feb 2003
    Posts
    51

    Default

    When it comes to adding a LOT of databases/tables/users. I usually create a mySQL script in a spreadsheet (yeah that)

    I get the list of DB's/tables/users and then create a formula to create the appropriate sql statements. (the concat function) (remember an ending ; after each statment)

    Then just run the script in mysql.

    If you follow the below database naming scheme it should work.

    Leigh

  5. #5
    Member
    Join Date
    Dec 2003
    Location
    France
    Posts
    300
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by hariskhan View Post
    That's for mysql. Will that also ammend the 'cpanel account files' for the user and tell cpanel that the user has this many DBs?
    Yes

    Quote Originally Posted by hariskhan View Post
    Secondly, how do I add one mysql user to 450 DBs?
    Something like this should do the trick :
    cd /var/lib/mysql/;for db in username*;do mysql -e "GRANT ALL PRIVILEGES ON "$db".* TO username_dbuser@localhost IDENTIFIED BY 'dbuserpassword';" -p<<mysql root password here>>;done
    Marie - Co-Owner
    Need Further Assistance ? Here you go !
    English, french and spanish support

  6. #6
    Member
    Join Date
    Apr 2004
    Posts
    147

    Question

    As I keep repeating guys, I know how to do this via shell.

    What I also want is to have it show the affect in cpanel > Mysql Databases

    I ran the commands. Needless to say it didn't do what I wanted.

    Sure, it implemented mysql grant, but it failed since the end result is not displayed in the CPANEL panel.

    What's the use? Anyway to put results there as well?

    M. Istehbab
    Last edited by hariskhan; 04-14-2008 at 01:06 PM.

Similar Threads & Tags
Similar threads

  1. Single Mail Server for Multiple cPanel Servers?
    By cwalke32477 in forum New User Questions
    Replies: 1
    Last Post: 03-21-2011, 02:43 PM
  2. Multiple cPanel instances connecting to a single remote DB?
    By ritontor in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 02-03-2010, 05:57 PM
  3. Multiple domains in a single cpanel account?
    By Seriom in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 09-24-2005, 03:18 PM
  4. How do I create multiple user accounts for a single cPanel?
    By .eXcellion in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 07-12-2005, 08:34 PM
  5. Multiple Mx entries...how?
    By lordkinjo in forum cPanel and WHM Discussions
    Replies: 9
    Last Post: 05-20-2004, 01:53 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube