mac安装启动mysql
brew install mysql
mysql.server start
/usr/local/Cellar/mysql/5.6.10/support-files/mysql.server start
mysql.server stop
/usr/local/Cellar/mysql/5.6.10/support-files/mysql.server stop
从表中删除某条记录:
delete from table_name where xx=xxxx;
创建数据库(注意不同系统对大小写的敏感性):
create database xxx;
查看数据库列表
show databases;
删除数据库
drop database xxx;
如果数据库不确定是否存在则使用
drop database xxx if xxx;
查看表结构
desc xxx;
show columns from table_name;
删除表
drop table xxx
查看mysql端口号(默认是3306)
show global variables like 'port';
修改端口号
vi /etc/mysql/my.cnf
查看tables
show tables;
创建table
CREATE TABLE IF NOT EXISTS runoob_tbl(`runoob_id`INT UNSIGNED AUTO_INCREMENT,`runoob_title`VARCHAR(100)NOT NULL,&#
最后
以上就是安静玉米最近收集整理的关于onenet实时更新到mysql_mysql简单操作(实时更新)的全部内容,更多相关onenet实时更新到mysql_mysql简单操作(实时更新)内容请搜索靠谱客的其他文章。
发表评论 取消回复