create shema databse using XSD in mysql - mysql

I have a shema database in file type XSD this file contains descriptions of all tables.
My question is how I can use this file to create a database in MySQL. if you have suggestions for creating a database in MySQL using this file or converting XSD to SQL, thank you in advance.

Related

How to extract data from a sql schema file?

I have a exported sql schema file. (similar to what we have here https://livesql.oracle.com/apex/livesql/file/content_O5AEB2HE08PYEPTGCFLZU9YCV.html)
This file is having all Create table and insert values commands.
I want to export all the database to a CSV or JSON format.
Is there a way to achieve the same?
You appear to be asking how to convert the data from the .sql script directly to a raw data format. That would require a SQL parser capable of reading the .sql script format. This is implemented in MySQL using a combination of the mysql client and the MySQL Server SQL parser. It would be an awful lot of work to duplicate this.
Honestly, the easiest solution is to use the mysql client to import the .sql script's tables and data into a MySQL instance. Then you could dump the data in CSV format, or whatever other format you want.
You can run queries using the mysql client in batch mode to dump results to CSV format (really tab-delimited), or you could write a simple client in Python or whatever your favorite language is.
Another alternative is to use mysqldump --tab to dump CSV files. I'll encourage you read the documentation about that.

Add large files (exe, dlls, xmls) into cells of tables in mysql Database

If I want to store files like exe, dll and xml large files in a cell of a table inside a database, is it possible to do?
If yes, how can it be done? and is it common practice to do so?
I am using mySQL database using ampps.
yes you can use blob type column to store files in mySql but this is not recommended when thousands of file will stored in db then it is difficult to manage database. you should create repository some where in server and create file with database id.

MySQL structure to SQLite

I am trying to use MySQL workbench to export my model to SQLite. I don't need the data just the structure. Do you have any suggestion? Exporting to SQL and creating tables with SQLite3 using that won't work as there are several differences between MySQL and SQLite syntaxes.
From what I know there's no tool that can convert a MySQL SQL script to SQLite. You will probably have to manually rework the generated SQL. Or you could create a MySQL schema from your model and use one of the available tools to convert that schema. Needs a detour via an existing MySQL schema, however.

Generating xml from mysql database using JSP

I want to generate xml from database using JSP. I found a link which generate xml file from a form but i want to genarate it using mysql database.
The only way you can generate XML from a MySQL database is by writing a stored procedure. There an interesting article here that shows how it can be done.

XSD to MySQL Schema

I need to convert an XML to a MySQL DB Schema.
I have been able to generate the XSD from the XML. Now i want to use the XSD to generate the DB schema in MySQL or PostgreSQL. Can anyone tell me how can i do this or point to any tools which i can use for this?
There is a command-line tool called XSD2DB, that generates database from xsd-files, available at sourceforge.
For more info: please refer to this existing question How can I create database tables from XSD files?