mysql command to execute SQL script file:Enter MySQL command line mode from cmd:Mysql>-uroot–prootpassword–ddatabasenameIf it is my local database, it will be modified as follows:Mysql>-uroot–p111111–dmy_database Execute SQL script file:Mysql>
Document reference Address: http://blog.csdn.net/u010587433/article/details/49305019Demand:Using goldengate to complete MySQL-to-MySQL data synchronization, the source library's O2M-MC library synchronizes to the GMDC library of the target library,
The MySQL data types include:
Number type (Numeric type)
Date and Time type
Type of string (string literal)
One, Number type (Numeric type)We use M to represent the maximum display width of an integer type, the maximum display
Hadoop-05-mysql Change PasswordSu Root1,service mysqld Start2,vi/var/log/mysqld.log #在这里面查找密码3, mysql-uroot-p just found the password4,service mysqld Stop5,mysqld_safe--skip-grant-tables &6,mysql-uroot-p #不需要密码就登录了;Update Mysql.user set
Method/Step
The first step
Connect the Linux system remotely to ensure that the Linux system is installed on the MySQL database. Log in to the database.
mysql -u$user -p $pwd
Step Two
Create a
1.View MySQL pathSELECT @ @basedir as BasePath from DUALIn fact, mysql5.6 data files inC:\ProgramData\MySQL\MySQL Server 5.6\data (hidden)2.Stop MySQL service3. put the database you want to import into the Data folder 4. RestartMySQL serviceAfter a
This database backup method is a simple database backup method, that is, from the MySQL data file, the database files are copied to the specified folder directory1. Create TXT file, add scriptnet stop mysqlxcopy d:\mysql\data\*.*
The slave is usually judged based on the value of the Seconds_behind_master. This is acceptable in most cases, but is not accurate enough and should be considered for more factors.View the status of slaveMysql> Show slave status\g********************
Upgrade MySQL under CentOS 6.5, upgrade from 5.1 to 5.71, back up the database, upgrade MySQL usually does not lose data, but for the sake of insurance, we need to do this step. Enter the command:Mysqldump-u xxx-h xxx-p 3306-p--all-databases >
The old version of the database Chinese garbled problem solution:Http://www.cnblogs.com/mojita/p/5347614.htmlNew version of the database Chinese garbled problem solution:The/etc directory has built a MY.CNF file (requires the highest permissions,
The current query cache correlation parameter status can be viewed from the following SQL:SHOW VARIABLES like '%query_cache% ';The output is similar to the following:Query_cache_typeThe query cache type has 0, 1, and 23 values. 0 does not use the
MySQL database is a widely used relational database, its small size, multi-processor support, open source and free features make it in the Internet small and medium-sized web site usage is particularly high. In the process of using MySQL, irregular
#链接数据库Mysql-h 192.168.101.148-u Root-p#允许远程链接Mysql> GRANT All privileges on * * to ' root ' @ '% ' identified by ' 123456 ' with GRANT OPTION;After the operation, remember to perform the following command refresh permissionsFLUSH
Input command Note:1 command ending sign semicolon;2 All the symbols are English half-width3 only if you encounter a semicolon MySQL will think of the end4 multiple commands separated by semicolonsViewing order: 1 View data show databases=>2 Enter
MySQL database has a variety of installation methods, this article only describes the most practical and fastest MySQL server installation method on Linux servers.one, Linux server yum installation (CentOS6.3 64-bit)All commands executed on the
Method 1:1. Stop the MySQL service# Kill ' Cat/var/run/mysqld/mysqld.pid 'Or# Pkill Mysqld2. Create a text file for a password assignment statement# VI Mysql-initALTER USER ' root ' @ ' localhost ' identifiedby ' mynewpass!6 ';Resets the password
1. The user changes the password;Method One: Mysqladmin-u user-p password password ' new password 'Mysqladmin-uroot-pdefault password ' zhouli.cn 'Method Two: Set Password=password ("New_password");Mysql> set Password=password ("Default");Method
DB version: 5.7.17Description of the problem: the mysqldump logical repository is believed to be very common in all of us, with the following general practice:1, on the Source library mysqldump--single-transaction--master-data=2-a ... >xxx.sql2.
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