A recent project needs to be implemented in a MySQL single table with multiple keyword fuzzy queries, but these keywords do not necessarily all exist in a field. For example, the existing table, which has title,tag,description three fields, records
1, view the mysqld (/var/log/mysqld.log) log and discover the following error:
InnoDB:Error:log File/usr/local/mysql/data/ib_logfile0 is of different size 05242880 bytesInnodb:than specified in the. cnf file 0 104857600 bytes!030826 1:42:15 Can ' t
Today, when testing MySQL sync, check the database to find a MySQL slave not synchronized with the host to view the status of slave:
Mysql> Show Slave Status\g
Slave_io_running:yes
Slave_sql_running:no
last_errno:1062
....
Seconds_behind_master:null
If it is a Windows system, then the default local character set of the system is gb2312, and in order for the datasheet to use the gb2312 character set, we write the SQL statement that creates the datasheet:
Copy Code code as follows:
If you can not import the export between different databases, then it will be a terrible thing, fortunately, in general, through different methods and ways, can be achieved, there are a variety of methods, I provide one of them, to provide a way to
First, the preparation before installation
1, download the installation package, can be downloaded to the official MySQL website www.mysql.com, as shown in Figure 1-1:
Figure 1-1
The downloaded installation files are shown in Figure 1-2:
below to introduce the MySQL database introduction, details as follows:
Mysql
Database:
Oracle, DB2, SQL Server, MySQL, Access, Mangodb, bigtable
relational database
Large
Oracle, DB2
Medium - sized
SQL Server, MySQL
Small
Access
Encountered such errors as: "Last_io_error:got fatal error 1236 from master when reading the data from binary log: ' Could ' is not find ' e name in binary log index file ' ", etc. or due to the clearing of data caused the master and slave library
If there is an association between the two tables, are you still using the primary key to correlate?For example, now there are 2 tables, a news column, a news sheet, now two tables need to be related, I think most people's approach is definitely to
1. View Index
(1) The Unit is GB
SELECT CONCAT ROUND (SUM (index_length)/(1024*1024*1024), 2), ' GB ') as ' total index Size ' from INFORMATION_SCHEMA. TABLES WHERE table_schema like ' database ';
+------------------+
| Total Index Size |
+--------
How do I change the MySQL root admin password at the win2k command prompt?>mysql-u root-p
Enter Password: Hu Jintao
mysql> use MySQL;
mysql> Update user Set Password=password (' New_password ') where user= ' root ';
In this way, you can modify the
--Renaming tables
Rename table T_softwareport to Software_port;
--Establish a foreign key
ALTER TABLE Software_port add constraint fk_software_port_softwareprocessid foreign key (SOFTWAREPROCESSID) references Software_process (ID) on the
1. How to discard the command you are entering.
Typing errors are unavoidable when you enter a longer command. In this case, discarding the command you are entering will often be a better choice.
This is easy to do in the MySQL program: no matter
1. Add default-character-set=gb2312 to the [client] item in the My.ini under the MySQL installation directory
[Client]
default-character-set=gb2312
port=3306
2. Copy the My.ini to the C packing directory and change the name to MY.CNF
3. When
This article describes the MySQL performance bottleneck to troubleshoot the location of the method. Share to everyone for your reference, specific as follows:
Guide
Speaking from a site, the whole process to resolve how to locate performance
Let's take a look at the table structure before deleting: Mysql> select * from test;+------+--------+----------------------------------+------------+------------+------------+------------+| t_id | T_name | T_password | T_birth | Birth | Birth1 |
Installation Environment Requirements:
Since the installation of MySQL 5.7 Yesterday, found a problem, mysql5.6, has not supported the 2003 system, if installed can not open the service and will appear on the local computer can not start the MySQL57
6. Bbsd and cq66 server-side transformation
In Bbsd, the module on the user should be better modified, as long as it will be written. The operation of the passwd file is changed to
You can manipulate the member functions of the Usermanage class of
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