Jump to content
php.lv forumi

utf8_latvian_ci izmēģināts pilnīgi viss, garumzīmju nav.


brekulis
 Share

Recommended Posts

Iečeko /etc/mysql/my.cnf

 

Pamēģini salikt kaut ko tādu:

 

[client]
default-character-set=utf8
 
[mysqld]
collation-server = utf8_unicode_ci
init-connect='SET NAMES utf8'
character-set-server = utf8

 

//Te iespējams jārestartē mysql.

 

Pēc tam ar mysql cli (terminālī "mysql -u root -p" un blā blā blā) uztaisi jaunu datubāzi ar

create database viens;

Tālāk vari pārbaudīt šādi:

 

create table viens.test (field1 int, field2 varchar(32));
insert into viens.test (field1, field2) values (0, 'Jānim ir garumzīmes');
select * from viens.test;
Edited by Pats Toms
Link to comment
Share on other sites

  • Replies 32
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

. Un nekāds PHPMyAdmin nav jāinstalē.

Kopš kura laika viņš ir jāinstalē?

nokopē -> atzipo un lieto ... vismaz pēdējās versijas ..

un defoltā, viņš ir UTF-8 , piedevām DB principā ir vienalga kādā kodējumā tur tos datus tur glabā ...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share


×
×
  • Create New...