EduSoho网络教学软件 加入小组

537个成员 301个话题 创建时间:2013-09-17

网站检测环境都很顺利,但是到第3步就出严重问题。

发表于 2013-12-09 5573 次查看

大家好,我是在首页上下载的开源网络课堂系统,我的PHP环境根据要求都安装好后,在http://127.0.0.1/edusoho/web/install/install.php?step=1 中也检测组件都安装成功,如图所示:

 

 

但是,到了第3步时,就出现了严重的问题,请大家帮我看看是怎么回事?如何解决?谢谢!

12回复
  • 2楼 美师美课 2013-12-09

    Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000]: General error: 1267 Illegal mix of collations (utf8_general_ci,IMPLICIT) and (gbk_chinese_ci,COERCIBLE) for operation '='' in E:\www\edusoho\vendor\doctrine\dbal\lib\Doctrine\DBAL\Connection.php:643 Stack trace: #0 E:\www\edusoho\vendor\doctrine\dbal\lib\Doctrine\DBAL\Connection.php(643): PDOStatement->execute(Array) #1 E:\www\edusoho\vendor\doctrine\dbal\lib\Doctrine\DBAL\Connection.php(381): Doctrine\DBAL\Connection->executeQuery('SELECT * FROM u...', Array) #2 E:\www\edusoho\src\Topxia\Service\User\Dao\Impl\UserDaoImpl.php(29): Doctrine\DBAL\Connection->fetchAssoc('SELECT * FROM u...', Array) #3 E:\www\edusoho\src\Topxia\Service\User\Impl\UserServiceImpl.php(237): Topxia\Service\User\Dao\Impl\UserDaoImpl->findUserByNickname('????????????') #4 E:\www\edusoho\src\Topxia\Service\User\Impl\UserServiceImpl.php(298): Topxia\Service\User\Impl\UserServiceImpl->isNicknameAvaliable('????????????') #5 E:\www\edusoho\web\install\install.php(261): Topxia\ in E:\www\edusoho\vendor\doctrine\dbal\lib\Doctrine\DBAL\DBALException.php on line 47

  • 3楼 美师美课 2013-12-09

    感觉回答。

    mysql-essential-5.1.55

    CREATE DATABASE `edusoho` /*!40100 DEFAULT CHARACTER SET gbk */

    请问这几行错误代码是我的MYSQL有问题吗?如何解决?

  • 4楼 美师美课 2013-12-09

    感谢回答!

    我已经更换成utf-8编码,查询如下:

    CREATE DATABASE `edusoho` /*!40100 DEFAULT CHARACTER SET utf8 */

    呆会我重起计算机再试。

    另外我还有一个担心,就是edusoho的改成了uft-8,我有的数据库还是用的gbk,会不会影响到我其他的数据库呢?

  • 5楼 美师美课 2013-12-09

    我重启了,确实也是utf-8-general-ci,但问题依旧存在!

     

     

    Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000]: General error: 1267 Illegal mix of collations (utf8_general_ci,IMPLICIT) and (gbk_chinese_ci,COERCIBLE) for operation '='' in E:\www\edusoho\vendor\doctrine\dbal\lib\Doctrine\DBAL\Connection.php:643 Stack trace: #0 E:\www\edusoho\vendor\doctrine\dbal\lib\Doctrine\DBAL\Connection.php(643): PDOStatement->execute(Array) #1 E:\www\edusoho\vendor\doctrine\dbal\lib\Doctrine\DBAL\Connection.php(381): Doctrine\DBAL\Connection->executeQuery('SELECT * FROM u...', Array) #2 E:\www\edusoho\src\Topxia\Service\User\Dao\Impl\UserDaoImpl.php(29): Doctrine\DBAL\Connection->fetchAssoc('SELECT * FROM u...', Array) #3 E:\www\edusoho\src\Topxia\Service\User\Impl\UserServiceImpl.php(237): Topxia\Service\User\Dao\Impl\UserDaoImpl->findUserByNickname('????????????') #4 E:\www\edusoho\src\Topxia\Service\User\Impl\UserServiceImpl.php(298): Topxia\Service\User\Impl\UserServiceImpl->isNicknameAvaliable('????????????') #5 E:\www\edusoho\web\install\install.php(261): Topxia\ in E:\www\edusoho\vendor\doctrine\dbal\lib\Doctrine\DBAL\DBALException.php on line 47

  • 6楼 美师美课 2013-12-10

    大家帮忙解决一下吧,是怎么回事?数据库确实也是utf-8-general-ci,但问题依旧存在,是不是还有其他的细节设置?

  • 7楼 美师美课 2013-12-10

    Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000]: General error: 1267 Illegal mix of collations (utf8_general_ci,IMPLICIT) and (gbk_chinese_ci,COERCIBLE) for operation '='' in E:\www\edusoho\vendor\doctrine\dbal\lib\Doctrine\DBAL\Connection.php:643 Stack trace: #0 E:\www\edusoho\vendor\doctrine\dbal\lib\Doctrine\DBAL\Connection.php(643): PDOStatement->execute(Array) #1 E:\www\edusoho\vendor\doctrine\dbal\lib\Doctrine\DBAL\Connection.php(381): Doctrine\DBAL\Connection->executeQuery('SELECT * FROM u...', Array) #2 E:\www\edusoho\src\Topxia\Service\User\Dao\Impl\UserDaoImpl.php(29): Doctrine\DBAL\Connection->fetchAssoc('SELECT * FROM u...', Array) #3 E:\www\edusoho\src\Topxia\Service\User\Impl\UserServiceImpl.php(237): Topxia\Service\User\Dao\Impl\UserDaoImpl->findUserByNickname('????????????') #4 E:\www\edusoho\src\Topxia\Service\User\Impl\UserServiceImpl.php(298): Topxia\Service\User\Impl\UserServiceImpl->isNicknameAvaliable('????????????') #5 E:\www\edusoho\web\install\install.php(261): Topxia\ in E:\www\edusoho\vendor\doctrine\dbal\lib\Doctrine\DBAL\DBALException.php on line 47

  • 8楼 美师美课 2013-12-11

    谢谢大家,我已搞定,在你们提供的帮助答案的基础上,Program Files\MySQL\MySQL Server 5.1中,将my.ini中的gbk都改为uft8,然后删除数据库,重起计算机,再来试,这次就OK了!

发表回复
功能维护升级中,维护完成完后将再次开放,非常抱歉给您学习造成的不便。