is it ideal to have MySQL running on different machine than on the server machine that runs Apache or php . I was think of a scenario if two different web server installed physically on different machine accessing database than it can be useful that if one web server goes down other server would still be running if MySQL is deployed on a separate machine ?
of course.
Same resources shared between apache/php and MySQL are not a good option.
Divide and conquer my brother!
Related
I need to configure Magento 2.4.5 on RHEL. I need recommendation/best practices for below:
Should I go with RHEL 8.6 or 9.0? Don't want to go with Ubuntu or CentOS.
Should I host the database on a separate server, rather than running the database server and the
web server on the same machine?
What should be the minimum VM configuration in terms of RAM, processor, disk and cache for
Magento and mySQL. Considering the load on website can be around 3K users during peak time.
Regards,
Rajesh
I bought "Hetzer" server so I can create my own database and practice a little bit. My server is using Ubuntu. I plan to also create a script (probably in node or asp) so my android application can communicate with database.
How to start with creating database, what to do?
Firstly https://www.hetzner.com/ is one of the best professional web hosting providers. In order to set up your Mysql server to your ubuntu machine. Install lamp stack. There are many tutorials about installing lamp. Then open your DB for remote connection or do kind of restful service to access your data in DB.
I heard that MySQL is a database server. If it is a database server, then what is the need of installing other servers like xampp or lampp? Do xampp or wamp or lampp do other jobs than being a Database server?
XAMPP, WAMP and LAMPP are all stacks for creating web solutions. The acronyms come from A Apache (web server), M MySQL or MariaDb (Database), and P for Perl or PHP for the scripting component.
MySQL itself is just a database server (RDBMS) so you would require additional components to build an overall web solution (provided in the stacks above).
Depending on your operating system, W(Windows), L(Linux) , X(All) then we have Apache, Mysql running at different ports.
PHP including the rest of your code files stored in htdocs as they have corresponding engines in relative XAMP directories (eg php.ini). All these will give you a look and feel of a typical server environment and accommodate your frameworks (laravel, noodle etc) you can't get all that from mysql server alone.
I'm afraid I have been stuck on this one for a couple days now.
I've worked with databases before (normally using php and a mysql server) but I'm new to visual studio and I just can't seem to find much info on what kind of server you need to connect to (and how).
I guess the first part of my question would be: Can the server running the database be a remotely hosted "online" mysql server or does it have to be installed on your machine (for example like you can install apache)?
The easiest option for me would probably be to connect to my existing mysql server of my online website, but how?
I have sql server management studio installed but am not sure what to enter as the server name etc in the dialog box that shows up.
I do know my mysql server details and all, but just have no idea how where and how or even if I can connect it directly to my visual studio project.
I have looked several times on google but till now I have only been able to find videos and tutorials showing how to create a new database - which assume you are already connected to some sort of server.
Also, if you do use a locally hosted database server then wouldn't you have to port it to a different (online) database once the website goes live?
Thank you for your time!
Yes, the database can be remotely hosted, I'have this working on my local machine with a remote MsSql database. Make sure the remote database server accepts connections from your IP.
I'm pretty sure the MsSql Server Management Studio is only for MsSql, not MySql. The server name in my case is the IP for the remote MsSql database server, further you need the login and password for your database. But if you use your remote MySql, you don't need this tool.
I have no experience with MySql, but it must be possible to use the database in your Visual Studio project with the correct "connectionstring". The connectionstring contains the type of the database, where it is located, login and pasword, etc. You can find the syntax of you connectionstring here: www.connectionstrings.com/mysql/
I have a running sql server installation on which I would like to install the reporting services module. Now because it is very important that the sql server it self keeps available and running without any interruptions I get a little scary about this step.
Now my question. Are there any pittfalls I have to be aware of before I install the module? E.g. does the server restart during the installation?
Can you try this change in a virtual machine first?
For example, use the Disk2vhd application (http://technet.microsoft.com/en-us/sysinternals/ee656415.aspx) to make a snapshot of your current production system. Then, use the VHD that was created in Microsoft Virtual PC, Hyper-V, or Windows 7 native VHD boot.
If you try a virtual machine for testing, disable networking or create a private network before starting the virtual machine! Having two servers with the same name and SID on your network is a Bad Thing.
(If you're not using virtual machines, isn't it time? :)