• <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>
  • 軟件測試初學者必讀 MySQL 數據庫常見問題匯總

    發表于:2009-10-23來源:作者:點擊數: 標簽:軟件測試數據庫MySQLMysqlMYsql
    軟件測試初學者必讀 MySQL 數據庫 常見問題匯總 MySQL 數據庫 關鍵字:初學者 MySQL 問題匯總 1.關于自增字段重新賦初值的問題? ALTER TABLE tbl AUTO_INCREMENT = 1; 2.如何實現my sql 中自增長字段的功能? create table abc(id int(10) not null auto_incr

    軟件測試初學者必讀 MySQL 數據庫常見問題匯總  MySQL 數據庫

    關鍵字:初學者 MySQL 問題匯總

      1.關于自增字段重新賦初值的問題?

      ALTER TABLE tbl AUTO_INCREMENT = 1;

      2.如何實現mysql中自增長字段的功能?

      create table abc(id int(10) not null auto_incremnet primary key,

      name varchar(10) not null,

      address varchar(200) not null,

      postcode char(6) not null

      );

      這樣就創建了一個表,這個表的id子段是自動增長的。

      你還可以在一建好的表中增加這樣的字段,操作如下:

      alter table tb_name add id int(10) not null auto_increment first;

      或者

      alter table tb_name add id int(10) not null auto_increment;

      3、如何更改mysql中用戶密碼?

      a、在mysql/bin/目錄下面

      ./mysqladmin -u[用戶名如:root] -p[舊密碼,如果沒有密碼留空] password [新密碼]

      ./mysqladmin -uroot -p123456 password 456789

      其中 用戶名: root 原來密碼: 123456 新密碼: 456789

      b、以root用戶進入mysql

      mysql> use mysql

      mysql>update user set Password=password('newpassword') where User='root';

      mysql>flush privileges;

      注意大小寫。

      

    原文轉自:http://www.kjueaiud.com

    老湿亚洲永久精品ww47香蕉图片_日韩欧美中文字幕北美法律_国产AV永久无码天堂影院_久久婷婷综合色丁香五月

  • <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>