In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
Today, I will talk to you about how to export a single table structure and data in mysql. Many people may not know much about it. In order to let you know more, Xiaobian summarizes the following contents for you. I hope you can gain something according to this article.
Export a single table structure and data from mysql
mysqldump -u username-p password-P port number--database name--tables table name> c:/export file name.sql
The parameter-P can be omitted unless your port number is not the default port number.
2. If you do not write the--tables parameter, you will export all table data in the DB.
www.2cto.com
1) MYSQL connection command:
mysql -h Host Address-u User Name-p User Password
2) Display database list:
show databases;
3) Display database list:
show databases;
4) Display data table list:
show tables;
5) Display the structure of the data table:
describe table name;
After reading the above, do you have any further understanding of how to export individual table structures and data in mysql? If you still want to know more knowledge or related content, please pay attention to the industry information channel, thank you for your support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.