Summary of common mysql database commands in CentOS
Mysql database usage Summary
This article mainly records some mysql commands for future query.
1. Change the root password
Mysqladmin-uroot password 'yourpassword'
2. remotely log on to the mysql
Mysqlproxy and mysql-mmm test environment for read/write Splitting: mysqlA: 192.168.128.6mastermysqlB: 192.168.128.7mastermysqlproxy + mysql-mmm: 192.168.128.5 database write operation: 192.
Mysqlproxy and mysql-mmm test environment for read/write
Starting today, I started a new field and started to learn SQL databases. Now, let's start with the basics ~~ Keep up with me. Today, let's talk about the basic database operations. In the DOS environment of MySQL, the following actions are
Mysql learning-once the installation is complete, the MySQL server should be started automatically. Sudostartmysql # Start sudostopmysql manually # Stop it manually. After you modify the configuration file, restart mysqld to make the changes take
MySQL is the preferred redundancy solution for lightweight database MySQL. The following describes how to configure the system yum in the configuration process of MySQL asynchronous master-slave replication. Here, the installation process of the
Some basic MySQL operations have recently started to learn MySQL, mainly through books, watching videos from instructor Yan 18, and then recording their learning processes through blogs.
Log on to the database
zhiniaobu@telunsu-K55VD:~$ mysql
Mysql learning-once the installation is complete, the MySQL server should be started automatically.
Sudo start mysql # start it manually
Sudo stop mysql # manually stop
After you modify the configuration file, you need to restart mysqld to make
Mysql (2) database operations bitsCN.com
Mysql (2) database operations Mysql database operations mysql-u username-p password to log on to the mysql database. 1. display the existing database command: show databases; used to display the information
MySQL server permission table prompt: the MySQL server uses the permission table to control user access to the database. The permission table is stored in the mysql database and initialized by the mysql_install_db script. These permission tables are
Mysql backup and recovery bitsCN.com
Mysql backup classification:Mysql data backup:Logical backup and physical backupMysql is classified by dataset:Full BackupIncremental BackupDifferential backupThese types are generally used in combination. for
Mysql _ syntax summary bitsCN.com
Environment: mysql 5.5
Create database test:
1 create database test;
We can execute the code to create the test Database. if you want to check whether the database test has been created, you can use the code to view
Apache: 1. Modify the banner compilation source code and modify the default banner ServerTokens ProductOnly ServerSignature Off.Find ap_release.h in the apache source code package and change # define AP_SERVER_BASEPRODUCT "Apache" to # define
1, User portrait: User information labeling.2. What can the user portrait do?--the content is being sorted out3. Show command usageShow tables shows all the examples: Show table like ' ... _pre_food ';Show partitions shows all partition examples:
Create/drop/grant/revoke Roles and PrivilegesHive Default authorization-legacy Mode has information about these DDL statements:
CREATE ROLE
GRANT ROLE
REVOKE ROLE
GRANT Privilege_type
REVOKE Privilege_type
DROP ROLE
Based on the above MySQL
Cluster To achieve complete MySQL database backup and read/write at the same time. Now we want to achieve high availability, through an IP address can access the MySQL of each node at the same time. Achieve real high
Mysql Oracle official download type exclusive seems a headache for us to choose
Download MySQL Community Server
Http://dev.mysql.com/downloads/mysql/
On this download site, select the platform "CMDL & red hat liunx 5 ".
Select installation package
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.