This question already has answers here:
MySql export schema without data
(15 answers)
How to dump only specific tables from MySQL?
(2 answers)
Closed 2 years ago.
is it possible to export MySQL database to a new server, and need the schema of the database without data except 2 tables
I have a MySQL database in my local system and I want to export this MySQL database to a new server, and need the schema of the database without data except 2 tables,
is it possible?
Related
This question already has answers here:
Truncate all tables in a MySQL database in one command?
(30 answers)
MySql export schema without data
(15 answers)
Closed 1 year ago.
I have a database with about 50 tables having data in all but I want to remove those records so the database is like new, is there a way to do this or is there a way to extract the tables without the data?
You can use DROP command to remove the tables
If you want to keep table schema but delete all records use
TRUNCATE command.
This question already has answers here:
How to import data from text file to mysql database
(9 answers)
Closed 2 years ago.
I obtained the PwnedPassword list of the 100K most common passwords from https://www.ncsc.gov.uk/static-assets/documents/PwnedPasswordsTop100k.txt
How can I insert this list into a MySQL table?
Use the LOAD DATA LOCAL INFILE
https://dev.mysql.com/doc/refman/8.0/en/loading-tables.html
This question already has answers here:
How do I rename a MySQL database (change schema name)?
(46 answers)
Closed 3 years ago.
I created a database with the name of old. Now I need to change database name to new.
But,I did not know how to change a name?
I believe that the ability to rename a database has been removed from the spec for security reasons. What you will need to do is create a full dump of the database "old". Then you'll need to create a new database and re-import the data
This question already has answers here:
How to skip certain database tables with mysqldump?
(11 answers)
Closed 9 years ago.
I have a db and looking for a mysql commands to extract Extract DDL and DML and Exclude tables which are not required
could you please let me know how we can do it via command prompt?
Thanks,
Kathir
Mysqldump:
http://dev.mysql.com/doc/refman/5.1/en/mysqldump.html
able to dump DDL/DML and has option for exclude list of tables:
http://dev.mysql.com/doc/refman/5.1/en/mysqldump.html#option_mysqldump_ignore-table
This question already has answers here:
Transfer data from PostgreSQL to MySQL
(2 answers)
Closed 9 years ago.
I have a PostgreSQL database with 50 tables which I need to export then import it in MySQL database. I need to maintain same table fields, data inside tables.
I am using pgAdmin III, tried using the Backup (Plain) feature but couldn't then import data and tables in mysql
I have also tried searching the web on how to do so but failed to locate any useful info so any help is highly appreciated.
Thanks
Take a look at http://www.mysql.com/products/workbench/
It has a Migration Wizard.