Is it possible to store videos in MySQL Database [duplicate] - mysql

This question already has answers here:
Is it possible to store pictures,sounds,videos in SQL Database? [closed]
(2 answers)
Closed 7 years ago.
Is it possible to upload videos to mysql database(or another database) and then store them in this database but not on my own computer?

Technically, yes. But you would almost certainly never do this (unless the files were very small), preferring instead to store the files in a file server, and only their paths and meta data in the database.

Related

Where should I store images for my website? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 4 months ago.
Improve this question
I've built a simple website with authorization and registration system.
So I have user accounts and I wonder where to store profile pictures for every user.
I tried to store them in MYSQL in BLOB, but I don't think it is the best way to do this.
Most people have the opinion that files should reside on the filesystem, outside the database. But there are exceptions to every rule. There are some good reasons to keep large binaries inside the database, depending on your project requirements.
See some of my past answers on this topic:
Should I use MySQL blob field type?
What is difference between storing data in a blob, vs. storing a pointer to a file?
VARCHAR(MAX) vs TEXT vs .txt file for use in MySQL database
I also cover this in the chapter "Phantom Files" in my book, SQL Antipatterns Volume 1: Avoiding the Pitfalls of Database Programming.
The short answer is in most cases a file system (eg. the server where your code is hosted, if that's an option).
Read this short article:
Storing images in a database table is not recommended. There are too many disadvantages to this approach. Storing the image data in the table requires the database server to process and traffic huge amounts of data that could be better spent on processing it is best suited to. A file server can process such image files much better. Source: Store Images in the Database
If you do not have access to storing images on your server or enough space, you could take a look into hosting you images on an image server.

How to fix a mdb file? [duplicate]

This question already has answers here:
How to fix possible db corruption?
(5 answers)
Closed 6 years ago.
I have a MDB file that can't be opened. It seems like it's corrupted. Is there a best practice how to fix that?
I've already tried this tool
StellarPhoenixAccessDatabaseRepair
but it didn't help.
I need to make this file works again...
Thanks
You can try these methods for repairing corrupted database. If database cannot be opened at all, even with pressed Shift, try to import database objects to new database.

How to migrate a data base from mysql to postgres [duplicate]

This question already has answers here:
MySql to PostgreSql migration
(8 answers)
Closed 9 years ago.
I have a file .sql and I can't open it with pgadmin.
How do I import it?
The PostgreSQL wiki has a lot of interesting links for exactly this: http://wiki.postgresql.org/wiki/Converting_from_other_Databases_to_PostgreSQL#MySQL

MySQL Table Structure Visualization? [duplicate]

This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
Mysql Visualization Tools
Is there an online tool or an app that can create a graph or an image of an imported database that shows the relationship between the tables inside it?
If an app is okay: MySQL Workbench
have a look at DB Visualizer
dbForge does this as well, so it seems you have lots of options.
Link: http://www.devart.com/dbforge/mysql/studio/download.html

Storing online high scores in open-source games [duplicate]

This question already has answers here:
Secure Online Highscore Lists for Non-Web Games
(10 answers)
Closed 7 years ago.
I'm wondering how this is typically done at a high level. Please correct me if I'm wrong, but from what I understand, normally you could have some sort of validation. But if you have access to the source code, anyone could see how to send data to the server (or make your own server for that reason). Is there a viable solution for this?
Not easy or fool proof:
Secure Online Highscore Lists for Non-Web Games