mysql-cmd

作者: 泠泉 | 来源:发表于2019-04-15 10:02 被阅读0次

    如何通过命令行连接mysql


    • mysql -hlocalhost -uroot -proot;
    • show database;
    • use test;
    • show tables;
    • desc book;
    • create database test;
    • create table user(id int(4) not null primary key auto_increment,username char(20)not null,password char(20) not null);
    • insert into user (1,'duoduo','921012');
    • select * from user;

    相关文章

      网友评论

          本文标题:mysql-cmd

          本文链接:https://www.haomeiwen.com/subject/znmywqtx.html