Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 11 of 11
  1. #1
    Member
    Join Date
    Aug 2001
    Posts
    421
    cPanel/Enkompass Access Level

    Root Administrator

    Default phpmyadmin/mysql problem

    phpmyadmin that's bundled with cPanel will show users only the databases they own. However, phpmyadmin installed as a stand alone application will show users all databases on the server. Is anyone else experiencing this problem?

  2. #2
    cPanel Partner NOC cPanel Partner NOC Badge jackal's Avatar
    Join Date
    Feb 2002
    Posts
    708

    Default

    We are running edge, and after the update we were taken from 4.0.24 to version 4.0.25 when this happened we had the same issue. We resolved it by restarting mysql.

    Joey

  3. #3
    Member
    Join Date
    Aug 2001
    Posts
    421
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by jackal
    We are running edge, and after the update we were taken from 4.0.24 to version 4.0.25 when this happened we had the same issue. We resolved it by restarting mysql.

    Joey
    I restarted mysql but I can still see all the databases. Not in cPanel's phpmyadmin, but in a version of phpmyadmin that I installed separately (2.6.3-pl1).

  4. #4
    Member linux-image's Avatar
    Join Date
    Jun 2004
    Location
    India
    Posts
    1,185
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    since the default one is working, it shouldnt be a problem with the database permissions. just t be safe, you can run /scripts/cleanupmysqlprivs

    if this doesnt help, it must be a problem with the configuration of the new phpadmin. try copying the default config file that is working to the new one.

  5. #5
    Member
    Join Date
    Aug 2001
    Posts
    421
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by linux-image
    since the default one is working, it shouldnt be a problem with the database permissions. just t be safe, you can run /scripts/cleanupmysqlprivs

    if this doesnt help, it must be a problem with the configuration of the new phpadmin. try copying the default config file that is working to the new one.

    Thanks, /scripts/cleanupmysqlprivs fixed the problem. Unfortunately I have to run it on 30 servers.

  6. #6
    Member linux-image's Avatar
    Join Date
    Jun 2004
    Location
    India
    Posts
    1,185
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    need any help, lemme know

  7. #7
    Member
    Join Date
    Nov 2004
    Posts
    5

    Default

    Dear sir,
    i had the same problem and when i run this command /scripts/cleanupmysqlprivs
    it gave me this erorr


    Code:
    Cleaning up mysql privs.  Please ignore errors about non-existant columns as you may have an older version of mysql.....--------------
    update user set Create_priv='N' where Create_priv='Y' and User != 'root'
    --------------
    
    --------------
    update user set Create_tmp_table_priv='N' where Create_tmp_table_priv='Y' and User != 'root'
    --------------
    
    ERROR 1054 at line 2: Unknown column 'Create_tmp_table_priv' in 'where clause'
    --------------
    update user set Lock_tables_priv='N' where Lock_tables_priv='Y' and User != 'root'
    --------------
    
    ERROR 1054 at line 3: Unknown column 'Lock_tables_priv' in 'where clause'
    --------------
    update user set Execute_priv='N' where Execute_priv='Y' and User != 'root'
    --------------
    
    ERROR 1054 at line 4: Unknown column 'Execute_priv' in 'where clause'
    Done.

  8. #8
    Member
    Join Date
    Nov 2004
    Posts
    5

    Default

    this is the user table in mysql


    Code:
    mysql> DESCRIBE user ;
    +-----------------+-----------------+------+-----+---------+-------+
    | Field           | Type            | Null | Key | Default | Extra |
    +-----------------+-----------------+------+-----+---------+-------+
    | Host            | char(60) binary |      | PRI |         |       |
    | User            | char(16) binary |      | PRI |         |       |
    | Password        | char(16) binary |      |     |         |       |
    | Select_priv     | enum('N','Y')   |      |     | N       |       |
    | Insert_priv     | enum('N','Y')   |      |     | N       |       |
    | Update_priv     | enum('N','Y')   |      |     | N       |       |
    | Delete_priv     | enum('N','Y')   |      |     | N       |       |
    | Create_priv     | enum('N','Y')   |      |     | N       |       |
    | Drop_priv       | enum('N','Y')   |      |     | N       |       |
    | Reload_priv     | enum('N','Y')   |      |     | N       |       |
    | Shutdown_priv   | enum('N','Y')   |      |     | N       |       |
    | Process_priv    | enum('N','Y')   |      |     | N       |       |
    | File_priv       | enum('N','Y')   |      |     | N       |       |
    | Grant_priv      | enum('N','Y')   |      |     | N       |       |
    | References_priv | enum('N','Y')   |      |     | N       |       |
    | Index_priv      | enum('N','Y')   |      |     | N       |       |
    | Alter_priv      | enum('N','Y')   |      |     | N       |       |
    +-----------------+-----------------+------+-----+---------+-------+
    17 rows in set (0.00 sec)

    actually any user can't access other Database ,, but what i need is dont showing ALL databases name
    Last edited by q8ss; 07-25-2005 at 03:21 PM.

  9. #9
    Member linux-image's Avatar
    Join Date
    Jun 2004
    Location
    India
    Posts
    1,185
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Please ignore errors about non-existant columns as you may have an older version of mysql.....

    this is already been told by the script. so u can stop worying about the column errors

  10. #10
    Member
    Join Date
    Jun 2005
    Posts
    38

    Default

    I can view all db only with some browser
    With IE 6.x i don't see all db
    woth mozilla i see al db

  11. #11
    Member linux-image's Avatar
    Join Date
    Jun 2004
    Location
    India
    Posts
    1,185
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    remove the cache from browsers.

Similar Threads & Tags
Similar threads

  1. Problem with mysql and phpmyadmin
    By vilio in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 04-06-2008, 06:01 AM
  2. mysql 5 and phpmyadmin
    By Secret Agent in forum cPanel and WHM Discussions
    Replies: 15
    Last Post: 04-10-2006, 10:25 PM
  3. PhpMyAdmin and Mysql
    By adm.iuri in forum cPanel and WHM Discussions
    Replies: 11
    Last Post: 09-23-2004, 10:34 AM
  4. mysql and phpmyadmin
    By tmvnews in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 06-26-2002, 06:56 PM
  5. Problem with MySQL PHPmyadmin?
    By DHL in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-17-2002, 05:50 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube