mysql 终端操作
生活随笔
收集整理的這篇文章主要介紹了
mysql 终端操作
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
mysql 終端操作
登錄mysql
mysql -uroot -plary123
創建數據庫
create database test
顯示所有數據庫
show databases
進入某個數據庫
use databasename
顯示當前數據庫中的所有表
show tables
創建表
create table `t_article`(
`aid` int(11) not null auto_increment,
`title` varchar(255) default null,
`desc` varchar(255) default null,
`contents` text default null,
primary key(`aid`),
`subtime` int(10) default 0
)engine=myisam auto_increment=1 default charset=utf8;
轉載于:https://blog.51cto.com/lary51/1683485
總結
以上是生活随笔為你收集整理的mysql 终端操作的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Math.abs为Integer.Min
- 下一篇: PL/SQL快捷