摘要:
1.查看编码 show variables like 'character%'; 2.临时设置编码 1.set names xxx set names ${编码}; "set names xxx"一条命令相当于以下三条命令: set character_set_client = xxx; set c 阅读全文
posted @ 2020-08-16 16:48
周建林
阅读(92)
评论(0)
推荐(0)
摘要:
1.查看当前数据库下有那些表 -- 查看schema下表清单 show tables; show full tables from ${schema名}; -- 查看表详细信息 select * from information_schema.tables where table_schema = 阅读全文
posted @ 2020-08-16 16:47
周建林
阅读(192)
评论(0)
推荐(0)
摘要:
1.查看当前有哪些数据库 show databases; 2.切换数据库 use ${数据库名}; 3.创建数据库 create database ${数据库名} character set ${编码方式}; -- "character set ${编码方式}"可以省略, 此时使用默认的编码方式, 阅读全文
posted @ 2020-08-16 16:46
周建林
阅读(181)
评论(0)
推荐(0)
摘要:
mysql -h${主机名或主机IP} -P${端口} -u${用户名} -p ${数据库名}; # 回车之后再输入密码 mysql -h${主机名或主机IP} -P${端口} -u${用户名} -p${密码} ${数据库名}; # 不建议这种显示输入密码的方式 在本机登录, 可以省略"-h"参数; 阅读全文
posted @ 2020-08-16 16:45
周建林
阅读(6846)
评论(0)
推荐(0)

浙公网安备 33010602011771号