PHPMyAdmin Designer doesn't show all tables - mysql

I have created a MYSQL Database using XAMPP and PHPMyAdmin.
The Database has been firstly created using a MYSQL script which created and connected all tables.
In a second time I had to create and connect the table "Pietanza_nel_ordine". I created it with another SQL Query and then I connected the Foreign Keys using the tools provided by PHPMyAdmin.
This table works correctly even with Foreign Keys, however it is never shown in the Designer tool in PHPMyAdmin.
How can i get it to be shown?
Server version is 5.6.26, protocol 10.
PHPMyAdmin version is 4.4.14
I provide you with a few screenshot about my configurations:
Designer View:
Tables list:
Table Ordine:
Table Pietanza_nel_ordine:

I finally found out which was the problem:
The new table was added to my DB, but it wasn't added in designer schema.
I found out the option "Add tables from other databases" in the Designer View left dropdown, which allowed me to add my new Table in the Designer View (even if it was in the same Database).

Related

Can't connect to all tables in mySQL database using excel pivot table

I'm trying to build pivot table in excel using the mysql database I've created on my host using myphpadmin.
The problem - that I can't connect to all tables at once, although I choose all of them:
it only shows me one table at once:
I connect to the data using ODBC DNS.
Here is some info of the database:
Printable view of the database
Might be helpful - I've noticed that excel doesn't recognize the relations in the database:
Sorry for the long post, thanks for helping ;)

Can't create mysql table in workbench

I have created a mysql database testing. A table 'table1' was created inside it.
But when i tried to read that table in using java it, gives an error like
'com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'testing.table1' doesn't exist'
I created table1 and inserted some data using insert tab and also clicked 'applychanges to data' button.But It doesn't work.enter image description here
There is no file table1.frm which is related to that table in the path 'C:\ProgramData\MySQL\MySQL Server 5.6\data\testing'.But default database 'sakila' and its tables are working perfectly.How to save my table??
Even though you have created tables in design view and saved those will not pushed to the DB. In order to apply them on DB you have to go to the menu "Database -> Forward Engineering" and generate the scripts and apply

Mysql in eclipse indigo

I Have run an Hibernate application, where it should create a table name Userdet and insert values for username & userID. But when i drag down the MySQL database Poo i cant find any table been created. But Hibernate application ran successfully.
Are you possibly using "create-drop"? That causes schema to be dropped when SessionFactory is closed. If so, other options to create database via Hibernate are create and update.
Other common mistakes are connecting database other than assumed and/or checking wrong schema.

Drop table in Sql Server by Sql Server Management Studio

I deleted a table in SQL Server Management Studio. And then I created a new table with the same name. But the error said that the table has already exists. I want a new completely table with the same name.
Edit: Added more answers after comment.
Are you removing the table from the database diagram or from the object explorer? If you are removing the table from your database diagram using Visual Database tools, it will still exist in the database.
From MSDN:
The table is removed from your diagram but it continues to exist in
the database.
OR,
Try going to Tools->Options->Designers and unchecking the box that says "Prevent saving changes that require table re-creation". Then try deleting and creating the database.
OR,
Delete the table. Close MS SQL Management Studio. Open MS SQL Management Studio again. Create table.
Old Answer
Are both statements
in the same batch? From the Microsoft support page for DROP TABLE:
DROP TABLE and CREATE TABLE should not be executed on the same table in the same batch. Otherwise an unexpected error may occur.
If this isn't the case I'll try to help otherwise. If I can't help otherwise I'll just delete this answer.
Basically you have one of it open in tab where you get new table...
Steps
Close all the tabs
When no tabs are open
Create you table
And there you are.... It worked for me rather than creating the whole database again.
Clock on Tools -> Options -> Designers -> UNcheck Prevent table changes from table re-creation check box.

Is it possible to change a database table's engine after the table has been created?

I created a test database for a CakePHP tutorial I'm working through, and just used phpMyAdmin's default settings for the engine (MyISAM.) Now that I'm several days into the tutorial, it indicates that to use some of the features, the tables need to use InnoDB.
Is it possible (either in phpMyAdmin itself or via a SQL file import) to change the tables' engine choice after they've already been created? They currently have data in them, but it's only a few records each so I don't care if I have to empty the tables out. I just don't want to have to completely recreate the tables, if at all possible.
I can't seem to find any way to do this in phpMyAdmin - the only place I can find a choice of engines is when I'm creating a brand-new table.
EDITED TO ADD SCREENSHOT AFTER RUNNING QUERY:
Use this query:
ALTER TABLE my_table ENGINE = InnoDB;
where "my_table" is your table name.
In phpMyAdmin, navigate to the table and click the "SQL" tab at the top. Then paste the above query and click "Go/Execute".