Last night was good. An error was reported early this morning, which is annoying.
[Root @ chinahealthreformmodel/] # ps-A | grep MySQL
9582 pts/1 00:00:00 mysqld_safe9693 pts/1 00:00:00 mysqld[Root @ chinahealthreformmodel/] # Kill-9 9582[Root @
1. Set phpMyAdminLanguage: Chinese Simplified (zh-utf-8)MySQL Character Set: UTF-8 Unicode (utf8)MySQL connection verification gbk_chinese_ci
2. When creating a databaseSet it to gbk_chinese_ci.
3. Create a table using SQLEngine = MyISAM default
MySQL connector/C ++ calls the Stored Procedure
(Jinqing's column)
From:Http://dev.mysql.com/doc/refman/5.6/en/connector-cpp-tutorials-stored-routines-statements.html
Create procedure Test (in country_code char (3), Out country_pop int (11
Mysql itself does not support dynamic cursors, but it can be achieved through (Prepared statements + views + static cursors) methods.
A simple example:
-- Create a test table and data create table webuser (username varchar (10); insert into webuser
InOracleMedium,SequenceMultiple tables and multiple fields can share one unique value.MySQLThe auto-incrementing Column exists, which can basically meetPK. However, the auto-increment column has restrictions:
A.It can only be used for one field in
Show variables like '% character %' After logging on to mysql by default in LinuxMysql> show variables like '% character % ';------------------------------------------------------| Variable_name | Value |Modify/etc/mysql/my. cnfAdd default-character-
Before reading this, make sure that you have correctly loaded the PDO extension. Edit php. ini.
Manually add the two rows (no semicolon before ;):Extension = php_pdo.dllExtension = php_pdo_mysql.dllThen, set extension_dirPoint to the directory where
I accidentally deleted the root user of mysql and found a lot of solutions on the Internet. Due to the large number of mysql databases and the trouble of reinstalling them, I have been trying various methods, finally, it succeeded. The procedure is
INSERT multiple records using a single INSERT statement. LAST_INSERT_ID only returns the value of the first inserted record. For example:
1. mysql> insert into t VALUES (NULL, 'aaa'), (NULL, 'bbbbbb'), (NULL, 'cccccc ');2. mysql> SELECT * FROM t;3. +
Fedora16 mysql
ServerStart
16:32:50 | category:Linux/Unix | font sizeSubscription
From Fedora16, ntsysv, chkconfig, and service are no longer recommended for Redhat, but new service management tools are recommended.Systemctl (seemingly powerful)
How to modify the default Character Set of mysql
From: http://database.51cto.com/art/201010/229167.htm
Can the default mysql Character Set be modified? The answer is yes. Here are two ways to modify the default Character Set of mysql. I hope you
Delete Anonymous UsersAfter MySQL is installed, a user with a blank username and password exists. This makes it possible for the database server to be logged on without a password. Delete anonymous users to eliminate potential risks. [Root @ sample ~
By searching for materials on the network and trying on your own, I think the following system parameters are critical:
(1) back_log:
The number of connections that MySQL can have. When the main MySQL thread receives a lot of connection requests in
I read the mysql system again these days, so I can learn more about it ......
1. Differences between char and varchar types
A char fixed length string is the length declared when the table is created (0-255). If the length is insufficient, spaces
By default, mysql cannot correctly display Chinese characters.
Enter the mysql command: show variables like 'character _ set _ % ';
View Character Set settings
+ -------------------------- + ---------------------------- +| Variable_name | Value |+ --
The program:
MyFirstTestInPhpLinkMySql o (-) _ (-) o, my php code is connected to MySql for the first time sorry, no record found! ";} else {$ fieldno = mysql_num_fields ($ result); $ tbname = mysql_field_table ($ result, 0);
How can I view MySQL user permissions? The following describes how to view MySQL user permissions and the statements that grant MySQL user permissions for your reference.
View MySQL user permissions:
Show grants for your users
For example:Show
_mysql.c:35:23: fatal error: my_config.h: No such file or directorycompilation terminated.error: command 'gcc' failed with exit status 1The complete error message is as below[root@localhost MySQL-python-1.2.2]# python setup.py buildrunning
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service