Jump to content

Setting MySQL system variables?


random1

Recommended Posts

Hi All,

 

I'm trying to get MySQL all using utf8 only.

 

Screen:

 

screenhm4.th.jpg

 

How can I set the system variables to stay persistant?

 

I have tried "character_set_server = utf8" in the my.conf file with no affect.

 

I have tried "SET session character_set_server = 'UTF8'" in an SQL query with no affect.

 

Thanks in advance.

Link to comment
https://forums.phpfreaks.com/topic/110914-setting-mysql-system-variables/
Share on other sites

I tried setting it up in my.conf:

 

1screenyl3.th.jpg

 

Still no affect, not even temporary.

 

I tried it in SQL as well:

 

SET character_set_server = 'utf8'

#SHOW VARIABLES

 

This works for the current session but once mysql is restarted it changes back.

 

Any persistant way of doing this?

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.