一、mysql的原理
二、mysql单机版安装
服务的配置:
/etc/profile系统环境变量,这个是用来配置在全局的时候找到制定的路径的配置
配置完成之后,要用source /etc/profile命令来进行配置生效
服务自启动配置:
/etc/init.d或/etc/rc.d/init.d(这两个是一个目录,其中/etc/init.d是一个链接,指向/etc/rc.d/init.d)
这个文件是服务器启动的时候启动的服务
mysql的配置:
my.cnf这个是mysql的配置文件
三、mysql的用户管理和远程链接管理
在mysql的安装过程中有一个系统的默认数据库mysql
mysql的安装默认数据库
information_schema |
mysql |用户的配置的数据库,用户和权限的数据库
performance_schema |
test |这是一个默认的数据库,其中是一个空的数据库,可以删除
mysql数据库中所有的表和各表的作用:
columns_priv |
db |用来规定某一个用户对一个数据库的权限
event |
func |
general_log |
help_category |
help_keyword |
help_relation |
help_topic |
innodb_index_stats |
innodb_table_stats |
ndb_binlog_index |
plugin |
proc |
procs_priv |
proxies_priv |
servers |
slave_master_info |
slave_relay_log_info |
slave_worker_info |
slow_log |
tables_priv |
time_zone |
time_zone_leap_second |
time_zone_name |
time_zone_transition |
time_zone_transition_type |
user |
user表
用户字段
Host//主机名,如果想要从别的机器来登入数据库,Host可以设成 %
User//用户名
Password//密码
权限字段
Select_priv
Insert_priv
Update_priv
Delete_priv
Create_priv
Drop_priv
Reload_priv
Shutdown_priv//是否有停止mysql服务的权限
Process_priv
File_priv
Grant_priv//是否有Grant权限
References_priv
Index_priv
Alter_priv
Show_db_priv
Super_priv//是否有超级权限
Create_tmp_table_priv
Lock_tables_priv
Execute_priv//是否有执行存储过程和函数的权限
Repl_slave_priv
Repl_client_priv
Create_view_priv
Show_view_priv
Create_routine_priv
Alter_routine_priv
Create_user_priv
Event_priv
Trigger_priv
Create_tablespace_priv
ssl_type
ssl_cipher
x509_issuer
x509_subject
资源控制列
max_questions
max_updates
max_connections
max_user_connections
plugin
authentication_string
password_expired
四、mysql集群安装
五、mysql的优化