1, after decompression, in mysql the directory found my-default.ini , and copied namedmy.ini2, set the character set encoding, add the following lines of code, this configuration must be set in the new configuration file my.ini , otherwise it will
Always in the leak out of the bug, only to find that they do not know the depth of knowledge. There are two table structures drop table if EXISTS A; CREATE TABLE A ( ID int (1) not NULL, PRIMARY KEY (ID)) Engine=myisam DEFAULT Charset=utf8;
Use the tools, MySql5.0 and graphical tools Navacat.1. Change the configuration in the My.ini in the MySQL system file first as soon as you install it.
[mysql]
default-character-set=gbk #默认是latin1,把他改成了gbk。
2. The
Commands to back up the MySQL database- - - > backupfile.sqlBacking up the MySQL database to a format with a delete tableBacking up the MySQL database is a format with a delete table that allows the backup to overwrite the existing database without
This article describes the use of QT 4.8.2 to connect to the MySQL (Ver 14.14 distrib 5.5.43) database under Ubuntu12.04 (+ bit).1. Install Qt and MySQLIf the above software is not installed, refer to my blog installation.
Install qt:ubuntu1
REDHAT YUM Install MySQL1. install Mysql-server to automatically resolve dependenciesYum Install Mysql-server2. start MySQLService mysqld Start3. Check if MySQL is started ,3306 PortNetstat–tnlp4. directly connected to theMysql5. Set the
Not connected to MySQL, start the mysqld process, found to be able to start successfully, but a few seconds later the process shut down, and later found the main reason is because the disk space is full.Error: Can ' t connect to local MySQL server
What is MySQL's information_schema database and what does it do?When you install or use MySQL, you will find a INFORMATION_SCHEMA database in addition to the database you have installed. Information_schema database is what to do with it, using
Environment Introduction:CentOS 6.5MySQL 5.5.40Hardware: 4-core, 4GBReference Links:Http://dev.mysql.com/doc/refman/5.5/en/insert-speed.htmlHttp://dev.mysql.com/doc/refman/5.5/en/server-system-variables.htmlDue to the rapid expansion of business
Add new usersFormat: Grant permissions on database. * To User name @ login host identified by "password"For example, add a user user1 password to Password1, so that it can log on to the computer, and all databases have query, insert, modify, delete
This article is from the "System network operation and Maintenance" blog, please be sure to keep this source http://369369.blog.51cto.com/319630/790921How to install MySQL database, do not say here, just say its master-slave copy, the steps are as
How to view the physical file storage location of the MySql database
I want to export the database file in mysql, but I cannot find it. I say there is a path in the configuration file on the Internet, but I open my configuration file and all the
Mysql explores notnull constraints and null values
Yesterday, a front-end developer suddenly asked me a basic question: "My table columns have the not null constraint. Why can I insert null values? What's more strange is that you can insert null
Usage of the BETWEEN clause in MySQL
The IN clause can be used to replace the combined conditions of "greater than or equal to" and "less than or equal.
The EMPLOYEE_TBL table considered by the BETWEEN clause has the following records:
mysql> SELECT
MySQL max () function usage tutorial, mysqlmax
MySQL's max () function is used to find the maximum value record in a record set.
The EMPLOYEE_TBL table considering the MAX function has the following records:
mysql> SELECT * FROM employee_tbl;+------+
MySQL SUM function usage tutorial, mysqlsum usage tutorial
The SUM function of MySQL is used to find the SUM of various fields in the record.
To understand the SUM function, consider that the EMPLOYEE_TBL table has the following records:
mysql>
Mysql innodb engine's shared and independent tablespaces
For innodb data storage files, we must first solve two conceptual problems: Shared tablespace and exclusive tablespace. (The innodb engine and MYISAM engine are very different. In particular,
MySQLDATE_FORMAT () functionDefinition and usage
The DATE_FORMAT () function is used to display date/time data in different formats.Syntax
DATE_FORMAT(date,format)
DateThe parameter is a valid date.FormatSpecifies the output format of the date/time.
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.