When we are ready to back up or maintain data, we often consider the size of disk space, and usually need to know how large our data and logs are. Data is vital and the data is the lifeline.
Use the Mysqldiskusage tool to view the space used by the
This error occurs if you want to connect to your MySQL:
ERROR 1130:host ' 172.21.200.35 ' isn't allowed to connect to this MySQL server
Workaround:
1, Change Table method. Your account may not be allowed to log in remotely, only in localhost.
Today in the processing of a movie site data, need to change part of the content, because this site has too many movies, a piece of processing is very difficult, so want to start from a part of the analysis, and then use to limit. At this time the
Technical points
A stored procedure includes a name, a list of arguments, and a set of SQL statements that can include many SQL statements. The following is the process of defining a stored procedure:CREATE PROCEDURE Proc_name (in parameter integer)
MySQL login and set password under Linux (this article is based on centos6.4, mysql5.7.3), MySQL installed in the/usr/local/mysql directory:
[Root@lnmp ~]#/usr/local/mysql/bin/mysqladmin-uroot password ' admin123 ' #修改mysql密码为admin123[Root@lnmp ~]#/
View users, databases at the command line:
mysql> Use GBK #进入gbk数据库Database changedMysql> Show tables; #查看gbk数据库的所有表Empty Set (0.00 sec)
mysql> use Ultrax;Reading table information for completion of table and column namesYou can turn off the
When you use PHP to insert large data into MySQL, you encounter a problem:
2006:mysql server has gone away:: INSERT into Hu Jintao
After looking, knowing the reason, is that MySQL's max_allowed_packet value is set too small or not set, this
Recently, encountered the MySQL master and slave library synchronization problem, mainly because the computer broke a bit of electricity, toss AH.Error from library log: Last_io_error:got fatal error 1236 from master, reading data from binary log: '
To prevent users from inserting from the library, use the Read-only parameter:
Configuration:
[Root@slave-mysql data]# grep read-only/etc/my.cnfread-only
Test process:
Master Library Licensing All
Mysql> Grant all on *.* to ' imbyrd ' @ '
Default login after MySQL show variables like '%character% ', appeared
MySQL "Show variables like '%character% ';
+--------------------------+----------------------------+
| variable_name | Value |
+--------------------------+--------------------
Free 5g/20g/php Tutorials/mysql Tutorials/ftp/have ad spaceDescription1, 5gbfree.com free space using Layeredpanel Control Panel, the use of more restrictions.2, 5gbfree.com free space page at the bottom of the mandatory advertising.
Cpanel (TM):
ASCII (STR)Returns the ASCII code value of the leftmost character of the string str. If Str is an empty string, returns 0. If STR is NULL, returns NULL.
MySQL Tutorial > select ASCII (' 2 ');
-> 50
Mysql> Select ASCII (2);
-> 50
Mysql>
Some methods for dealing with garbled problems in MySQL tutorial1 Set up PHP tutorials MyAdmin
Language:chinese Simplified (zh-utf-8)
MySQL Character set: Utf-8 Unicode (UTF8)
MySQL Connection proofing: gbk_chinese_ci
2 when creating a
1: Download: The current mysql version has reached 5.6.12Download Address: http://dev.mysql.com/downloads/mysql/Select "Source Code" and find a (mysql-5.6.12.tar.gz) at the bottom to Download wget.2: necessary software packages The code is as
Problem:The database may be garbled due to MySQL encoding.Solution:Modify the MySQL database character encoding to a UTF-8 that contains the characters needed by all countries around the world and is an international code.Specific operations:1. Log
Sometimes you run show processlist in mysql, and then you will find that there are many such processes in the database:There are three reasons for sleep:1. Before the client program exits, it does not call mysql_close (). [write program negligence,
[What is mysql]A brief description is a database software.[Download]Download the community version source code on the mysql official website. Download the command:Wget http://dev.mysql.com/get/Downloads/MySQL-5.6/mysql-5.6.22.tar.gz[Resolve package
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