{"id":161,"date":"2021-07-30T19:04:55","date_gmt":"2021-07-30T11:04:55","guid":{"rendered":"https:\/\/9iwd.top\/?p=161"},"modified":"2023-01-05T21:27:10","modified_gmt":"2023-01-05T13:27:10","slug":"mysql%e5%b8%b8%e7%94%a8%e5%91%bd%e4%bb%a4","status":"publish","type":"post","link":"http:\/\/9iwd.top\/?p=161","title":{"rendered":"No1 mysql \u5e38\u7528\u547d\u4ee4"},"content":{"rendered":"\n<figure class=\"wp-block-table is-style-regular\"><table class=\"has-luminous-vivid-orange-color has-text-color\"><thead><tr><th> \u529f\u80fd <\/th><th>\u6307\u4ee4<\/th><th> \u5907\u6ce8 <\/th><\/tr><\/thead><tbody><tr><td>&nbsp;\u767b\u9646mysql(1)<\/td><td>&nbsp;-uroot -p123456<\/td><td>&nbsp;\u660e\u6587\u5bc6\u7801\u767b\u9646<\/td><\/tr><tr><td>&nbsp;\u767b\u9646mysql(2)<\/td><td>&nbsp;-uroot -p<\/td><td>&nbsp;\u9690\u5f62\u5bc6\u7801\u767b\u9646<\/td><\/tr><tr><td>&nbsp;\u9000\u51famysql<\/td><td>&nbsp;exit<\/td><td>&nbsp;<\/td><\/tr><tr><td>&nbsp;\u67e5\u770b\u6240\u6709\u5b58\u5728\u5e93<\/td><td>&nbsp;show databases;<\/td><td>&nbsp;<\/td><\/tr><tr><td>&nbsp;\u9009\u62e9\u6570\u636e\u5e93<\/td><td>&nbsp;use test;<\/td><td>&nbsp;<\/td><\/tr><tr><td>&nbsp;\u521b\u5efa\u6570\u636e\u5e93<\/td><td>&nbsp;create database bjpowernode;<\/td><td>&nbsp;<\/td><\/tr><tr><td>&nbsp;\u67e5\u770b\u6240\u6709\u8868&nbsp;<\/td><td>&nbsp;show tables;<\/td><td>&nbsp;<\/td><\/tr><tr><td>&nbsp;\u67e5\u770b\u7248\u672c\u53f7<\/td><td>&nbsp;select version();<\/td><td>&nbsp;<\/td><\/tr><tr><td>&nbsp;\u67e5\u770b\u4f7f\u7528\u7684\u6570\u636e\u5e93<\/td><td>&nbsp;select database();<\/td><td>&nbsp;<\/td><\/tr><tr><td>&nbsp;\u67e5\u770b\u8868\u7684\u7ed3\u6784<\/td><td>&nbsp;desc dept;<\/td><td>&nbsp;<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<pre class=\"wp-block-code\"><code># \u67e5\u770b\u6240\u6709\u5b58\u5728\u5e93\nmysql&gt;  show databases;\n+--------------------+\n| Database           |\n+--------------------+\n| information_schema |\n| mysql              |\n| performance_schema |\n| sys                |\n| test               |\n+--------------------+<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>#\u9009\u62e9\u6570\u636e\u5e93\n use test;\n#\u67e5\u770b test \u6570\u636e\u5e93\u4e0b\u6240\u6709\u8868\nmysql&gt;  show tables;\n+----------------+\n| Tables_in_test |\n+----------------+\n| dept           |\n| emp            |\n| salgrade       |\n+----------------+<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>#\u67e5\u770b dept \u8868\u7ed3\u6784\nmysql&gt; desc dept;\n+--------+-------------+------+-----+---------+-------+\n| Field  | Type        | Null | Key | Default | Extra |\n+--------+-------------+------+-----+---------+-------+\n| DEPTNO | int(2)      | NO   | PRI | NULL    |       |\n| DNAME  | varchar(14) | YES  |     | NULL    |       |\n| LOC    | varchar(13) | YES  |     | NULL    |       |\n+--------+-------------+------+-----+---------+-------+<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>#\u67e5\u770b emp \u8868\u7ed3\u6784\nmysql&gt; desc emp;\n+----------+-------------+------+-----+---------+-------+\n| Field    | Type        | Null | Key | Default | Extra |\n+----------+-------------+------+-----+---------+-------+\n| EMPNO    | int(4)      | NO   | PRI | NULL    |       |\n| ENAME    | varchar(10) | YES  |     | NULL    |       |\n| JOB      | varchar(9)  | YES  |     | NULL    |       |\n| MGR      | int(4)      | YES  |     | NULL    |       |\n| HIREDATE | date        | YES  |     | NULL    |       |\n| SAL      | double(7,2) | YES  |     | NULL    |       |\n| COMM     | double(7,2) | YES  |     | NULL    |       |\n| DEPTNO   | int(2)      | YES  |     | NULL    |       |\n+----------+-------------+------+-----+---------+-------+<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>#\u67e5\u770b salgrade \u8868\u7ed3\u6784\nmysql&gt; desc salgrade;\n+-------+---------+------+-----+---------+-------+\n| Field | Type    | Null | Key | Default | Extra |\n+-------+---------+------+-----+---------+-------+\n| GRADE | int(11) | YES  |     | NULL    |       |\n| LOSAL | int(11) | YES  |     | NULL    |       |\n| HISAL | int(11) | YES  |     | NULL    |       |\n+-------+---------+------+-----+---------+-------+<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u529f\u80fd \u6307\u4ee4 \u5907\u6ce8 &nbsp;\u767b\u9646mysql(1) &nbsp;-uroot -p123456 &nbsp;\u660e\u6587\u5bc6\u7801\u767b\u9646 &nbsp;\u767b\u9646mysql(2) &nbsp;-uroot -p &nbsp;\u9690\u5f62\u5bc6\u7801\u767b\u9646 &nbsp;\u9000\u51famysql [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"_links":{"self":[{"href":"http:\/\/9iwd.top\/index.php?rest_route=\/wp\/v2\/posts\/161"}],"collection":[{"href":"http:\/\/9iwd.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/9iwd.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/9iwd.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/9iwd.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=161"}],"version-history":[{"count":10,"href":"http:\/\/9iwd.top\/index.php?rest_route=\/wp\/v2\/posts\/161\/revisions"}],"predecessor-version":[{"id":193,"href":"http:\/\/9iwd.top\/index.php?rest_route=\/wp\/v2\/posts\/161\/revisions\/193"}],"wp:attachment":[{"href":"http:\/\/9iwd.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=161"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/9iwd.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=161"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/9iwd.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=161"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}