question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

feature: config table default charset

See original GitHub issue

typeorm gen create scripts like this default —>

CREATE TABLE `swagger_cache` (
  `id` varchar(255) NOT NULL,
  `projectId` varchar(255) NOT NULL,
  `key` varchar(255) DEFAULT NULL,
  `url` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1

i want this —>

CREATE TABLE `swagger_cache` (
  `id` varchar(255) NOT NULL,
  `projectId` varchar(255) NOT NULL,
  `key` varchar(255) DEFAULT NULL,
  `url` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8

table charset utf8

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11 (1 by maintainers)

github_iconTop GitHub Comments

10reactions
TakanashiOukencommented, Sep 6, 2018

Does charset:"utf8mb4", really works? I still get latin1

4reactions
zcharymcommented, Oct 28, 2020

If all answers above don’t help, you can change the database manually by doing:

ALTER DATABASE dbname CHARACTER SET utf8 COLLATE utf8_general_ci;

ALTER TABLE tbl_name CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;

link: How to convert an entire MySQL database characterset and collation to UTF-8?

Read more comments on GitHub >

github_iconTop Results From Across the Web

10.5 Configuring Application Character Set and Collation
Specify character settings per database. To create a database such that its tables use a given default character set and collation for data...
Read more >
How to change the default charset of a MySQL table?
If you want to change the table default character set and all character columns to a new character set, use a statement like...
Read more >
Setting Character Sets and Collations - MariaDB
In MariaDB, the default character set is latin1, and the default collation is latin1_swedish_ci (however this may differ in some distros, see for...
Read more >
3.3 Determining the Default Character Set and Collation
There are default settings for character sets and collations at four levels: server, database, table, and connection.
Read more >
Make default charset and collation for new tables configurable
to be able to store 4 byte unicode characters we need to set database to utf8mb4. since typo3 8 there is a configuration...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found