For some reason some databases are not visible in Database View of IntelliJ IDEA.
I'm using:
IntelliJ IDEA 122.519
MySql 5.5 on Linux Centos 6.3
I did fresh install of mysql. There is test db as you remember.
I created DB DataSource in IDEA and specified root credentials. Then right-clicked on it and hit "Refresh". It shows me following databases in UI:
information_schema
mysql
performance_schema
But there is no test !
Interestingly enough I can see test if I go to Data Source Properties dialog and check Schemas & Tables tab.
Is it a bug ?
I don't know why it's happening but I have a feeling it has something to do with what user created particular database.
Any ideas how to see everything ?
You should create at least one table in this schema.
Related
I would like to know does database is erased on daily basis which is created PHPMyadmin
Yesterday I have created a database by clicking "new" option under the Server "phpmyadmin demo-MYSQL(root)".Today that database doesn't exist.Any suggestions please and let me know whether I have missed nay steps before creating a database
You were using a demo.phpmyadmin.net server which is not intended for production and which removes databases created by testers on a daily basis.
I'm new to Postgres, not to SQL. I generally use Navicat to connect to my databases, so I've set up a connection to a remote Postgres DB the same way I normally would. I'm able to:
Connect successfully
List databases
When I click on the database with my tables, however, it expands the database but doesn't show anything. No tables.
I saw the other question here, where a user was trying to get into 'template0' and 'template1': Some PostgreSQL databases not visible through clients like Navicat or pgAdmin
I'm not trying to get into these, but into a custom DB full of tables. I've verified that both my web app, and phpPgAdmin can both access all the tables and data, so the issue seems to lie with Navicat.
I read some instructions about how these tables might be 'system items', and went into the Navicat preferences and checked the box that says 'Show system items (PostgreSQL, SQL Server)' to no avail.
One thing I also tried, as I'm using Navicat Premium, is to install the Navicat PostgreSQL version instead. This also yields exactly the same results, I can see my database but none of the tables.
What's going on here?
EDIT
With some great help from Vao Tsun, we determined that this is PostgreSQL 7.2.4 and that it is not supported by Navicat.
https://www.navicat.com/products/navicat-for-postgresql:
Navicat for PostgreSQL connects you to any local/remote PostgreSQL
database servers from version 7.3 or above.
It does not work with PostgreSQL 7.2.4
I've been working on my Java-Database project on my desktop for days, and now its time to put them on my laptop, the java project won't be a problem, but what about my schema ? my database ? I don't feel like typing it all over, isn't there a way to take it out of Oracle? then put it back on oracle as well on my laptop?
See here. Oracle has these two tools called exp and imp for exporting a database and importing one. It will help transfer the database from your desktop to your laptop.
Edit: Even more info
I'm trying to create a local database for a Windows Phone application. I can create the database quite happily but it looks like the tables in the database are not being created or are being created with names I'm not expecting.
Is there any way to see what tables exist in the db or is there something extra I need to do to have the tables created? Has anyone else had this problem (and how did you solve it)?
Fixed it. Problem turned out to be the "Name" attributes were causing problems. Even though the name for each column was the same as the property the attribute was covering the SQL CE db didn't like it. I removed the attribute and the problem went away.
Having a look into the database is always a good start in cases like yours. You have to perform some steps, though:
Dump the content of your isolated storage using the Isolated Storage Explorer Tool; dumping from emulator and device both is possible
Find the database file (.sdf) among the files
Open the file in one of the available tools for connecting to SQL CE databases
Read here for a complete tutorial. The tutorial uses Visual Studio for connecting to the DB, I use LinqPad.
We develop and maintain our database schema with a custom tool. SQL scripts and runtime files are generated from that tool. However, it does not provide a very good visual representation.
Lately I been using Visio to reverse engineer the schema. This is working great so far. But to be able to do this, I need to:
create an empty database
execute the generated script
start up visio
choose reverse engineering and choose the created database
select all tables, etc
wait for generation
I really want to automate this process. Step 1 and 2 are easy, but how can I automate the other steps.
I've been looking for a C# library to create Visio diagrams, but they al seem not suitable for this task.
For instance
http://visioautomation.codeplex.com/ and http://www.graphviz.org/ look promising, but on a closer look they were not appropriate.
I've tried to record macro, but the macro recorder does not work in conjuction with the reverse engineering tools.
Michiel,
I am using Visio 2007 and SQLite 3.
Tonight I had a crack at reverse engineering my Sqlite3 database with success. The key is to download an ODBC driver for Sqlite. I found some here > http://www.ch-werner.de/sqliteodbc/. I installed the current one at the top of the list "sqliteodbc.exe".
Then the MSVisio set up was a bit muddled so forgive me if I do not explain the details in an exact, repeatable format.
The new installed ODBC driver should appear in Visio when you select: Database > Reverse Engineer > Setup.
Scroll down and check one of the three Sqlite drivers - I chose the "SQLite3 ODBC Driver"
Then click on "New" > Check "System Data Source" > Scroll down select "SQLite3 ODBC Driver" > Click "Finish"
On the dialog that it entitled "ODBC DNS Configuration" is where you enter your Sqlite database settings. The "Database Name" is simply the path and file name of your database.
The "Data Source Name" can be anything meaningful to you as it will appear in the Visio dropdown whenever you want to reverse engineer. There are some other settings you can experiment with as well.
When you commence reverse engineering you will be asked to connect to your datasource using your credentials. At this point you will get a warning ...
Warning! You are using a Visio
'ODBC Generic Driver' to connect
with a 'SQLite' DBMS datasource. By using
an incompatible driver, it is possible
that the catalog information retrieved
will be incomplete.
Just click 'OK' and ignore this.
Unfortunately, in the next screen the option to select "Views" and "Triggers" are greyed out (you can select Tables: Primary Keys, Indexes, Foreign Keys though). This is a shame as I have defined a lot of these in my schema and I have benefited from rev-enging these in Oracle many times in the past.
That is it. Hope someone can find a fix for rev-enging the views.
Dan
Have you tried using the "Refresh" feature? I'm not sure if that is a 2010 thing or if it was always there. You point it at the database and it updates your model with the changes since last time.