当前位置:网站首页>Mysql database commands
Mysql database commands
2022-07-24 21:20:00 【The sixth of June】
MySQL Database command
mysql Overview of operation commands :
mysql Database command :
List of articles
Login command
grammar :
mysql -h host -u userName -p
-h: Database to connect to ip, If it is this machine, you can not fill
-u: Database user name
-p: Database password
Table operation command
Database table commands :
- Add table fields
- Modify table fields
- Delete table fields
Add table fields
grammar :
alter table tableName( Table name )
add( Field )
Modify table fields
grammar :
alter table tableName( Table name )
modify Field
Delete table fields
grammar :
alter table tableName( Table name )
drop column Field
Export import
export :
- Database table structure and data export
- Database table structure export
- Table structure export
- Table structure and data export
Import :
export
export :
- Database table structure and data export
- Database table structure export
- Table structure export
- Table structure and data export
Database table structure and data export
Do not log in to the database , Just run the command directly in the window
# grammar
mysqldump -h Target data ip -u Database user name -p password ( Don't count , Enter after entering )-d ( No data )--add-drop-table( At every create Add one before drop table) Database name > xxx.sql
Database table structure export
# grammar
mysqldump -h Target data ip -u Database user name -p password ( Don't count , Enter after entering )-d ( No data )--add-drop-table( At every create Add one before drop table) Database name > xxx.sql
Table structure export
# grammar
mysqldump -h Target data ip -u Database user name -p password ( Don't count , Enter after entering )-d ( No data )--add-drop-table( At every create Add one before drop table) Database name Table name > xxx.sql
Table structure and data export
# grammar
mysqldump -h Target data ip -u Database user name -p password ( Don't count , Enter after entering )-d ( No data )--add-drop-table( At every create Add one before drop table) Database name Table name > xxx.sql
边栏推荐
- Top 10 in China's HCI software market: Huawei, Xinhua, Shenxin, VMware, Lenovo, smartx, Inspur, Qingyun, lutanli, dawn
- IO flow overview
- Hilditch refinement (implementation I)
- How to learn automated testing? Can you teach yourself?
- Use of cache in C #
- PHP page Jump mode
- Rce (no echo)
- Leetcode 15. sum of three numbers
- 2787: calculate 24
- Intranet penetration learning (I) introduction to Intranet
猜你喜欢

Solution: 2003 cant connect to MySQL server on * * * * and use near 'identified by' * * * * 'with grant option' at

RESNET interpretation and 1 × 1 Introduction to convolution

class file has wrong version 55.0, should be 52.0

Use of cache in C #

Multiplication and addition of univariate polynomials

Open source demo | release of open source example of arcall applet

Preview and save pictures using uni app

Native applets are introduced using vant webapp

Upgrade appium automation framework to the latest 2.0

How to design the order system in e-commerce projects? (supreme Collection Edition)
随机推荐
Make good use of these seven tips in code review, and it is easy to establish your opposition alliance
How to learn automated testing
MySQL - multi table query - seven join implementations, set operations, multi table query exercises
Failed to create a concurrent index, leaving an invalid index. How to find it
Eight transformation qualities that it leaders should possess
Docker builds redis and clusters
Intel internship mentor layout problem 1
Build your own stock analysis system based on b\s architecture
PHP page Jump mode
How to gracefully realize regular backup of MySQL database (glory Collection Edition)
Leetcode skimming -- bit by bit record 018
Baidu classic interview question - determine prime (how to optimize?)
Scientific computing toolkit SciPy data interpolation
Put apples
C WinForm actual operation XML code, including the demonstration of creating, saving, querying and deleting forms
ERROR 2003 (HY000): Can‘t connect to MySQL server on ‘localhost:3306‘ (10061)
[feature transformation] feature transformation is to ensure small information loss but high-quality prediction results.
whistle ERR_ CERT_ AUTHORITY_ INVALID
Teach you five ways to crack the computer boot password
【MLFP】《Face Presentation Attack with Latex Masks in Multispectral Videos》