Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Well, from what you've provided, I can't really say it's an actual connection issue. You raised it to 10,000 max and still got the error. I'd either say it's mysql locking issues on the tables due to the applications (users) hitting it or something else perhaps, not totally sure.
2.3GB database though is worrisome. That's rather big for a MyISAM engine for the backend. You'll get better performance on larger databases using InnoDB. That's one suggestion but I'd say test it first on another machine if available.
Is there anything else on this machine running? Or is it just a database machine? Are the applications connecting remotely from an application or other server running the webserver?
How many users would say are using the forums at any given time?
Well, from what you've provided, I can't really say it's an actual connection issue. You raised it to 10,000 max and still got the error. I'd either say it's mysql locking issues on the tables due to the applications (users) hitting it or something else perhaps, not totally sure.
2.3GB database though is worrisome. That's rather big for a MyISAM engine for the backend. You'll get better performance on larger databases using InnoDB. That's one suggestion but I'd say test it first on another machine if available.
Is there anything else on this machine running? Or is it just a database machine? Are the applications connecting remotely from an application or other server running the webserver?
How many users would say are using the forums at any given time?
no. only my website running on this machine.
may be 10,000 a hour. More then 70,000 unique a day.
I'd recommend doing the test on another server though, convert and then test applications before migrating to the live system. They do the simple way of editing the dump file from a mysqldump. This could be tedious. If you dumped the 2.3GB ipb database, editing that file for each table to convert to InnoDB is painful.
You can also use the alter statement to change the Engine time. It would be something like:
Code:
ALTER TABLE <TABLE-NAME> ENGINE=INNODB
Another way you could do it is:
Code:
CREATE TABLE <NEWTABLE> like <TABLE>;
ALTER TABLE <NEWTABLE> ENGINE=INNODB;
INSERT INTO <NEWTABLE> SELECT * FROM <TABLE>;
RENAME TABLE <TABLE> to <OLDTABLE>, <NEWTABLE> to <TABLE>;
But like I said, I'd say experiment on another server or create another database perhaps. You could even create another database, dump the schema of the existing ipb or phpBB, edit the table creations to use INNODB, reload that into the new temporary database, then take a dump of the data for each table and insert.
Many different approaches. I think the easiest would be to setup another server, take a full dump, reload into server, use the alter table to change engine for each table, test once all have been converted. If all goes well, you can probably convert one table at a time while the server is alive. But making sure you edit your my.cnf file to support the new INNODB files, space you need to allocate for the ibdata files that will be used, etc.
Also note, if and when you convert, don't convert the mysql database to InnoDB, it needs to use MyISAM. I'd say start with the ipb database that is over 2GB in size.
Yup, just as I outlined in a previous response. But like I said, I'd test it on another system from a dump of the current system. Also remember, you need to make the proper changes to my.cnf to setup the ibdata files InnoDB will use, etc. Especially to accomodate the existing size of the database and future growth.
Depending on your disk size and available space, you might be good to start with 3 or 4 2GB ibdata files for INNODB to give you 6-8GB total to grow into. You can always add more at later times. These files once specified and configured in the my.cnf are created upon a mysql restart of the database.
This is the test with the forum application. Perhaps you can hit up their own support or developers to find a way to convert the tables to use INNODB and still create Indexes.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.