foxsk8 Posted October 24, 2007 Report Share Posted October 24, 2007 Lieta tāda, uz savu PC uzmetu web serveri un visu atstāju defoultā. Rezultātā, lapa un DB viss ir ok. Tagad paņemu nano hostingu un rodas problēmas. Itkā viņiem ir šādi uztstādījumi iekš Server variables and settings: Variable Session value / Global valueauto increment increment 1 auto increment offset 1 automatic sp privileges ON back log 50 basedir /usr/local/ binlog cache size 32,768 bulk insert buffer size 8,388,608 character set client utf8 (Global value) cp1251 character set connection utf8 (Global value) cp1251 character set database cp1251 character set filesystem binary character set results utf8 (Global value) cp1251 character set server cp1251 character set system utf8 character sets dir /usr/local/share/mysql/charsets/ collation connection utf8_unicode_ci Atkla manam defoltajam cp1251 vietā ir Latin1. Dati iekš DB visi ir pareizi, kodējums viss ir kā nākās, uz iepriekšejo hostu arī viss bija kārtībā. Tātad jautājumi ir tādi: 1. Vai tā ir mana vaina, vai viņu 2. Ja tā ir mana vaina, kā es to varētu labot? Vēl viens, kas manam scriptam uz nano serveri nepatīk ir šis te: SQL Error : 1270 Illegal mix of collations (latin1_bin,IMPLICIT), (cp1251_general_ci,COERCIBLE), (cp1251_general_ci,COERCIBLE) for operation ' IN ' Link to comment Share on other sites More sharing options...
foxsk8 Posted October 24, 2007 Author Report Share Posted October 24, 2007 Slēdzat ciet. Viss kārtībā, piemetu pāris rindiņas: @mysql_connect($dbhost, $dbuser, $dbpasswd) or die ('<b>Database/configuration error.</b>'); @mysql_query("SET character_set_results=latin1, character_set_connection=latin1, character_set_client=latin1"); @mysql_select_db($dbname) or die ('<b>Database/configuration error (DB is missing).</b>'); Link to comment Share on other sites More sharing options...
Paulinjsh Posted October 25, 2007 Report Share Posted October 25, 2007 vai @ pielikšana kļūdas atrisināja? :) Link to comment Share on other sites More sharing options...
Recommended Posts