mysql -uroot -pxxxxxx 1. 修改服务器的字符集 打开/etc/mysql/my.cnf,在[mysqld]后添加character-set-server=utf8 2. 查看mysql当前的字符集 show grants for 你的用户 show variables like 'character_set_%'; set names utf8; //设定字符集 create database edc_v2 charset utf8 //创建数据库 use e
操作步骤 #登录 [root@xxx01 ~]# su postgres bash-4.2$ psql -U postgres could not change directory to "/root" psql (9.2.24) Type "help" for help. postgres=# \l List of databases Name | Owner | Encoding | Collate | Ctype | Access privileges ---