早教吧 育儿知识 作业答案 考试题库 百科 知识分享

英语翻译Thisisaprobleminyourdatabase.Icreateitthisway:createdatabaseaskbotDEFAULTCHARACTERSETUTF8COLLATEutf8generalci;grantallprivilegesondbname.*todbuser@localhostidentifiedby'dbpassword';Maybeyou'llneedtogothro

题目详情
英语翻译
This is a problem in your database.
I create it this way:
create database askbot DEFAULT CHARACTER SET UTF8 COLLATE utf8_general_ci;
grant all privileges on dbname.* to dbuser@localhost identified by 'dbpassword';
Maybe you'll need to go through the file my.cnf (mysql config) and set all encodings to UTF8.
Somewhere you have incompatible character encodings.
Thank you.(有些是it术语,不必翻译,另外也不要机译,我机译过了,没看懂)
▼优质解答
答案和解析
This is a problem in your database.这是一个在你的数据库里存在的问题.
I create it this way:我是这样来构建它的
create database askbot DEFAULT CHARACTER SET UTF8 COLLATE utf8_general_ci;
grant all privileges on dbname.* to dbuser@localhost identified by 'dbpassword';
创建数据库的问题bot =.= DEFAULT CHARACTER SET UTF8 COLLATE urf8_general_ci;grant all privileges on dbname.* to dbuser@localhost identified by 'dbpassword';
Maybe you'll need to go through the file my.cnf (mysql config) and set all encodings to UTF8.
Somewhere you have incompatible character encodings.
或许你将需要到这个文件 my.cnf (mysql config) 将所有的编码设置为UTF8.在某些地方 你有一些不兼容的编码
Thank you.