1、仅新建用户(只新建一个用户,不授予任何权限) create user 'username'[@'ip'] identified by 'password'; -- username 新建用户的用户名-- password 新建用户的密码-- ip 允许连接的ip地址,如不限制使用'%'
1、查看mysql有关字符编码设置 mysql> show variables like 'character_set_%'; +--------------------------+----------------------------+ | Variable_name |