Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member sneader's Avatar
    Join Date
    Aug 2003
    Location
    La Crosse, WI
    Posts
    932
    cPanel/Enkompass Access Level

    Root Administrator

    Default Errors in MySQL Log regarding dbs/users that don't exist

    I used the cPanel to cPanel transfer for a number of accounts. I noticed that I am getting errors in the MySQL Log file at /var/lib/mysql/my.hostname.err -- these errors all point to databases and/or usernames that I cannot find on my system at this time (but may have existed at one time).

    The errors are all related to using hostnames in cPanel for Remote MySQL access. I'm assuming that you can no longer user hostnames and must use IPs.

    Any pointers on how I can find these Remote MySQL entries, and then remove them?

    A few examples (usernames and hostnames redacted)

    090611 7:14:20 [Warning] 'db' entry 'ucake5\_ucakewa ucake5@old.hostname.com' ignored in --skip-name-resolve mode.
    090611 7:14:25 [Warning] 'user' entry 'root@some.hostname.com' ignored in --skip-name-resolve mode.
    090611 7:14:25 [Warning] 'user' entry 'umite2@%oldhost.com' ignored in --skip-name-resolve mode.
    090611 7:14:25 [Warning] 'user' entry 'umite2_spared2@%oldhost.com' ignored in --skip-name-resolve mode.

    Is there a text file somewhere with a list of all the remote hosts, that could be edited?

    - Scott
    Last edited by sneader; 06-11-2009 at 07:40 AM.

  2. #2
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,788
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by sneader View Post
    I used the cPanel to cPanel transfer for a number of accounts. I noticed that I am getting errors in the MySQL Log file at /var/lib/mysql/my.hostname.err -- these errors all point to databases and/or usernames that I cannot find on my system at this time (but may have existed at one time).

    The errors are all related to using hostnames in cPanel for Remote MySQL access. I'm assuming that you can no longer user hostnames and must use IPs.

    Any pointers on how I can find these Remote MySQL entries, and then remove them?

    A few examples (usernames and hostnames redacted)

    090611 7:14:20 [Warning] 'db' entry 'ucake5\_ucakewa ucake5@old.hostname.com' ignored in --skip-name-resolve mode.
    090611 7:14:25 [Warning] 'user' entry 'root@some.hostname.com' ignored in --skip-name-resolve mode.
    090611 7:14:25 [Warning] 'user' entry 'umite2@%oldhost.com' ignored in --skip-name-resolve mode.
    090611 7:14:25 [Warning] 'user' entry 'umite2_spared2@%oldhost.com' ignored in --skip-name-resolve mode.

    Is there a text file somewhere with a list of all the remote hosts, that could be edited?

    - Scott
    Your MySQL service has name resolution disabled ( ignored in --skip-name-resolve mode). If this is intentional then you'll need to do one of the following:

    1. Replace the hostname entries in the MySQL db and user tables with the proper IP addresses. You'll also need to track down every reference to the hostnames in cPanel and WHM, replacing those with the proper IP addresses; or

    2. Reconfigure your MySQL service to use name resolution ( check /etc/my.cnf ).
    Kenneth
    Product Manager
    cPanel, Inc.

  3. #3
    Member sneader's Avatar
    Join Date
    Aug 2003
    Location
    La Crosse, WI
    Posts
    932
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Hi Kenneth. Thanks for the quick reply (and for taking time to help in the forums!)

    Name Resolution was not disabled by choice, so that could be an easy way to fix.

    BUT... it would be covering up a larger issue... the error logs at this point are for usernames and dbs that I cannot find. You said "Replace the hostname entries in the MySQL db and user tables with the proper IP addresses" but I don't know where to start looking?

    I think it makes sense to clean these up, whether I enable name resolution or not?

    Thanks again!! Sure hope I make it to the conference again this year, just to shake your hand (and some others at cPanel that really come through for me!)

    - Scott

  4. #4
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,788
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    The Warning messages record 'user' and 'db' as the location of the problems. Try this via the MySQL command line client:

    Code:
    mysql> use mysql;
    mysql> select Host, User from user;
    That will display every Host + User entry in MySQL's user table. You can also do something with PHPMyAdmin. Once you verify those entries exist, you should be able to remove them:

    Code:
    mysql> delete from user where User="foo" and Host="example.com";
    Similar actions can be taken for the db table.
    Kenneth
    Product Manager
    cPanel, Inc.

  5. #5
    Member sneader's Avatar
    Join Date
    Aug 2003
    Location
    La Crosse, WI
    Posts
    932
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Thanks Kenneth! "flush privileges" would need to be run afterwards also, right?

    - Scott

  6. #6
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,788
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by sneader View Post
    Thanks Kenneth! "flush privileges" would need to be run afterwards also, right?

    - Scott
    It wouldn't hurt.
    Kenneth
    Product Manager
    cPanel, Inc.

Similar Threads & Tags
Similar threads

  1. MySQL dbs and users dissapered from 2082
    By onscreen in forum cPanel and WHM Discussions
    Replies: 21
    Last Post: 01-08-2011, 11:31 PM
  2. Table 'mysql.users' doesn't exist please help me
    By Alain Leonard in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 06-24-2006, 03:29 PM
  3. Replies: 3
    Last Post: 06-01-2006, 10:42 AM
  4. backups don't exist
    By BattousaiX in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 02-20-2006, 07:04 AM
  5. i don't need the apache log, how can i disable that? all users.
    By Jedia in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 05-10-2004, 09:08 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube