Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    MYSQL


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Changed Characters


While using mysqldump to backup the databases on my server i noticed that all the the portuguese accented characters from my databases get screwed up and changed to wierd characters.
What's up?




View Complete Forum Thread with Replies

Related Forum Messages:
All Swedish Characters Is Changed
I'm doing Kevin Yanks tutorial about how to manage users with session (with some small modifications).

But when the data is inserted into the table all Swedish characters is changed to some strange "¥" and "¶". Why is it so and how to fix it?

According to PHPAdmin the collation is either UTF-8 (db) or Latin1_swedish (table)?

View Replies !
I Changed Root Password But I Can Not Login With Changed Password
I changed the password of root with
update user set password=password('newpassword')

Then I exited. But when I want to login again , it cannot authenticate the root
I should tell you that a hacker had changed my root password before. Because it was not encrypted before.

View Replies !
Special Characters :: Parse Out Characters In Outfile
I am looking for a way to parse out certain characters when I write a select statement to an outfile. I know how to escape the characters w/ the escaped by clause, but I need to parse off some double quotes and some backslashes.

select id, name from artists where id in(14346, 25919, 76150) INTO OUTFILE '/tmp/test_5.csv' FIELDS TERMINATED BY ',' ESCAPED BY '' LINES TERMINATED BY '

View Replies !
Changed User Privileges And Now I Can't Log In
I read several web sites and O'Reilly's book on MySQL about securing the system tables.

I removed several users and, as advised inthe book and web sites, changed the user "root" to another name with another password.

I removed the site name as a host but kept the IP address.

Now when I use phpMySdmin to get back in, it let's me past the login popup BUT it gives me the message:

Error
MySQL said: Access denied for user: 'root@localhost' (Using password: YES)

The data in the database is not important but the database structure/definition is. I'd like to find a way to back up or dump that. Then I can reload MySQL and start over.

View Replies !
Get The Latest Changed Records
I hava a table with the following information

CREATE TABLE TEMP1 (REFID INT, REVISION INT, FIELDNAM VARCHAR(10), VALUE VARCHAR(10));
INSERT INTO TEMP1 VALUES(1001, 0, A, A2);
INSERT INTO TEMP1 VALUES(1001, 0, C, C2);
INSERT INTO TEMP1 VALUES(1001, 0, E, E2);
INSERT INTO TEMP1 VALUES(1002, 0, A, A3);
INSERT INTO TEMP1 VALUES(1002, 0, B, B2);
INSERT INTO TEMP1 VALUES(1002, 0, E, E3);
INSERT INTO TEMP1 VALUES(1001, 1, A, A4);
INSERT INTO TEMP1 VALUES(1001, 1, E, E4);

Here based on latest revision and refid I should get the fieldnam and value.
Expected output:
REFID FIELDNAM VALUE REVISION
1001 A A4 1
1001 E E4 1
1002 B B2 0
1001 C C2 0

View Replies !
User Information Changed
The other day someone changed every user's password on my site. Then they changed every user's email address to theirs - I assume the reason was that when the user used the password reset function, they would never see the information.

I'm trying to research what/where the vulnerability is in the script that I'm suing, but I don't really know where to start - not being a hacker, I don't even know the terms to search for here or on google.

Is this what is meant by mysql injection?

View Replies !
Float(m,n) Changed Between Mysql 4.0 And 5.0?
I have a float(11,10) field (default NULL) in one of my MyISAM tables. With MySQL 4.0.16, I can call an Update/Insert query with a value of , say 33.166668 to this field, and it updates correctly. When I retrieve that value again with a select statement, I get something like 33.1666668392 (10 digits after decimal). Which is correct. (The sql_mode server variable is set to 0)

With the same field in MySQL 5.0, my experience is different. With the server sql_mode set to one of the strict values( SQL_TRANS_STRICT), i get an error about out of range value for the float field. when I change the sql_mode to not have the SQL_TRANS_STRICT, I get the same error as a warning, 1264 "Out of range...". When I retrieve this value, it is set to 10.0000000000, which is wrong. But , when I change the field description to float(11,5) and do an update, the value is updated right, but I get an intermittent "No rows updated" error.

Could anybody please explain if the float definitions changed between versions? Does float(m,n) now mean that I can have only (m-n) digits before decimal point?

View Replies !
Rows Changed In Update SQL
Is there a way to find out how many rows got updated when i execute a update stmt.

I would like to get the updated rows count in SQL.

Let me know and Thanks in advance.

update stmt where clause;

now how can i get the count of rows that got updated.

View Replies !
How To Find Out Which Table Is Changed?
I dont have source code of my web application I installed. Its using mysql 5. when I create a new user account, I know "users" tables is changed, but there's also a couple other tables are modified.

Is there a way I can find out which table is changed?

View Replies !
History Of Changed Percents
I have a table with data like that:

percent date
50% 2007-05-01
30% 2007-05-02
30% 2007-05-03
50% 2007-05-04
50% 2007-05-05
20% 2007-05-06
20% 2007-05-07
50% 2007-05-08
70% 2007-05-09
70% 2007-05-10

The query has to return this rows:

50% 2007-05-01
30% 2007-05-02
50% 2007-05-04
20% 2007-05-06
50% 2007-05-08
70% 2007-05-09

View Replies !
Changed Datadir Now Mysql Won't Run
I changed the datadir using mysql administrator (so I could "see it") (I'm using version 5.0.x under OS X 10.4.5 and now mysql won't run and I don't know how to reset the datadir. I've reinstalled mysql and when I try to run it this is what I get:

iBook-G4:/usr/local/mysql michael$ sudo ./bin/mysqld_safe &
[16] 12878
iBook-G4:/usr/local/mysql michael$ Starting mysqld daemon with databases from /Users/michael/Sites
STOPPING server from pid file /Users/michael/Sites/iBook-G4.pid
060329 12:38:24 mysqld ended

View Replies !
Changed Root Password, Now I Can't Do Anything
I am following the MySQL by Michael Kofler and looking at securing root access as currently it has no password.

I've logged into the MySQL consol and changed password using :

mysqladmin -u root -h localhost password XXX

However, i now can't do anything in in mysql terminal it comes back "access denied for user 'root'@'localhost' (using password :NO)

View Replies !
Date And Time Stamp A Changed Row
I am about to declare a table with 20 columns.

How do I create 4 more columns:
1. current Time
2. current Day of the month
3. current Month
4. current Year

Such that:

a. These 4 columns are not editable by the user.

b. Whenever a row is updated/inserted/replace/etc. then
these 4 columns in that row are automatically updated
by the system accordingly.

View Replies !
Datetime Field Changed After ALTER
To archive when a row is added, I have a column called date_added which uses the data type DATETIME.

I recently added a new column to my table "ALTER TABLE mytable ADD COLUMN mycolumn INT", and my stored dates have all been changed. In hindsight, was this to be expected?

I am using PHP to both push data into MySQL and pull data from MySQL. To prevent such future blunders, is it good practice to store dates as CHAR data type, and actively store the date using PHP?

View Replies !
Phone Numbers Changed On Import
I have imported a cvs data file every way I can think of and I always get this weird problem. About 75% of my 4,000 files end up with the phone number 2147483647. I searched the cvs file and this number does not exist there.
Is there an explaination for this?

View Replies !
Bug :: Floating Point Value 1.0 Changed To 1 When Inserting
when insert the floating point "1.0" in the tables, it is converted as "1" , is there anyway to store the exact floating point values?

my intention is to insert the values like "1.0" or "1.10" or "1.110" without any restriction.

description of the table is ...

View Replies !
Replication :: Master Log File Position Changed
I have a simple master/slave replication environment that is working smoothly with one exception. If I restart the master server the Master Log File is incremented by one (e.g. the original master log is named data-bin.000001 and the new master log is named data-bin.000002) the slave server never notices that the Master Log File and the Master Log Position have changed. Instead, the slave sits there waiting for new entries in the old Master Log File. I can tell this by executing a SHOW SLAVE STATUS on the slave server.

I am not sure about this because I can't find any documentation on the proper behavior of mysql during this scenario, however, I am under the impression that slave server should be able to figure this out and continue replicating, without requiring me to execute an "CHANGE MASTER..." command on the slave server every time the master is restarted. Of course, I assume this same problem will occur when the Master Log File grows to its maximum size and a new Master Log File is
created.

If anybody who has experience with mysql replication could just confirm that the behavior I am seeing is not correct, that would be great. Or if anybody has any suggestions as to what, if anything, is wrong with my setup. Code:

View Replies !
Row Cannot Be Located For Updating. Some Values Might Have Changed Since It Was Last Updated
I've recently migrated from access to mysql with vb6). Unfortunately, i get the following error whenever the .update is executed on the recordset.

"Row Cannot be located for updating. Some values might have changed since it was last updated"

The select statement is:
Select * from tablename, connection,3,3 (have also modified the 3,3, to be adOpenDynamic, adLockOptimistic)

I have tried checking the flag To Return Matching Rows, I've added the option = 2 in the connection string, i have a primary key field in the table, and I've also tried re-assigning it to itself.

View Replies !
Identify Columns Changed By Update Statement
It says in the documentation that "If you set a column to the value it currently has, MySQL notices this and does not update it." is there anyway to identify what column values have changed? i.e. what columns have been updated?

View Replies !
HostName Changed - Now MySql Server Wont Run
I've changed the hostname of my sever at long last, now what had been a very stable Mysql server won't run, can anyone point me in the right direction?

View Replies !
String Error - Quotes Changed To Question Marks
I recently converted an asp/access site to an asp/mysql site. Now all my strings are displaying funky. For example if I have the text - Why don't we say "Yipee" - it displays on my site as - Why don?t we say ?Yipee?. The same change is being made when I use a sentence with "..." in it. I like ... baseball is changed to - I like?baseball.

Any thoughts as to why this is happening? Sometimes it is actually being changed somehow in the database, and sometimes it is correct in the database, but then changed when it displays on the web.

View Replies !
Mysql Appears To Have Changed The 'password' Function Hashing
I've been using Mysql for about 6 months but in fairly basic fashion. For a cms I have built, I have a users table, with userName and password fields. An admin can create new users, and the password is hashed using the PASSWORD() function.
SQL: "INSERT INTO users VALUES ('', '$userName', PASSWORD('$userPwd'))

Straight out of the book basically. Now the problem is that all this has been functioning fine on a couple of sites on external servers, plus a couple of local machines.

Until today, on my main dev machine - yesterday a user could log in, today they couldn't. As far as I can tell, nothing has changed. But when I look at the hashes in the database table, they are 41 chrs, and when I add a new user, the hash is 16 characters.

I know that at some stage the hash length was increased between mysql versions, but I have not updated the install (I run XAMPP for Windows 1.4.14, which appears to install php 5.0.4 and mysql 4.1.12)

Is there any other reason that the hash length could change to 16? I'd like to know why this happened so that I'm prepared if it happens on the server (where it is not so easy to hack in and add new users that can log in again)

View Replies !
Special Characters :: French Characters
Sometime ago I posted a message about MySQL not dealing with characters other than the very basic set. It cannot deal with french characters such as é and à. It just ignores them and whatever is after.It seems to be a 4.2 issue, as I think they changed the way MySQL deals with character sets.I cannot resolve the problem. I cannot store characters in MySQL other that the basic set of english characters. Anyone had to cope with this issue before??

View Replies !
Restoring Database In A Changed Database
I have a database name 'rtdb1' with a table 'review_table'.

The 'review_table' has one column 'version' of varchar 20 type.

I took the mysqldump of the rtdb1 database.

Then I changed by table 'review_table' by adding one more column 'category' int type and called the database 'rtdb2'.

But when I restore my dump of 'rtdb1' database to 'rtdb2' database, I don't see the 'category' column.

View Replies !
20-30 Characters
How to make in MySQL search results displaying 20-30 characters before and after the search word so that users can see what they found (like Google or Altavista search, you know). It could be something like SUBSTRING(-30, ‘%$search%’, 30), but it does not work of course. I spent the whole day trying to make it and no results! Can you please help me with that?

View Replies !
15 Characters
Say I have "medium grey jumpsuit" as a post title, but i only want to display the first 15 characters from it. how can i do so

View Replies !
How To Add ... After # Of Characters?
Can somebody tell me how to add ... after a certain number of characaters that are pulled from a column in a MySQL database?

I've tried this but for some reason it isn't working:

LEFT('entry_excerpt', 40) as excerpt

View Replies !
ë Characters
I have a type of car in my database : Murciëlago .

I have entered this directly in the db. But I can't seem to get it out right. Can anyone tell me how to handle these things ?

View Replies !
Switching Characters
I've got a text string like a date eg 01-Jan-2001, is there a neat way
in an SQL statement to replace Jan with 01, Feb with 02 etc?

View Replies !
Characters That Must Be Escaped
Is there a definitive list of characters that must be escaped in order to
insert them into a text field in mysql.

View Replies !
Characters Escaped
Is there a definitive list of characters that must be escaped in order to
insert them into a text field in mysql?

View Replies !
Non-English Characters
My company's enterprise directory is supposed to store all data fields
in English.Before the data standards were implmented, many of the
HR systems that fed data into the ED were sending some fields with a
combination of English and non-English characters. I want to identify
records with erroneous characters so we can ask the HR systems to
re-send the correct English-only values.
So...
I've exported a list of all users in the ED into a MySQL table called
'users'.
I would like to write a query that will return all records where the
'givenname' field contains one or more characters outside of [a-z] and
[A-Z]. I know I have to use REGEXP, but I can't figure out how to
find any record where one or more non-English characters exists in the
'givenname' field.

View Replies !
Swedish Characters
I thought that working with swedish characters would be easy, but
since I'm working with MySQL 4.1 that's not the case any more.
First thing I noticed (emditly) was an application that I've written
in Qt showd rubbish in the QDataTable where there should be swedish
characters. So I took a look in the database using the 'mysql' client
app, but using this, all is good? So I made a 'mysqldump -u xx -pxx
dbname < cazzo.sql' and took a look in the .sql file, but again the
swedish characters were rubbish.

I've really tried a lot of thing to solve this. E.g. changing the
default-character-set to all kinds of values, creating new databases,
etc etc. But I just can't get it. What am I missing?

View Replies !
Foregin Characters
I was wondering if it was possible to insert foreign characters in mysql when not using the latest version that supports more characters.
I need to store information in russian, chinese, and japanese and my web hosting provider probably wont upgrade mysql for a while

View Replies !
Foreign Characters
I exported a table from access that had some foreign characters like russian for example. In the mysql db on an apache server (remote isp) the characters show up as question marks. Is there anything I can do to get the charcaters to display correctly in the database?

View Replies !
Select First 30 Characters
I've got a column named comments. How do I select the first 30 characters from the comments field?
I looked in the mysql manual but didn't find my solution.
Also, is there a way that the select result doesn't cut one of my words in half if it happens to be at the 30th position? I'm using php so maybe I'll have to select the entire field and then pull the first 30 characters??

View Replies !
Select Characters
I have a site I'm working on at APOD I currently have a little news script that selects 3 random articles out of the database. What I would like to do is limit how much text it selects from the title, because some of the titles are quite long and then the link wraps, which I would rather not do.
Is there a way for me to do this? Say if I only want to select 100 characters from the title column?

View Replies !
Multilanguage Characters
I was trying to insert utf8 data which cames from a form into a table..all the charset and collation of the target table is set to utf8. i found this solution:

PHP Code:
<?
   mysql_query("insert  table_name set field = _utf8'value'");
   //'value' came from post variable
?>
this code works.however, my concern is this the proper way to insert data to db as compared to the normal insert? (insert into table (fields) values ('values') )?

View Replies !
Max Numbers Of Characters
Is there any way to have more to store more than 255 characters in a field?

View Replies !
Outputting First 100 Characters
I am using mysql's longtext field. How can i output *only* the first 100 characters in the field? then make ".... "if there is more not showing?

View Replies !
PHP / MySQL Characters
(This is a multi-dicipline problem... I hope nobody is upset because I posted this in PHP, MySQL and XML areas)

View Replies !
Portuguese Characters
I'm having a bit of trouble with a database with Portuguese accents. On the main site, the accents show up fine - so all the content is being read from the database properly. The problem is, when you access the database using phpMyAdmin, where there are normally characters with accents there is bits of garbled text. I'm assuming that this is an issue with the character sets and/or collations? What would be the best way to fix this?

View Replies !
Special Characters
while importing CSV file, I loose information about special characters (using: phpmyadmin). All those characters are converted into ? Can someone help me with that?

If converting those symbols firstly into some numbers (for example è into 001, È into 002, etc.) and then replacing those values in the MySQL records, how can I do that with help of PHP or some other command?

View Replies !
Gibberish Characters
When I uploaded my db to 4.1, I noticed that phpMyAdmin displayed the collation as latin1_swedish_ci. I had never seen mention of collation in the previous version.
This presents a problem as characters with accents display as gibberish or chinese characters.What character set and/or collation should I use?

View Replies !
Putting 900 Characters
I have a database that will hold answers to specific class questions however some of the answers are a bit lone 900 or so characters. I am wondering if its possible to store that many characters in a mysql cell and if so what type shold the cell be I tried longtext and also longblob infact.

View Replies !
Reading UTF-8 Characters
According to phpmyadmin, my server is set to MySQL charset: UTF-8 Unicode (utf8) and the collation is utf8_general_ci. My database has the same collation, and in one table I have some Japanese characters. They enter into the table ok and can see them.
However when I connect to the database via a php page and read the values they just appear as '?????'
I have tested just using a php echo to print some japanese characters on the same page and that works fine. Thats why I think its something to do with reading the characters from the database.
Is there something obvious I am missing? I have tried googling and searching on these forums but nothing seems to work. It's quite discouraging

View Replies !
Retreive First Characters
I have a field in my database called "description" (type:longtext) and I would like to retreive the first let's say 13 characters. What wold the select query be?

View Replies !
Non-latin Characters
I am trying to store non-latin characters, basically utf8 characters in the database such as arabic, thai, etc. I have done basically everything I could and when I select the non-latin characters from the database, I get a bunch of question marks such as: ??????
I set the database default character set to utf8 when creating the database. My table collation is utf8_general_ci. I have no idea what I am doing wrong. When I pass the non-latin characters as a form value or url value, it is displayed correctly, but when I select them from the database it turns into a bunch of question marks in my app.
When I view the data from phpmyadmin, it shows some of the characters as squared boxes. Does anybody know what I am possibly doing wrong? How can I store arabic, thai, and other language text in the mysql database and select it?

View Replies !
Characters Lenght
I need to select all fields which has only 7-digits.

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved