1. Go to MySQL and create a new user root with the password root.:
Format: grant permission on database name. Table name to user @ login host identified by "User Password ";Grant select, update, insert, delete on *. * To root@192.168.1.12
I checked the information online. The following two sentences are backup and restoration.
Mysqldump.exe-H 152.152.152.32-u root-p123456 tsingtest> C: \ 123. SQL Database Export
Mysqldump.exe-H 152.152.152.32-u root-p123456 tsingtest
However,
Install my search results online
Run
Code: Sudo gedit/etc/MySQL/My. CNF
Set the default encoding to utf8.Code:[Client]Port = 3306Socket =/var/run/mysqld. Sock# The default character set is utf8.Default-character-set = utf8Code:[Mysqld]## * Basic
1. edit/etc/My. CNF file, add "default-character-set = utf8" under "[client]" 2. edit/etc/My. CNF file, add "default-character-set = utf8" under "[mysqld]" 3. restart MySQL service # sudo/etc/init. d/mysqld restart * view the system character
Enable MySQL to write logs
Edit my. ini
[Mysqld]
Log
Use Limit Paging for MySQL
Select * From tablename limit offset, rowcount, and offset start from 0. rowcount is the number of returned results.
Forgot password
1. Use the task manager to
(Note: The following addresses can only be downloaded using thunder. The following content is for reference only and there is no security configuration information)========================================================== ===========================
MySQL 5.1 Reference Manual
MySQL knowledge collected by someone========================================================== ==============
Commands for starting and stopping MySQL servicesMySQL Installation Error"No services installed" | apache
1. Install with yum
Yum install mysql-Server# Yum-y install PHP-MySQL
2. Change the password
Vim/etc/My. CNF[Mysqld]Add the following here: Set the default value to utf8.Default-character-set = utf8
Add the following statement at the end of
Add or modify the following in my. CNF:Code:[Client]Default-character-set = utf8[Mysqld]Default-character-set = utf8
We recommend that the encoding on the webpage be consistent with the encoding on the database. If both are utf8, set them to utf8.
If your server is Windows XP/2000/2003/NT, you can use this method to retrieve the lost MySQL super administrator root password.
1. Stop mysql. Open the DOS window in cmd and enter net stop MySQL.
2. In the CMD command line window, enter the
Copy the file from .tar.gz to the/home/software/Apache-activemq directory and run the following command:
# Cd/home/software/Apache-activemq
# Tar zxvf apache-activemq-5.5.0-bin .tar.gz
# Cp-A apache-activemq-5.5.0/usr/local/activemq
# Cd/
I. MySQL index type
MySQL currently only supports four types of indexes: Full-text, B-tree, hash, and R-tree.
B-tree indexes should be the most extensive indexes in MySQL, except for archive, which is supported by almost all storage engines.
1
MySQL has three types of columns: Numbers, strings, and dates.
Numeric column type
The number column type is used to store various numeric data, such as price, age, or quantity. There are two types of numeric columns: integer and floating point. All
The company's Nagios monitoring server has been issuing ctritical alarms for MySQL databases on the Intranet for a long time, because I have activated the text message alarms of other colleagues, so my colleagues in the entire system group
Yesterday, I want to import a MB SQL file to the MySQL database. Because phpmyadmin supports a maximum of 8 Mb, IE will stop responding if the file is too large, so I used the following command as before:
Code
Code highlighting produced by
MySQL common error messages and Solutions
130: the file format is incorrect. (The error is not clear yet)
145: the file cannot be opened.
1005: An error occurred while creating the table.
1006: An error occurred while creating the database.
1007:
Solutions to errors during mysql addition, deletion, modification, and query
Information 1: Error: Access denied for user: 'linanma @ localhost' (Using password: YES)Error Analysis: This is one of the common problems for new users to install
Methods for changing the root password of MySQL
I accidentally typed the password when setting up a mysql database today, but it was not the one I wanted. The following method is obtained when multiple
Three MySQL installation methods:
1. install sudo apt-get install mysql-server from the Internet
Note: We recommend that you change cn in/etc/apt/source. list to us. The servers in the United States are much faster than those in China. Modify the
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