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 8296105
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T14:51:23+00:00 2026-06-08T14:51:23+00:00

Possible Duplicate: How can i get more then 50 results to display in excel

  • 0

Possible Duplicate:
How can i get more then 50 results to display in excel using mysql?

I have a problem: I have a MySQL script getting results and allowing customers to see their results through an Excel export. However, the spreadsheet is getting limited to only 50 results when the website shows lots more, sometimes up to 1500.

I’ve searched and it seems I have to edit /etc/my.cnf. I try to edit it and paste more code in but when I exit out of insert mode half of the code gets cut off – am I missing something?

This is all that is in my current /etc/my.cnf — I realize its the default. I’m new to editing in vi so please bear with me.

[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0

[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
  • 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-06-08T14:51:25+00:00Added an answer on June 8, 2026 at 2:51 pm

    This is likely not due to anything in my.cnf. Your query skeleton from the comments does LIMIT 0,50, so getting 50 rows back is the exact behavior you should expect. Remove the LIMIT 0, 50 clause from your query to get it to return all rows.

    Update after comments:

    Upon removing the LIMIT clause, the OP reported the script was timing out. The solution to this in PHP is to increase the max_execution_time via:

    set_time_limit(300);
    // OR
    ini_set('max_execution_time', 300);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Getting odd/even part of a sequence with LINQ How can I get
Possible Duplicate: get name of current PHP script in include file Can an included
Possible Duplicate: Can I get more than 1000 records from a DirectorySearcher in Asp.Net?
Possible Duplicate: The query results cannot be enumerated more than once? I am using
Possible Duplicate: How can I get a reference to a node directly after it
Possible Duplicate: How can I get a list of all the defined variables in
Possible Duplicate: CSS - percentage height I can't get the middle div of 3
Possible Duplicate: How to get all of the IDs with jQuery? How can i
Possible Duplicate: Can main function call itself in C++? I found this problem very
Possible Duplicate: Can I scroll a ScrollView programmatically in Android? I have a chat

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.