Results 1 to 4 of 4

Thread: migrating between two servers issues

  1. #1
    Join Date
    Dec 2007
    Posts
    6

    Default migrating between two servers issues

    hi Im found a bug in indexu when you move the directory between two servers the table/column idx_link_temp.spam don't set
    to 0 the new links automatically you have to run this query:

    ALTER TABLE 'milano'.'idx_link_temp' MODIFY COLUMN 'spam' CHAR(1) CHARACTER SET latin1 NOT NULL DEFAULT 0;

    and all is fine , remember purge the table for broken links.


    http://assistenza.milano.it
    http://www.auyama.it

  2. #2
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    If you copied the database this wouldn't happen unless the issue already existed.

    And please users, do NOT blindly copy the query above. You MUST replace 'milano' with your own table name or all you will recieve are errors. You may also need to change the CHARACTER SET.

    Also note that this issue has come up before. It must be the way some servers are configured that this table isn't being set correctly (possibly set to null?)

  3. #3
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    This command works without issues and without having to modify anything for a specific character set or database

    ALTER TABLE `idx_link_temp` CHANGE `spam` `spam` CHAR( 1 ) NOT NULL DEFAULT '0'

    And as a precautionary note - users should NEVER run queries in mysql unless they know EXACTLY what the query does and they have a full verified functional backup saved in two locations! You have been warned, running a query incorrectly can explode your database and render your site useless, there is NO undo function in phpmyadmin.
    Last edited by Bruceper; 02-27-2008 at 04:32 AM.

  4. #4
    Join Date
    Nov 2004
    Posts
    1,822

    Default

    or you could use the find and replace from the admin panel.
    Main IndexU sites : | Campsite Directory | Tourist Guide | Places2B | AfterDirectory <-- Half price submission using coupon DP50 (from just $11 premium, and $10 basic permanent )

Similar Threads

  1. Sitemap issues
    By saj in forum v5.x
    Replies: 1
    Last Post: 11-09-2007, 11:50 AM
  2. Google Issues
    By KDLmedia in forum v5.x
    Replies: 18
    Last Post: 04-17-2005, 04:22 AM
  3. Issues I having
    By lordkinjo in forum v5.x
    Replies: 18
    Last Post: 05-05-2004, 10:11 PM
  4. Replies: 2
    Last Post: 03-29-2004, 08:06 PM
  5. Copyright Issues
    By Polo5 in forum v5.x
    Replies: 8
    Last Post: 12-12-2003, 06:17 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •