mysql 常用命令
来源:互联网 发布:换手率软件使用说明 编辑:程序博客网 时间:2024/06/04 00:33
1、登录报“ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)”
解决方法:启动mysql服务器
2、登录mysql数据库:
mysql -u root --无密码登录
mysql -u root -p --有密码登录
3、查看可用数据库:
show databases;
4、创建数据库:
create database library;
5、使用(进入)数据库:
use library;
6、创建表:
create table user (name varchar(20),password varchar(50));
7、显示该数据库中,所有表:
show tables;
8、向表中插入数据:
insert into user values('Jack','123456');
9、查看表的内容:
select * from user;
https://dev.mysql.com/doc/mysql-getting-started/en/
create table b_info(id int not null auto_increment,
name varchar(100) not null,
publish varchar(100),
date date,
intro tinytext,
primary key(id));
阅读全文
0 0
- MySQL常用命令
- MySql常用命令
- MySQL常用命令
- mysql常用命令
- mysql常用命令
- mysql常用命令
- Mysql常用命令
- MySQL常用命令
- mysql 常用命令
- MySQL常用命令
- mysql常用命令
- MySql常用命令
- MySQL常用命令
- mysql 常用命令
- mysql常用命令
- mysql常用命令
- mysql 常用命令
- MySQL常用命令
- NiceLabel教程—创建连续数据变量
- pip安装报错:is not a supported wheel on this platform
- 下厨房-网易python(去重)
- Java普通for和增强for探究
- git
- mysql 常用命令
- OneNET与第三方平台对接(最简单方式)
- IllegalStateException: This Activity already has an action bar supplied by the window decor.
- 数组追加
- 好用的js时间插件 js Date
- 移动端 触摸事件 ontouchstart、ontouchmove、ontouchend、ontouchcancel
- vue源码解析之插件入侵机制
- 注意YAML格式文件空格
- 多线程之间实现同步