DB Error: Unknown ErrorDB_Error Object
db error: unknown errordb_error object
db, error, unknown, errordb, error, object
DB Error: Unknown ErrorDB_Error Object
Post Description: db error: unknown errordb_error object
POST# 1327
Posted On: Sat Apr 26, 2008 1:46 pm
tufat com
Topic: DB Error: Unknown ErrorDB_Error Object
can you help me with this error i get i just installed easysite scrip that im trying out but i get this error

DB Error: unknown errorDB_Error Object
(
[error_message_prefix] =>
[error_prepend] =>
[error_append] =>
[mode] => 16
[level] => 1024
[code] => -1
[message] => DB Error: unknown error
[debuginfo] =>
[userinfo] => select *, if(id in (null), concat(title, '[shared]'), title) as title from es__layers where (site_key = 'default' or id in (null)) and ( restrict_to = '0' or restrict_to = '' or restrict_to like '%%' or restrict_to='' ) order by id desc [nativecode=Illegal mix of collations (utf8_general_ci,IMPLICIT) and (latin1_swedish_ci,COERCIBLE) for operation 'concat']
[callback] => errhndl
)


what can i do
Share:
BBCODE:
HTML Code:


Sat Apr 26, 2008 1:47 pm
1
Web Hosting Support
Reply #2005
i remember this error. basically you are getting it because the Collation is setup incorrectly. you need to change it to UTF-8
Sat Apr 26, 2008 2:08 pm
2
tufat com
Reply #2006
Picture 26--mysql-export.jpg
ok i followed what you told me

this is how i fixed it

i logged into my phpmyadmin then i click on the EXPORT link at the top
Sat Apr 26, 2008 2:11 pm
3
tufat com
Reply #2007
Picture 26--mysql-export-options.jpg
then i checked these:

Structure:
Add AUTO_INCREMENT value
Enclose table and field names with backquotes

Data:
Use hexadecimal for binary fields

and exported the data, you can either exported to a file or you can copy and paste.
Sat Apr 26, 2008 2:13 pm
4
tufat com
Reply #2008
Picture 26--mysql-notepad-replace.jpg
i copy and paste into a blank notepad then i replaced these (control H)

Find what: CHARSET=utf8

Replace with: CHARSET=latin1
Sat Apr 26, 2008 2:17 pm
5
tufat com
Reply #2009
Picture 26--mysql-checkall.jpg
then i went back to my database and i have to delete all the tables so i click on CHECK ALL and select DROP from the drop down menu of choices

and i click YES to delete all
Sat Apr 26, 2008 2:22 pm
6
tufat com
Reply #2010
Picture 26--mysql-sql-link.jpg
now that my datbase is empty i can just import (or dump) my new database with the new charset so click on the SQL button or link at the top of your page and copy and paste all the information from your notepad into the text area and click go

thats it

now when you go back to you easysite page, you will not see your error but instead you will see the default page

What do you think?

* name:  

* email:  

* Please enter comments:


Receive Replies on my Comments
(An email will be sent to you when someone replies to your comments)

Add image to comments
yes no             upload
     
  1. DB Error: Unknown ErrorDB_Error Object