加入收藏 | 设为首页 | 会员中心 | 我要投稿 通辽站长网 (https://www.0475zz.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > MySql教程 > 正文

mysql基本基本语句

发布时间:2022-10-13 03:01:00 所属栏目:MySql教程 来源:互联网
导读: flush privileges;
grant 权限 on 数据库对象.表 to 用户@ip identified by 密码
权限:REPLICATION SLACE,REPLICATION CLIENT
数据库对象:*.*(*.*说明数据库.表名)
用户:shenge1 那个%号是

flush privileges;

grant 权限 on 数据库对象.表 to 用户@ip identified by 密码

权限:REPLICATION SLACE,REPLICATION CLIENT

数据库对象:*.*(*.*说明数据库.表名)

用户:shenge1 那个%号是通配符,表示用户relp能在192.168.200.1~192.168.200.254所在的服务登录密码:linwei

mysql -u shenge1 -h 192.168.200.157 --password=linwei 登陆或者-p手动输入密码

mysql < 01.sql =>在01.sql中写好mysql语句,可以这样执行.

mysql语句_mysql定时任务语句写法_mysql的分页语句

mysql -u shenge1 -h 192.168.200.157 --password=linwei < 01.sql

delete from mysql.user where User=‘shenge1‘; 删除某个用户

show databases;显示所有数据库

show tables from mysql; 显示mysql数据库中的所有表名

create database student;建一个student数据库

drop database student;删除student数据库

create table test.student(name char,math int);在数据库test中创建student表格

drop table test.student;删除test数据库中的student表格

show columns from 表名或者describe 表名 查看表的结构

insert into test.student(name,math)values(‘xiaoming‘,87);插入数据

alter table test.student drop name;删除name这个字段.

alter table test.student add name(20);增加name这个字段

update test.student set where math=78;更新某个数据的值

本文出自 “12208412” 博客,请务必保留此出处

mysql基本基本语句

(编辑:通辽站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!