In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
How to import and export mysql, in view of this problem, this article introduces the corresponding analysis and solutions in detail, hoping to help more partners who want to solve this problem to find a more simple and feasible method.
1. Import to database
After creating an empty database
Go to the mysql installation directory bin
(1) Import command mysql-u root-p password database name Source d:\ ajswlw.sql
two。 Database export data file
(1) Export mysql database ajswlw
Enter the mysql installation directory C:\ Program Files\ MySQL\ MySQL Server 5.5\ bin >
Mysqldump-h localhost-u root-p ajswlw > d:\ ajwlw.sql
(2) Export the tb_user table and data of mysql database ajswlw
Enter the mysql installation directory C:\ Program Files\ MySQL\ MySQL Server 5.5\ bin >
Mysqldump-h localhost-u root-p ajswlw tb_user > d:\ user.sql
(3) the structure of exporting mysql database ajswlw is not implemented.
Enter the mysql installation directory C:\ Program Files\ MySQL\ MySQL Server 5.5\ bin >
Mysqldump-h localhost-u root-p ajswlw-add-drop-table > d:\ stru.sql
Basic operation of 3.mysql
Create database ajswlw
Create table tb_user
Show tables
Desc tb_user
4.mysql has a limit on the size of the imported file, up to 2m, and the configuration can be modified.
Modify the parameter in .ini: memory_limit=128M,upload_max_filesize=2M,post_max_size=8M
Modify upload_max_filesize=200M;memory_limit=250M, post_max_size=2000M
This is the answer to the question about how to import and export mysql. I hope the above content can be of some help to you. If you still have a lot of doubts to solve, you can follow the industry information channel to learn more about it.
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.