What is the server used? Can data be saved? So what is the difference with the database?

Source: Internet
Author: User
What is the server used? Can data be saved? So what is the difference with the database? For example, the user's profile picture is stored on the server. I don't know what the server is. in my mind, there is no concept. I know that the database stores things. it seems that the database cannot save pictures. if the server what can I do if I want to store things in a database?


Reply to discussion (solution)

1. the database can store images (in binary format), but it is usually not done by others, which occupies too much space.
2. the general practice is to put the image on a single server and store the image path in the database.
3. there are many types of servers: database servers and Apache (web servers.
4. Instructions on Apache + php + mysql:
Client browser ------ request ----- Apache server ----- communicate with php ------ php dynamically calls MySQL database (add, delete, modify, query, etc)

1. the database can store images (in binary format), but it is usually not done by others, which occupies too much space.
2. the general practice is to put the image on a single server and store the image path in the database.
3. there are many types of servers: database servers and Apache (web servers.
4. Instructions on Apache + php + mysql:
Client browser ------ request ----- Apache server ----- communicate with php ------ php dynamically calls MySQL database (add, delete, modify, query, etc)


Still do not understand the role of the server

I am also a newbie. I want to help you with my understanding.
The server is like chopsticks, and the database is like a dish of food. The website program is like a person.
People use chopsticks to hold the dishes on the plate.
As for saving images on the server, it should be saved on the server host (if there are any mistakes, please help me correct them)
What does the database do if the server that the landlord says can save things? The database is used to store data, so that we can directly call it. if the landlord learns a bit more, he should naturally understand it.
Even if the image is saved on the server, its address is saved to the database and then called through the address.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.