ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
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.
You could write an abstraction layer to your database code that doesn't rely on what the underlying database is. Then if you find that MySQL isn't good enough for your purposes, you can switch to something else and only have to change the database portion of your code.
Personally, I haven't ever had any problems with MySQL for things. With any DBMS, you are going to need to know how to efficiently model the data as well as using the proper indexes to tune the performance.
There is also Postgres, which I haven't used myself.
Oracle also runs on linux and is a pretty robust DBMS, but I think the license only allows you to use it without paying for learning purposes. If you were to use it in a final product, you would likely need to pay a pretty hefty fee. You'd have to check on that to be sure, though.
MySQL is quite resilient, particularly if you cluster it. There's also Postgres, which has some things that MySQL doesn't. It used to not perform as well, but that may have changed in recent years. You can also go with Oracle if you have RH (or are willing to put up with lots of pain). IIRC there's a free download, but with no support, and Oracle is extremely non-trivial to get working right with no support (from what I've read).
Anyhow, you could use ODBC code and then you're not tied to a particular database, or partition out your database access to a signle module, so if you change, you only have to re-code one module (if you need DB specific features that can't be had with ODBC). This is good programming practice anyhow.
Yes, you can use C++ to get user info from a Web page, as CGI scripts can be written in any language. If you don't want to go the CGI routes, there are other, more esoteric ways.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.