I have a database on server with around 60 tables and now I want to export Data Dictionary of the database (including table structures)..
I can do that on my local machine which has PHPMyAdmin, however, I am not able to find way to export it on server using Workbench.
Any one who can help?
You may install db_doc.lua, a Lua script plugin for MySQL Workbench that generates data dictionaries, similar to those generated by DBDoc on MySQL Workbench Enterprise.
Download it from:
https://docs.google.com/file/d/0BxXM2ftdUPGeNkM4OGpiYmFxdFk/edit?pli=1
Plugin developer's website
http://tmsanchezdev.blogspot.mx/2013/11/reporte-actualizado-del-modelo-de-la.html
[EDITED]
It seems that the LUA plugin support was discontinued.
So I wrote a plugin in Python to generate data dictionaries.
It is available at: https://github.com/rsn86/MWB-DBDocPy
Related
I've Kallithea running on my own server with sqlite database. I would like to move all this data to MySQL database instead. On default Kallithea uses sqlite if not any other database is specified. From Kallithea documentation pdf https://media.readthedocs.org/pdf/kallithea/latest/kallithea.pdf they recommend to use https://github.com/shazow/sqlalchemygrate to migrate data from database to another.
I'm installed sqlalchemygrate using Python pip but when I try to migrate there is parts what I don't understand at all. Help menu doesn't not clearly specify how to use migrate command. At least I don't understand it at all. For example when I try to type
grate migrate "sqlite:./kallithea.db" "mysql://kallithea#localhost/kallithea"
I get error saying
ImportError: No module named sqlite
In help menu it says to use
migrate METADATA ENGINE_FROM ENGINE_TO
Migrate schema or data from one engine to another.
And example how to use it
grate migrate model.meta:metadata \
"mysql://foo:bar#localhost/baz" "sqlite:///:memory:" \
What I don't really understand is what is that metadata it needs? And how to specify sqlite .db file for this. And how to migrate data to new kallithea database in mysql with user kallithea which has all privileges to that database.
Not sure about Kallithea but RhodeCode users had a great success using TAPS (https://github.com/ricardochimal/taps) project to migrate they databases to different format.
ImportError: No module named sqlite
You probably need to install sqlite, and pip install sqlite or similar.
Regarding what metadata it needs, it's referring to metadata in the context of SQLAlchemy: http://docs.sqlalchemy.org/en/latest/core/metadata.html
We're running Linux VM's with MySQL on Azure and want to start using Azure SQL, but need to get the data from one into the other, initially.
Is there a way to dump a mysql database and then import that into an Azure sql database?
I'm on a Mac (or can be on Linux), so the .net tools won't help.
I've tried having Azure use the mysql dump. Reads it, but nope.
I've tried selecting the mysql tables from an open connection and drop them on the Azure db, also in an open connection, via Navicat. Nope.
I also tried looking for something in SQLPro for MSSQL. Nope.
Also, I'm willing to edit the mysql dump if there are minor global things to do so that Azure sql will read it.
You can:
1. Install mysql instance on windows based server.
2. Dump all your databases into there using mysql dump.
3. Use all the spectrum of microsoft tools for your goal.
I want to load the files of Yago database into my database in mysql. I tryed what is written in yago's website (to run the script Postgres.sql) but since I work on windows it does not recognize the "psql" operation. I tryed also to open the script directly in mysql but it says that there is sql syntax. What can I do? Thanks for helpers!
You are trying to load a Postgres SQL script into a mySQL database.
Postgres and mySQL speak different dialects of SQL and can't necessarily understand scripts meant for eachother.
If you want to load up a postgres SQL script, use a postgres database.
Installers for the windows version of postgres are available here:
https://www.postgresql.org/download/windows/
Once you have postgres installed, you can then use an admin tool e.g.
PGadmin (https://www.pgadmin.org/) to run the script on your DB and import the information within.
Feel free to comment if you want more detailed instructions.
I have a mySQL database on my Windows PC. I'm pretty sure I've found the relevant files, namely the following:
formula.frm
formula.ibd
db.opt
What is the natural way to inspect, edit, and generally play with the contents of these files?
You do not view the binary database files directly. MySQL is a service that you connect to with a client and then perform SQL commands. You will need a client (such as MySQL Workbench) to work with the server.
MySQL Workbench is the GUI tool that allows you to connect to a MySQL database and perform actions on it including querying and creating/modifying the various parts of the database.
MySQL Workbench intro: http://dev.mysql.com/doc/workbench/en/wb-intro.html
Getting started with MySQL: http://dev.mysql.com/doc/refman/5.6/en/tutorial.html
There is also the command-line utility that is included when you install the server. It will be in the BIN folder of the MySQL install directory.
Command-line client info: http://dev.mysql.com/doc/refman/5.1/en/mysql.html
Use a tool like Mysql Workbench to connect to the DB. You do nothing directly to the files. You connect to the service and use the DB.
William, it sounds like your question is "how do I take mysql binary files and turn them into something usable on my machine?". If that's the case, you'll want to first install MySQL on your machine if you haven't already. Then you might have a look here for how to recreate a database from a .ibd file.
I have database in MySQL V5. I wants to import and export data to MySQL using File Maker pro 11 without creating any file.i.e. I want direct connection between File Maker and MySQL.
Please help me......
I can highly recommend the Open Source Databases ODBC driver from Actual Technologies. It's a Mac OS X ODBC driver that I've used it on multiple occasions to connect FileMaker to a MySQL database. With it you can create a "shadow table" that actually shows data from the MySQL database and import from a FileMaker table to a MySQL table using the standard script steps for import and export. This is the ESS that Sam was speaking of. For the Windows equivalent, see FileMaker's list of ODBC drivers.
We have a JDBC Plugin for that. You can do a SELECT query on your MySQL DB, then loop over the returned rows and read values out. It also supports dumping the SELECT to a txt file, which you can then import.
For importing into MySQL, your best bet is to do INSERT/UPDATE queries.
Also, you might consider using ESS, which is FileMaker's built-in way of talking to MySQL.