随笔分类 - 【MySQL】
摘要:查看数据库地址: select SUBSTRING_INDEX(host,':',1) as ip , count(*) from information_schema.processlist group by ip; 查看数据库端口: show variables like 'port' ; 查看
阅读全文
摘要:1.创建数据库指定字符集: CREATE DATABASE db_name DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci 2.新建用户: create user 'hive'@'localhost' identified by '123456'
阅读全文

浙公网安备 33010602011771号