Community Forums
Connect with us on LinkedIn
Closed Thread
Results 1 to 14 of 14
  1. #1
    Member
    Join Date
    Sep 2003
    Posts
    33

    Default phpmyadmin shows all user's databases

    Cpanel build: 10.8.1-CURRENT 3

    When any user logs in to phpmyadmin the database dropdown list shows all users databases. You can only access your own, but I would hope there is a way to hide the other user's databases.

  2. #2
    Member
    Join Date
    Mar 2005
    Posts
    49

    Default

    mysql configuration
    edit /etc/my.cnf(my.cnf location differs according to your installation)


    Add this to the bottom of the file if it is not there already.

    safe-show-database

    and restart mysql

  3. #3
    Member
    Join Date
    Oct 2003
    Posts
    60

    Default

    I got a report from a client the other day about this also but when I logged in I could not see it and they could not reproduce it either but they did send me a screenshot which did include all databases listed.

    I searched here and saw the same suggestions of adding that line to my.cnf but I already had this in there.

    There is an issue obviously but it seems hard to reproduce and is totally random.

    The good news is however the client said they did try to access the databases and were unable to but still I see even being able to list all the databases as a fairly serious security issue.

  4. #4
    Member
    Join Date
    Sep 2003
    Posts
    33

    Default

    safe-show-database is already in there, and it still shows them all. It looks like it is more of a phpmyadmin issues, as it didn't happen until the new version of phpmyadmin was installed by cpanel.

  5. #5
    Member
    Join Date
    Apr 2003
    Posts
    12

    Default

    Adding "safe-show-database" to mysql config file don't solve the problem becuase "safe-show-database" depreciated in mysql 4.1

    Thanks
    My Signature ?? Thinking...

  6. #6
    Member
    Join Date
    Jul 2005
    Posts
    30

    Default

    Enter mysql as root, then:
    UPDATE mysql.user SET Lock_tables_priv = 'N', Create_tmp_table_priv = 'N' WHERE
    User != 'root'; FLUSH PRIVILEGES;


  7. #7
    Member
    Join Date
    Mar 2005
    Posts
    49

    Default

    Show database privilege has to be set correctly for all user accounts

    The SHOW DATABASES privilege allows the account to see database names by issuing the SHOW DATABASE statement. Accounts that do not have this privilege see only databases for which they have some privileges, and cannot use the statement at all if the server was started with the --skip-show-database option

  8. #8
    Member
    Join Date
    Sep 2003
    Posts
    147

    Default

    /scripts/cleanupmysqlprivs

    Fixed for me the problem.

  9. #9
    Member
    Join Date
    Sep 2003
    Posts
    33

    Default

    There you go. Thanks, that script worked. Is there a comprehensive list of scripts and descriptions somewhere? (other than ls /scripts :-) )

  10. #10
    Member
    Join Date
    Jul 2003
    Posts
    106

    Default

    FFS, same problem again after updating!!!

    TEST YOUR STUFF BEFORE RELEASING IT DAMNED!

  11. #11
    Member serversphere's Avatar
    Join Date
    Jan 2004
    Posts
    658

    Default

    I experienced this same thing this morning but luckily noticed it within minutes of updating the first server. Kinda freaky when you go to add show-databases line to the config and it's there already. Perhaps this should be made a sticky? Somewhat large issue for us shared hosts...

  12. #12
    Member
    Join Date
    Jul 2003
    Posts
    106

    Default

    the most idiotic thing is that i have to do this every day now (cleanupmysqlprivs)

  13. #13
    EMS
    EMS is offline
    BANNED
    Join Date
    May 2003
    Posts
    251

    Default

    Bump

    Seems to be a regular re-occurring problem

  14. #14
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    Please don't bump threads. If you're having a problem and have tried all the recommendations in the forum for this issue (and there are a few), then you should pursue the issue through bugzilla or a ticket with your cPanel license provider.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

Similar Threads & Tags
Similar threads

  1. Current Databases only shows 1 DB
    By ahmed.awaad in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 09-09-2008, 03:11 AM
  2. phpmyadmin shows no databases
    By big in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 02-26-2007, 04:00 PM
  3. User can log into phpMyAdmin and see all databases on server?
    By Jeff75 in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 11-02-2005, 11:14 PM
  4. phpMyAdmin shows ALL databases
    By bluepine in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 03-05-2005, 06:44 AM
  5. Each user can see all databases in phpmyadmin
    By oanielsen in forum cPanel and WHM Discussions
    Replies: 15
    Last Post: 01-10-2005, 09:00 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube