How to change collation of a mysql table which is created on MYSQL 4.1.22 ?
I used following query
ALTER DATABASE `testdb` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci
ALTER TABLE `testtab` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci
It displaying following error messages
****Error
SQL query:
ALTER DATABASE testdb DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci
MySQL said: Documentation
1064 - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci' at line 1
Error
SQL query:
ALTER TABLE testtab DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci
MySQL said: Documentation
1064 - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci' at line 1
****
2
Contributors
1
Reply
3 Hours
Discussion Span
5 Months Ago
Last Updated
2
Views
Related Article:Join Query Broken Between MySQL Versions
is a solved MySQL discussion thread by reinere that has 5 replies, was last updated 1 year ago and has been tagged with the keywords: joins, mysql, mysqlquery, versions.