view mysql default encoding format
show variables like “character%”; If the reality-bash: show: command not found Description does not log in mysql database, The login result needs to be as shown below:
View mysql default encoding
Modify my.cnf file
directory is /etc/my.cnf if there is no my.cnf file in the system You need to create this file. For details, see the step <Find the file ending with .cnf>. If it exists, skip the step <Find the file ending with .cnf>, go directly to the step <Edit my.cnf File>
Find the file ending with .cnf
Command find /-iname *.cnf -print result as shown in the figure:
Find the file ending with .cnf will search result set /usr/share Copy any file in the /mysql directory to the /etc/directory. Command: cp /usr/share/mysql/my-large.cnf /etc/my.cnf
Edit my.cnf file
Command: vi /etc/my,cnf under the [client] add default-character-set=utf8 under [ mysqld ] add character_set_server=utf8init _connect=’SET NAMES utf8′ (or SET NAMES & lsquo;utf8′) Online said to add default-character-set=utf8 under [mysql] I tested it is not possible, because mysqld does not recognize it, so I changed Become character_set_server=utf8
restart mysql
service mysql restart
Linux environment description
1, if you just need to install mysql, then you only need to install the following file MySQL-server-5.5 .25-1.rhel5MySQL-devel-5.5.25-1.rhel5MySQL-client-5.5.25-1.rhel52, if you need to build Linux implementation environment (nginx, php, mysql, tomcat, jdk, server multi-domain configuration Please refer to my Linux project implementation series tutorial
:CenterOS 6.3 64-bit build nginx1.3+php5.4.3+mysql5.5.25+tomcat7+jdk7 installation
For systems on the Internet, it is important to be clear about the situation: the network is not se
Problem Description Solution Reasons for analysis, maybe because my platform migr
With the advantage of strong stability, embedded DVR is increasingly accepted by the security indust
A public IP is a public address that is assigned by InterNIC and consists of a class-based network I
Detailed process for opening Telnet service on Linux system
Self-made Linux Pinyin Wubi input method
Two "BBC" recovery corrupted Linux systems
Linux modify user group method
VirtualBox installation configuration and new virtual machine
Linux dual network card dual gateway settings for different IP segments
Visudo precise user empowerment (sudo)
Using Nginx as both a web cache server and load balancing
The linux packet capture command
OpenIPMP test environment installation basic tutorial under Windows
After connecting to VPN under Windows 8, the display shows limited
Can the Windows 10 upgrade appointment be cancelled?
WinXP system verification code does not show how to solve?
What if the computer sound is too small
Switching the input method under Windows8 is only for a separate window.
Settings to make the computer safely shut down?
Win8 dedicated to the fans of the news subscription application