链接 文档install on linux 初始用户 /etc/mysql/debian.cnf里有默认的管理员账户 debian-sys-maint****** 创建用户 create database dbname character set utf8 collate utf8_bin; create user username@localhost identified [with mysql_native_password] by 'password'; grant all privileges on dbname.* to username@localhost;