Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 831243
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T04:10:15+00:00 2026-05-15T04:10:15+00:00

I just moved my website to a new server (Shared to VPS) I expected

  • 0

I just moved my website to a new server (Shared to VPS)

I expected errors, and the only error that is really puzzling me is this SQL statement.

echo mysql_query("SELECT COUNT(*) FROM users_online_now")

This returns nothing! And if I try the mysql_num_rows, it returns

mysql_num_rows(): supplied argument is not a valid MySQL result resource..

If I query another table though eg:

echo mysql_query("SELECT COUNT(*) FROM users")

It works fine.

I am guessing it’s something to do with the naming of the table? It worked fine on my previous host, is there some setting I should modify?

Update:
Figured out. The server is still going thru DNS changes, and the mySQL is completely messed up. DNS has finally updated!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T04:10:16+00:00Added an answer on May 15, 2026 at 4:10 am

    Try to find out what error you get by adding or die like this:

    mysql_query("SELECT COUNT(*) FROM `users_online_now`") or die(mysql_error());
    

    Also make sure that you have already connected to mysql database successfully, see these functions for that:

    mysql_connect
    mysql_select_db

    Note: In names you should use backtick character (`) rather than single quote.

    Update:

    If you have a MySQL Database that has a table with a damaged Index, you may get an error:

     Incorrect file format [table name]
    

    Here is the possible solution.

    .

    More threads on the problem:

    http://forums.mysql.com/read.php?21,18436,18436

    http://www.linuxquestions.org/questions/linux-software-2/mysql-crash-on-startup-incorrect-file-format-host-464422/

    http://www.devcomments.com/SQL-Error-incorrect-file-format-to138833.htm

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have just moved a website to a new server, both servers are Windows
I have just moved a site from a dedicated server to a GoDaddy shared
I've just moved a Joomla 1.7 site to a new server. Administration back-end works
I recently moved website to a new host. The server setup is very similar.
I have moved my website and MySQL database to a new, free server at
I have just done the website migration from the old server to the new
For a .NET 1.1 website that I just moved, there is a folder that
I just moved my website (asp.net) to the live environment. I realized they are
I'm trying to get MSBuild working on a project that has just been moved
I have just moved a site from a Windows 2003, IIS6 SQL 2005 server

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.