Forum Replies Created
-
AuthorPosts
-
kasiMember
I am using SQLYog Enterprise 5.20
peterlaursen wrote on Feb 14 2007, 06:28 AM:Instead of you guessing the reason for this you could give us a test case so that we can solve it! 😉I didn't guess the reason. I changed the the tunneler script, so that it dumps me all queries, that are send to the server, to a log-file. I alse dumped the connection state using “show variables like 'character_set_%'” before each mysql_query. So I know that the data from the database is in latin1 and I guessed that the server locally sends “set names utf8” because all special characters are gone.
Also when I do “mysql_query('set names utf8') just after mysql_connect() everything works correct (except sending own queries).
This only happens when doing “Copy selected database to an other HOST/DB”.
Export as Batch-script and Database Synchonisation Wizard are working correct (doing set names utf8 and fetching utf8 data).
KASI
kasiMemberThe Problem is fixed now.
It wasn't the Apache Server but PHP. There was a “auto_prepend_file” defined in php.ini which had a closing ?> tag with a new line after that.
KASI
kasiMemberNow I found the problem.
For reasons I don't know the webserver sends a newlinw char before each content: So you can reproduce my error, when you insert a “echo chr(10);” at the beginning of the Tunnel-script.
It looks like that the connection that asks for the tunnel-version, doing a
“POST /SQLyogTunnel.php?app=sqlyog&version=5.2 HTTP/1.0” and receiving a
“