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
If MySQL is running, killall-term mysqld is first killed.
Start MYSQL: Bin/safe_mysqld -- skip-grant-tables &
You can access MySQL without a password.
Then
> Use MySQL> Update user SET Password = PASSWORD ("new_pass") where user = "root ";>
Character Set error SolutionProblems:Mysql> update users-> Set username = 'guan Yu'-> Where userid = 2;ERROR 1366 (HY000): Incorrect string value: '/xB9/xD8/xD3/xF0' for column 'usernAme' at row 1An error occurred while inserting Chinese characters
First, open cmd and find your mysql installation location, so that you can enter the mysql Command Program folder.
Then export the database
Mysqldump is a built-in mysql tool.-uroot (database connection username)-P3306 (p is capital, followed by
The following describes how to install and configure nginx + MySQL + PHP-FPM:
1. Change source, update:
# rpm -Uvh http://centos.alt.ru/repository/centos/6/i386/centalt-release-6-1.noarch.rpm# yum update
2. Install nginx + MySQL + PHP-FPM:
# yum
Method 1:
Log on to the MySQL Server using the MySQL Adminstrator GUI Tool, but the Server returns the error message Host '60-248-32-13.hinet-ip.hinet.net 'is not allowed to connect to this
MySQL server
This is because of permission issues. The
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
MySQL variable usage Summary
Learning set statements:
Use select to define user VariablesChange the following statement to select:Set @ Var = (select sum (amount) from penalties );My modifications:Select @ var: = (select sum (amount) from penalties )
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-
In Soundbreak, we play live audio and video continuously 24 hours a day, so we cannot make a convincing test of the new replication feature of MySQL. Through tests, we found that this feature can be used to maintain data synchronization with the
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 ~
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