MySQL -2- Architecture - a small note Essays

Introduction and installation
NoSQL
the RDBMS
version
installation
binary installation source installation
architecture
CS model
TCP / IP
socket
MySQL Master the Thread
instance
mysqld program constitutes
link layer protocol, authentication, link-threaded
SQL layer syntax and semantics, permissions, parsing, optimization, execution, log
storage engine layer: accessing disk data

Logical structure: databases, tables, attributes, character set and collation
tables: show fields, records, metadata
physical storage structure
library: is a directory
table: MyISAM, FRM, MYD, MYI
InnoDB: FRM IBD
InnoDB storage engine table
section District page
MySQL basic management
user rights

create user oldboy@'10.0.0.%' identified by '123';
drop user oldboy@'10.0.0.%' ';
alter user oldboy@'10.0.0.%' identified by '123
select user,host from mysql.user;

grant all on *.* to root@'10.0.0.%';
revoke drop,delete,insert,update from root@'10.0.0.%';
show grants for root@'10.0.0.%';

Use socket mode you forget your password to log modify parameters --root
--skip-Grant-the Tables
--skip-Networking

mysql -uroot -p -S /tmp/mysql.sock socket chaining
mysql -uroot -p -h192.168.16.174 -P3306 tcp / IP link mode
-P must be used with -h
-e parameters: free interactive use databases, such as:
MySQL -uroot--p123 -e "SELECT User, Host FOM the mysql.user;"

<Script data import
mysql -uroot -p <word.sql;

启动方式
service mysqld start --> ./mysql.server start -->mysqld_safe
./bin/mysqld_safe & --> mysqld_safe --> mysqld
systemd :systemctl start mysqld

mysql --skip-grant-tables --skip-networking

Initial Configuration: pre-compiled, configuration files, command line
functions: control of MySQL start,
the configuration file: /etc/my.conf
command line: limited to mysqld_safe and mysqld, use temporary maintenance

Initialization profile:
initial configuration file order, to duplicate the last subject
mysqld --help --verbose | grep my.cnf
except specified:
--default-File = / etc / the my.cnf

Guess you like

Origin www.cnblogs.com/moox/p/11240116.html