Displaying 20 results from an estimated 700 matches similar to: "rake test:x recreates tables in MySQL with server (not database) charset and collation"
2008 Sep 04
3
MySQL connection collation
Hi!
I have ran on problem with collations. In database.yml I have set:
encoding: utf8, but when in console run:
>> ActiveRecord::Base.connection.collation
=> "latin1_swedish_ci"
It is Rails 2.1, mysql gem 2.7, mysql 5.1.22. This leads to errors like:
Mysql::Error: Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and
(utf8_general_ci,COERCIBLE) for operation
2006 Jan 11
2
Creating a DB in the schema import process
I''ve got a bunch of table creations in the schema.rb file and all is
well. However, I have to manually go and create the db first. Is there a
way (something like a create_database method) to get this to work?
(execute "create database ..." didn''t seem to cut it either.)
_______________________
Brad Eck
Sr. Software Engineer
Pelco
3500 Pelco Way
Clovis, CA 93612
2007 May 22
7
ActiveRecord::Base.connection.create_database defaults to latin1
If you use ActiveRecord::Base.connection.create_database you''ll notice
that by default the created db will use latin1 encoding. I created a
plugin to handle different charset and collations (on top of helping
you with other boring DB tasks).
You can check out the early version of the plugin
svn checkout svn://rubyforge.org/var/svn/raketasks/db_tasks
(I really need to move my projects out
Mysql::Error: Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE)
2009 Aug 04
0
Mysql::Error: Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE)
Hi, I''ve got an error when I upload a record by iPhone with Chinese
character.
Processing ScoresController#create (for 123.204.56.133 at 2009-08-04
16:19:52) [POST]
Parameters: {"score"=>{"score"=>"79.60", "player_name"=>"δΈ€",
"iphone_identifier"=>"6b194f783d645ba1a7c30c0e31b1b67300eb0a25"},
2008 Jan 21
1
Mysql collations error
Hello,
I am having this mysql error in my ruby on rails application.
ActiveRecord::StatementInvalid occurred in
> event#lg:
> Mysql::Error: Illegal mix of collations
> (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for
> operation ''='': select * from locations where country = ''HU'' and
> geo_state = ''08'' and city
2010 Sep 20
5
Update to website not printing special Characters
I thought you might be interested in how far I have got with solving
my problem with MySql(via phpMyAdmin) to website character_set
problems.
I thought I had solved the problem when my characters on my website
started showing the special characters.
This was a partial success though.
When I went back to phpMyAdmin and entered new text the problem was
the same, but reversed. What now happens is
2015 Jul 06
0
CDR in an MySQL-Database
> Hi list!
>
> I'd like to save all information about calls (CDR) in a MySQL-Database.
> I created the DB and a user for Asterisk on a separate server, then I
> configured my cdr_mysql.conf so:
>
> [global]
> hostname=192.168.10.3
> dbname=asterisk
> table=cdr
> password=MYSECRET
> user=asterisk
> port=3306
>
> and my cdr.conf so:
>
>
2015 Jul 07
0
CDR in an MySQL-Database
Luca Bertoncello wrote:
> Hi list!
>
> I'd like to save all information about calls (CDR) in a MySQL-Database.
> I created the DB and a user for Asterisk on a separate server, then I
> configured my cdr_mysql.conf so:
>
> [global]
> hostname=192.168.10.3
> dbname=asterisk
> table=cdr
> password=MYSECRET
> user=asterisk
> port=3306
>
> and my
2015 Jul 06
1
CDR in an MySQL-Database
-----Original Message-----
From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of jg
Sent: Monday, July 06, 2015 4:14 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] CDR in an MySQL-Database
> Hi list!
>
> I'd like to save all information about calls (CDR) in a MySQL-Database.
2015 Jul 06
4
CDR in an MySQL-Database
Hi list!
I'd like to save all information about calls (CDR) in a MySQL-Database.
I created the DB and a user for Asterisk on a separate server, then I
configured my cdr_mysql.conf so:
[global]
hostname=192.168.10.3
dbname=asterisk
table=cdr
password=MYSECRET
user=asterisk
port=3306
and my cdr.conf so:
[general]
enable=yes
unanswered = yes
safeshutdown=yes
[mysql]
usegmtime=no
2007 Feb 21
0
japanese chars output as "?????" or garbage val in rails app
Guys,
In my rails app the japanese chars output as "?????" or garbage
value. I
have searched the forum get some help but I am not clear about the
tropic
I use InstantRails 1.4, In the package mysql version is 4.1.9.
So please help me in the points
0.What will be the mysql(version 4.1.9) collation? (I used
latin1_swedish_ci)
1. any change in database.yml configuration?
2. What
2009 Jul 12
3
Installing mysql with macports
Not sure if this is off topic, but there doesn''t seem to be an obvious
place to ask this question.
I am trying to use MacPorts to install mysql. I have xcode 3.0 and
x11 XQuartz 2.1.6 installed.
$PATH:
/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/
local/bin:/usr/X11/bi
When I sudo port install mysql5-server
I receive:
---> Configuring mysql5
Error: Target
2013 Jun 12
0
Best way to set database connection collation in rails?
Hello, I want to change the connection collation that rails uses but I''m
unsure of exactly what the best way to do this is. Everything in MySQL -
the server, database and all tables are set to utf8_unicode_ci collation,
but the connection collation in rails still appears to be utf8_general_ci
(the default?). We are using the mysql2 adapter.
I''ve seen a couple of possible
2010 Aug 18
1
Automatically retrieve correct collation
Dear List,
consider the following scenario:
setClass(Class = "A", representation = representation(B = "B", C = "C"))
setClass(Class = "B", representation = representation(C = "C"))
setClass(Class = "C", representation = representation(something =
"character"))
Obviously, the collation for sourcing these defs needs to be: C,
2013 Aug 28
1
State of Unicode collation support in FreeBSD?
[crossposted to -stable and -i18n, replies directed to -stable]
Hi everyone,
could someone point me to infos regarding Unicode collation support in FreeBSD?
All I could find was https://wiki.freebsd.org/KonradJankowski/Collation but
that page has not been changed in more than two years. Looking at sources of
-current it doesn't look like those changes made it into the source tree yet.
2006 Jun 25
0
database schema COLLATION
Is there a way to set the collation when creating a table in a
migration?
Thanks,
Ricardo
--
Posted via http://www.ruby-forum.com/.
2005 Jun 28
0
Samba + CUPS + Collation problems
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I have been moving printers from lpd printing to samba print queues.
Drive installs, point-n-print, and everything else is working well
but I can't for the life of me figure out how to make print job collate.
I've been searching on how to correct this problem but have been
unable to find anything.
My setup is
Samba 3.0.11 + 3.0.14a
2006 Mar 17
2
collation order
The following caused a hard-to-diagnose problem for a user of the survey
package. Presumably this is a strange Unicode thing, but is there a
convenient reference for how the collation order is determined? I am
surprised that adding the same character to the end of two strings of the
same length can change the sorting order.
in en_US.utf8 locale
> "1//"<"10/"
[1]
2006 Mar 02
2
Different Collation (utf8_slovak_ci, utf8_danish_ci, latin1_german1_ci) etc.
One issue left for me to figure out is that in different languages there are
different characters and Xapian takes only english characters.
Thefore many word entered by users that contains their own language special
characters will not return any result. MySQL offers different collations ...
Now when I see how much data Xapian can search perhaps I could expand my
index spider different European
2007 Aug 12
10
about chinese display
hello:
I have built a project with Instant Rails.Now only a database and a
scaffold based on a product model have finished.But when i inputted
"../admin/list" in my browser,i found my chinese characters cound not
display normally.Then i made five steps:
1 ajusting encoding in my browser menu
2 in "C:\InstantRails\conf_files\my.ini"directory,making sure