Command for backing up MySQL databaseMysqldump-hhostname-uusername-ppassword databasename> backupfile. SQLBack up the MySQL database in the format of a table with deletionBacking up a MySQL database is in the format of a table with deletion, so that
When using WAMP to build a local blog environment, as a newbie, the following problems occur:Forbidden You don't have permission to access/phpmyadmin/on this server.
My system:
Currently, all methods found in China are the answers adopted in the
Chapter 2 Data Types
Do not use UNSIGNED in Mysql as it may bring unexpected results.
Show create table tablename \ G; view the TABLE creation statement
ZEROFILL will automatically fill 0 when the width is smaller than the set
We
Show databasesshow tablesinformation_schema> show databases view the create database statement of the given database> show create database db_name> show tables from db_name view the create table statement of the data table of the given database>
Check whether logs are enabledMysql> show variables like 'Log _ bin ';
How to know the current log
Mysql> show master status;
Display the number of binary logs
Mysql> show master logs;
Use mysqlbinlog to view binary log filesShell> mysqlbinlog
#/Etc/init. d/mysql stop# Cd/usr/local/mysql# Mysqld_safe -- user = mysql -- skip-grant-tables -- skip-networking & // After executing this command, you can enter mysql without a password.
Then, modify the root password.
# Mysql-u root mysqlMysql>
The solution is as follows:
1. Set the compatibility level to 90 (2005 to 90)
USE [master]
GO
EXEC dbo. sp_dbcmptlevel @ dbname = 'database name', @ new_cmptlevel = 90
GO
Or select the database you want to restore, right-click it, select
I am very pleased to announce the release of Spider storage engine 3.1 Beta and vertical partition storage Engine 1.0 Beta.
Spider is the storage engine for database Splitting:Http://spiderformysql.com/Vertical Partitioning is the storage engine for
The following script uses the namp scanning tool. Therefore, if the nmap scanning tool is not installed in the system, you must first install the tool.
Script functions:
First, check whether the mysql port exists normally. If the port does not
The error message of mysql 1135 is as follows:
SQLSTATE [HY000] [1135] Can't create a new thread (errno 12); if you are not out of available memory, you can consult the manual for a possible OS-dependent bug
Solution:
Modify my. ini and add two
This article provides a detailed analysis of 30 common methods for optimizing SQL statement queries in MySQL. For more information, see
1. To optimize the query, try to avoid full table scanning. First, consider creating an index on the columns
For example, in Windows server, the SQL Server database is installed. in linux, the mysql database is installed, and the first version of the Mysql database is released on Linux.
I. mysql Introduction
MySQL is a relational database management system
Solution 1:
Encoding during mysql installation,
Check whether my. ini exists.
[mysql] default-character-set=utf8 [client] default-character-set=utf8 [mysqld] default-character-set=utf8
When creating a table:
DROP TABLE IF EXISTS `Company`;
I suddenly received an alarm from MySQL. I crashed from the database and restarted continuously. I opened the error log and found that a table was broken. If the innodb table is damaged, you cannot use repair table or other commands to repair myisam.
1. View MySQL database servers and database character sets
Show variables like '% char % ';
2. view the character sets supported by currently installed MySQL.
Show charset;
3. Set the encoding:
Modify my. cnf
Vi/etc/my. cnf
Add under
Char type
The length of the CHAR column is fixed to the length declared during table creation. The length can be any value from 0 to 255. When saving CHAR values, fill in spaces on the right of them to reach the specified length. When the CHAR value
We often encounter database backup and restoration in website data maintenance. We generally use the following two methods:
1. Use into outfile and load data infile to import and export backup data
The advantage of this method is that the exported
First, a local Mysql instance is installed, a navicat management tool is installed, and a new project is created for testing:A simple test method is to put a button, click it, read the remote image, save it to the database, and then read it and
Log on to the databaseInput in the "command prompt character" window,Enter cd C: mysqlbin and press the Enter key to switch the directory to cd C: mysqlbin.Enter the mysql-uroot-p command and press enter to prompt you to enter the password. If MYSQL
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