1. 程式人生 > >使用MariaDB資料庫管理系統。

使用MariaDB資料庫管理系統。

並且熟練掌握對資料庫內使用者的建立與授權,資料庫的備份與恢復方法,不僅滿足了RHCE考題要求,還能幫助您的運維工作。
1 資料庫管理系統

我們的生活中無時無刻都在接觸到資料,而資料庫便是通過指定的組織結構將這資料儲存的倉庫,並且隨著網際網路和資訊科技的發展,資料庫也已經從最初只能儲存簡單表格發展到了儲存海量資料的大型分散式模式。

在資訊化社會,充分有效地管理和利用各類資訊資源,是進行科學研究和決策管理的前提條件。資料庫技術是管理資訊系統、辦公自動化系統、決策支援系統等各類資訊系統的核心部分,是進行科學研究和決策管理的重要技術手段。 資料庫管理系統(即Database Management System)是一種能夠對資料庫進行建立、使用和維護的軟體程式,資料庫管理系統通過將計算機中具體的物理資料轉換成適合使用者理解的抽象邏輯資料,方便使用者維護資料庫的安全和可用性。

marialANDmysql

MYSQL是一款大家都非常熟知的資料庫管理系統,技術成熟、配置簡單、開源免費並且有良好的擴充套件性,但是MYSQL在被Oracle公司收購後日漸陷從開源轉變為了封閉,緩慢的更新讓眾多Linux發行版(如紅帽RHEL7、Fedora、Centos、OpenSUSE、Slackware等等)以及諸多已經決定放棄使用這個往日最具人氣的資料庫管理系統,而轉向到了MariaDB。 MariaDB是MYSQL資料庫管理系統的一個由開源社群維護的分支產品,完全兼容於MYSQL,坦白講雖然Google與Wikipedia這樣的行業巨頭已經採用了MariaDB,但並不意味著會比MYSQL有明顯的效能提升,而是從技術壟斷角度作出的決定。
18.2 初始化mariaDB服務程式

MariaDB相對於MYSQL來講確實在功能上有很多擴充套件特性,比如微秒的支援、執行緒池、子查詢優化、組提交、進度報告等。

安裝mariaDB服務程式:

[[email protected] ~]# yum install mariadb mariadb-server
Loaded plugins: langpacks, product-id, subscription-manager
………………省略部分安裝過程………………
Installing:
 mariadb                         x86_64         1:5.5.35-3.el7          rhel7       8.9 M
 mariadb-server                  x86_64         1:5.5.35-3.el7          rhel7        11 M
Installing for dependencie
 perl-Compress-Raw-Bzip2         x86_64         2.061-3.el7             rhel7        32 k
 perl-Compress-Raw-Zlib          x86_64         1:2.061-4.el7           rhel7        57 k
 perl-DBD-MySQL                  x86_64         4.023-5.el7             rhel7       140 k
 perl-DBI                        x86_64         1.627-4.el7             rhel7       802 k
 perl-Data-Dumper                x86_64         2.145-3.el7             rhel7        47 k
 perl-IO-Compress                noarch         2.061-2.el7             rhel7       260 k
 perl-Net-Daemon                 noarch         0.48-5.el7              rhel7        51 k
 perl-PlRPC                      noarch         0.2020-14.el7           rhel7        36 k
………………省略部分安裝過程………………
Complete!

啟動mariadb服務程式並新增到開機啟動項中:

[[email protected] ~]# systemctl start mariadb
[[email protected] ~]# systemctl enable mariadb
ln -s '/usr/lib/systemd/system/mariadb.service' '/etc/systemd/system/multi-user.target.wants/mariadb.service'

為了保證資料庫的安全性,一定要進行初始化工作:

第1步:設定root使用者密碼。
第2步:刪除匿名帳號。
第3步:禁止root使用者從遠端登陸。
第4步:刪除test資料庫並取消對其的訪問許可權。
第5步:重新整理授權表,讓初始化後的設定立即生效。

初始化資料庫服務程式:

[[email protected] ~]# mysql_secure_installation 
/usr/bin/mysql_secure_installation: line 379: find_mysql_client: command not found
NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
      SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!
In order to log into MariaDB to secure it, we'll need the current
password for the root user.  If you've just installed MariaDB, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.
Enter current password for root (enter for none): 當前資料庫密碼為空,直接敲擊回車。
OK, successfully used password, moving on...
Setting the root password ensures that nobody can log into the MariaDB
root user without the proper authorisation.
Set root password? [Y/n] y
New password: 輸入要為root使用者設定的資料庫密碼。
Re-enter new password: 重複再輸入一次密碼。
Password updated successfully!
Reloading privilege tables..
 ... Success!
By default, a MariaDB installation has an anonymous user, allowing anyone
to log into MariaDB without having to have a user account created for
them.  This is intended only for testing, and to make the installation
go a bit smoother.  You should remove them before moving into a
production environment.
Remove anonymous users? [Y/n] y(刪除匿名帳號)
 ... Success!
Normally, root should only be allowed to connect from 'localhost'.  This
ensures that someone cannot guess at the root password from the network.
Disallow root login remotely? [Y/n] y(禁止root使用者從遠端登陸)
 ... Success!
By default, MariaDB comes with a database named 'test' that anyone can
access.  This is also intended only for testing, and should be removed
before moving into a production environment.
Remove test database and access to it? [Y/n] y(刪除test資料庫並取消對其的訪問許可權)
 - Dropping test database...
 ... Success!
 - Removing privileges on test database...
 ... Success!
Reloading the privilege tables will ensure that all changes made so far
will take effect immediately.
Reload privilege tables now? [Y/n] y(重新整理授權表,讓初始化後的設定立即生效)
 ... Success!
Cleaning up...
All done!  If you've completed all of the above steps, your MariaDB
installation should now be secure.
Thanks for using MariaDB!

設定防火牆對資料庫服務的允許策略:

[[email protected] ~]# firewall-cmd --permanent --add-service=mysql
success
[[email protected] ~]# firewall-cmd --reload
success

使用root使用者登陸到資料庫中:

[[email protected] ~]# mysql -u root -p
Enter password: 此處輸入root使用者在資料庫中的密碼。
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 5
Server version: 5.5.35-MariaDB MariaDB Server
Copyright (c) 2000, 2013, Oracle, Monty Program Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]>

檢視當前已有的資料庫:

MariaDB [(none)]> show databases;
+--------------------+
" Database           |
+--------------------+
| information_schema |
| mysql              |
| performance_schema |
+--------------------+
3 rows in set (0.01 sec)

修改當前使用者在資料庫中的密碼(示例中的密碼為redhat):

MariaDB [(none)]> set password = password('redhat');
Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]> exit
Bye

使用舊的密碼將不能再登陸到資料庫:

[[email protected] ~]# mysql -u root -p
Enter password:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
18.3 管理資料庫與表單資料

關係型資料庫(DataBase)是由一個或多個數據表單(Table)組成的,資料表單則一般會儲存著多個數據記錄(Record)。

18.3.1 建立使用者並授權

建立一個新的資料庫使用者:

建立資料庫使用者的命令:CREATE USER 使用者名稱@主機名 IDENTIFIED BY ‘密碼’;

MariaDB [(none)]> create user [email protected] IDENTIFIED BY 'linuxprobe';
Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]> use mysql;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

檢視新建立的使用者、主機、姓名與密碼資訊:

MariaDB [mysql]> select host,user,password from user where user="luke";
+-----------+------+-------------------------------------------+
| host      | user | password                                  |
+-----------+------+-------------------------------------------+
| localhost | luke | *55D9962586BE75F4B7D421E6655973DB07D6869F |
+-----------+------+-------------------------------------------+
1 row in set (0.00 sec)

退出資料庫後使用新使用者登陸:

MariaDB [mysql]> exit
Bye
[[email protected] ~]# mysql -u luke -p
Enter password: 此處輸入luke使用者的資料庫密碼
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 6
Server version: 5.5.35-MariaDB MariaDB Server
Copyright (c) 2000, 2013, Oracle, Monty Program Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

此時只能檢視到一個數據庫:

MariaDB [(none)]> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
+--------------------+
1 row in set (0.03 sec)

資料庫GRANT命令的授權操作常用方案:

命令 作用
GRANT 許可權 ON 資料庫.表單名稱 TO 使用者名稱@主機名 對某個特定資料庫中的特定表單給予授權。
GRANT 許可權 ON 資料庫.* TO 使用者名稱@主機名 對某個特定資料庫中的所有表單給予授權。
GRANT 許可權 ON *.* TO 使用者名稱@主機名 對所有資料庫及所有表單給予授權。
GRANT 許可權1,許可權2 ON 資料庫.* TO 使用者名稱@主機名 對某個資料庫中的所有表單給予多個授權。
GRANT ALL PRIVILEGES ON *.* TO 使用者名稱@主機名 對所有資料庫及所有表單給予全部授權,(謹慎操作)。


切換回root使用者登陸資料庫並進入到mysql資料庫中:

[[email protected] ~]# mysql -u root -p
MariaDB [(none)]> use mysql;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed

給予luke使用者對user表單的查詢、更新、刪除、插入許可權:

MariaDB [mysql]> GRANT SELECT,UPDATE,DELETE,INSERT on mysql.user to [email protected];
Query OK, 0 rows affected (0.00 sec)

檢視luke使用者當前的授權:

MariaDB [(none)]> show grants for [email protected];
+-------------------------------------------------------------------------------------------------------------+
| Grants for [email protected] |
+-------------------------------------------------------------------------------------------------------------+
| GRANT USAGE ON *.* TO 'luke'@'localhost' IDENTIFIED BY PASSWORD '*55D9962586BE75F4B7D421E6655973DB07D6869F' |
| GRANT SELECT, INSERT, UPDATE, DELETE ON `mysql`.`user` TO 'luke'@'localhost' |
+-------------------------------------------------------------------------------------------------------------+
2 rows in set (0.00 sec)

再次切換到luke使用者後檢視可用的資料庫:

[[email protected] ~]# mysql -u luke -p
MariaDB [(none)]> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |
+--------------------+
2 rows in set (0.01 sec)

進入到mysql資料庫中看到user表單了:

MariaDB [(none)]> use mysql
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
MariaDB [mysql]> show tables;
+-----------------+
| Tables_in_mysql |
+-----------------+
| user            |
+-----------------+
1 row in set (0.01 sec)

切換回root使用者後取消剛剛全部的授權:

MariaDB [(none)]> revoke SELECT,UPDATE,DELETE,INSERT on mysql.user from [email protected];
Query OK, 0 rows affected (0.00 sec)

再次檢視luke使用者的授權:

MariaDB [(none)]> show grants for [email protected];
+-------------------------------------------------------------------------------------------------------------+
| Grants for [email protected] |
+-------------------------------------------------------------------------------------------------------------+
| GRANT USAGE ON *.* TO 'luke'@'localhost' IDENTIFIED BY PASSWORD '*55D9962586BE75F4B7D421E6655973DB07D6869F' |
+-------------------------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)
18.3.2 建立資料庫與表單

常用的資料庫表單管理命令有:

用法 作用
CREATE database 資料庫名稱。 建立新的資料庫。
DESCRIBE 表單名稱; 描述表單。
UPDATE 表單名稱 SET attribute=新值 WHERE attribute > 原始值; 更新表單中的資料。
USE 資料庫名稱; 指定使用的資料庫。
SHOW databases; 顯示當前已有的資料庫。
SHOW tables; 顯示當前資料庫中的表單。
SELECT * FROM 表單名稱; 從表單中選中某個記錄值。
DELETE FROM 表單名 WHERE attribute=值; 從表單中刪除某個記錄值。


建立一個新的資料庫:

MariaDB [(none)]> create database linuxprobe;
Query OK, 1 row affected (0.00 sec)

檢視當前已有的資料庫:

MariaDB [(none)]> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| linuxprobe |
| mysql |
| performance_schema |
+--------------------+
4 rows in set (0.04 sec)

切換到指定的資料庫:

MariaDB [(none)]> use linuxprobe;
Database changed

建立新的資料庫表單:

MariaDB [linuxprobe]> create table mybook (name char(15),price int,pages int);
Query OK, 0 rows affected (0.16 sec)

查看錶單的結構描述:

MariaDB [linuxprobe]> describe mybook;
+-------+----------+------+-----+---------+-------+
| Field | Type     | Null | Key | Default | Extra |
+-------+----------+------+-----+---------+-------+
| name  | char(15) | YES  |     | NULL    |       |
| price | int(11)  | YES  |     | NULL    |       |
| pages | int(11)  | YES  |     | NULL    |       |
+-------+----------+------+-----+---------+-------+
3 rows in set (0.02 sec)
18.3.3 管理表單資料

向表單內插入新的書籍資料:

MariaDB [linuxprobe]> INSERT INTO mybook(name,price,pages) VALUES('linuxprobe','60',518);
Query OK, 1 row affected (0.00 sec)

查看錶單中的資料值:

MariaDB [linuxprobe]> select * from mybook;
+------------+-------+-------+
| name       | price | pages |
+------------+-------+-------+
| linuxprobe |    60 |   518 |
+------------+-------+-------+
1 rows in set (0.01 sec)

將價格修改為55元:

MariaDB [linuxprobe]> update mybook set price=55 ;
Query OK, 1 row affected (0.00 sec)
Rows matched: 1  Changed: 1  Warnings: 0

看書籍的名字和價格:

MariaDB [linuxprobe]> select name,price  from mybook;
+------------+-------+
| name       | price |
+------------+-------+
| linuxprobe |    55 |
+------------+-------+
1 row in set (0.00 sec)

刪除書籍表單中的內容:

MariaDB [linuxprobe]> delete from mybook;
Query OK, 1 row affected (0.01 sec)
MariaDB [linuxprobe]> select * from mybook;
Empty set (0.00 sec)

連續加入4條書籍記錄值:

MariaDB [linuxprobe]> INSERT INTO mybook(name,price,pages) VALUES('linuxprobe1','30',518);
Query OK, 1 row affected (0.05 sec)
MariaDB [linuxprobe]> INSERT INTO mybook(name,price,pages) VALUES('linuxprobe2','50',518);
Query OK, 1 row affected (0.05 sec)
MariaDB [linuxprobe]> INSERT INTO mybook(name,price,pages) VALUES('linuxprobe3','80',518);
Query OK, 1 row affected (0.01 sec)
MariaDB [linuxprobe]> INSERT INTO mybook(name,price,pages) VALUES('linuxprobe4','100',518);
Query OK, 1 row affected (0.00 sec)

where命令用於在資料庫匹配查詢的條件,可用的條件有:

引數 作用
= 相等。
<>或!= 不相等。
> 大於。
< 小於。
>= 大於或等於。
<= 小於或等於。
BETWEEN 在某個範圍內。
LIKE 搜尋一個例子。
IN 在列中搜索多個值。


檢視價格大於75元的書籍:

MariaDB [linuxprobe]> select * from mybook where price>75;
+-------------+-------+-------+
| name        | price | pages |
+-------------+-------+-------+
| linuxprobe3 |    80 |   518 |
| linuxprobe4 |   100 |   518 |
+-------------+-------+-------+
2 rows in set (0.06 sec)

搜尋價格不等於80元的書籍:

MariaDB [linuxprobe]> select * from mybook where price!=80;
+-------------+-------+-------+
| name | price | pages |
+-------------+-------+-------+
| linuxprobe1 | 30 | 518 |
| linuxprobe2 | 50 | 518 |
| linuxprobe4 | 100 | 518 |
+-------------+-------+-------+
3 rows in set (0.01 sec)

18.3.4 資料庫的備份與恢復
mysqldump命令用於備份資料庫資料,格式為:“mysqldump [引數] [資料庫名稱]”。

引數 作用
-u 資料庫的使用者名稱稱。
-p 密碼提示符。
--no-data 至備份資料庫的描述結構,而不要資料。
--lock-all-tables 備份完成後將不再允許修改資料。

將書籍資料庫檔案(即linuxprobe)匯出到家目錄:

[[email protected] ~]# mysqldump -u root -p linuxprobe > /root/linuxprobeDB.dump
Enter password: 

刪除書籍資料庫:

MariaDB [linuxprobe]> drop database linuxprobe;
Query OK, 1 row affected (0.04 sec)
MariaDB [(none)]> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |
| performance_schema |
+--------------------+
3 rows in set (0.02 sec)

建立一個空的資料庫:

MariaDB [(none)]> create database linuxprobe;
Query OK, 1 row affected (0.00 sec)

匯入剛剛備份的資料庫:

[[email protected] ~]# mysql -u root -p linuxprobe < /root/linuxprobeDB.dump 
Enter password: 

果然又看到了剛剛建立的mybook表單:

[[email protected] ~]# mysql -u root -p
MariaDB [(none)]> use linuxprobe;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
MariaDB [linuxprobe]> show tables;
+----------------------+
| Tables_in_linuxprobe |
+----------------------+
| mybook               |
+----------------------+
1 row in set (0.05 sec)

相關推薦

使用MariaDB資料庫管理系統

並且熟練掌握對資料庫內使用者的建立與授權,資料庫的備份與恢復方法,不僅滿足了RHCE考題要求,還能幫助您的運維工作。 1 資料庫管理系統 我們的生活中無時無刻都在接觸到資料,而資料庫便是通過指定的組織結構將這資料儲存的倉庫,並且隨著網際網路和資訊科技的發展,資料庫也已經從最初只能儲存簡單表格發展到了儲存海量資

MariaDb資料庫管理系統學習(二)使用HeidiSQL資料庫圖形化介面管理工具

分享一下我老師大神的人工智慧教程!零基礎,通俗易懂!http://blog.csdn.net/jiangjunshow 也歡迎大家轉載本篇文章。分享知識,造福人民,實現我們中華民族偉大復興!        

java版超市管理系統swing~(java連線mysql資料庫

/* * 完成於2016.12.14 * 知識點:(1)java與mysql連線語句的掌握 * (2)swing窗體的構建 * (3)在people類裡運用了列表框。(ps:還有一個小問題沒有解決。那就是點選列表框響應兩次。網上的方法不知道怎麼運用。希望有大神來教教我。提前謝謝啦~

Mariadb(mysql)資料庫管理系統-03——使用者管理

Mariadb(mysql)裡的使用者管理 一、檢視當前登入使用者 此root使用者和Linux中的root不是一個使用者,此root為mariadb的root使用者

linux入門系列19--資料庫管理系統(DBMS)之MariaDB

前面講完Linux下一系列服務的配置和使用之後,本文簡單介紹一款資料庫管理系統(MySQL的兄弟)MariaDB。 如果你有MySQL或其他資料的使用經驗,MariaDB使用起來將非常輕鬆。 本文講解Centos7預設的資料MariaDB,由於是入門系列文章因此不會深入講解,後面有機會在單獨深入。 一、Mar

讓全世界的中小企業都可以用上的全方位上網行為管理系統

上網行為管理 網絡安全網關 免費中小企業局域網都很簡單,但是企業就是企業,即使規模不大,一樣需要管理。人員上網,帶寬管理,員工上網意識形態,趨勢,等等,都和工作內容息息相關。這個也是企業人力成本的很大因素。這裏說的中小企業是50人以內的局域網。我們為全世界中小企業提供一款免費的(免費免費免費的)全方位上網線行

資料庫管理系統的層次結構

根據處理物件的不同,資料庫管理系統的層次結構由高階到低階依次為應用層、語言翻譯處理層、資料存取層、資料儲存層、作業系統。   (1)應用層。應用層是DBMS與終端使用者和應用程式的介面層,處理的物件是各種各樣的資料庫應用。   (2)語言翻譯處理層。語言翻譯處理層是對資料庫語言的各類語句進行語法分析、檢視

主流資料庫管理系統介紹

目前有許多DBMS產品,如DB2、Oracle、Microsoft SQL Server、Sybase SQLServer、Informix、MySQL等,它們在資料庫市場上各自佔有一席之地。下面簡要介紹幾種常用的資料庫管理系統。 (1)DB2 DB2第一種使用使用SQL的資料庫產品。DB2 於1982

關係資料庫系統RDBMS與面向物件資料庫管理系統ODBMS優缺點比較

關係資料庫系統與面向物件資料庫系統各自的優缺點 關係資料庫系統的優點 a.靈活性和建庫的簡單性:目前在多數RDDMS產品中使用標準查詢語言SQL,允許使用者幾乎毫無差別地從一個產品到另一個產品存取資訊。 b.結構簡單:從資料建模的前景看,關係資料庫具有相當

linux 的mariadb 資料庫管理

        MariaDB資料庫管理系統是MySQL的一個分支,主要由開源社群在維護,採用GPL授權許可 MariaDB的目的是完全相容MySQL,包括API和命令列,使之能輕鬆成為MySQL的代替品。在儲存引擎方面,使用Xt

資料庫管理系統的三個發展階段

一、人工管理        時間:20世紀50年代中期以前        功能:計算機主要用於科學計算。外部儲存器只有磁帶、卡片和紙帶等還沒有磁碟等直接存取儲存

資料庫系統概論:第十二章 資料庫管理系統

12.1 資料庫管理系統的基本功能 1. 資料庫定義和建立 2. 資料組織、儲存、管理 3. 資料存取 4. 資料庫事務管理和執行管理 5. 資料庫的建立和維護 6. 其他功能 12.2 資料庫管理系統地結構 12.2.1 資料庫管理系統地層次結構

Centos7.5_Nginx+tomcat+redis搭建視覺化資料庫管理系統 TreeNMS

伺服器環境:centos7.5 軟體環境:寶塔搭建的框架,Nginx+tomcat7.0+redis4.0搭建的環境 遇到的問題:                       1、驗證碼80埠不顯示驗證碼                            2、80

初識mysql資料庫管理系統

隨著網路技術的發展,計算機軟/硬體技術的進步,現在的計算機可以管理規模巨大的資料庫,這時,計算機如果還在使用檔案系統來管理資料,則遠遠不能滿足當今的各種應用需求,於是就出現了資料庫技術,特別是關係型資料庫。該階段就是所謂的資料庫系統階段,該階段的特點如下:

linux的MariaDB資料庫管理

################################## 1.建立資料庫設定密碼 ################################## 安裝服務 yum install mariadb-server.x86_64 -y 啟動服務 設定密碼 mysql_se

Mac MySQL 資料庫配置(關係型資料庫管理系統

前言 MySQL 關係型資料庫管理系統。 1、配置準備工作 1)配置資料庫準備工作 下載相關軟體 mysql-5.7.21-1-macos10.13-x86_64.dmg mysql

運維要失業了?機器學習可自動優化你的資料庫管理系統(DBMS)

作者簡介: 達娜·範·阿肯(Dana Van Aken)是卡內基·梅隆大學的計算機學博士生,導師是安德魯·帕夫洛博士。 安迪·帕夫洛(Andy Pavlo)是卡內基·梅隆大學的計算機學系資料庫學助理教授。 傑夫·戈登(Geoff Gordon)是卡內基·梅隆大學的副教授兼機器學習系教育部副主任。 本

關係型資料庫管理系統(RDBMS)與非關係型資料庫(NoSQL)之間的區別

簡介 關係型資料庫管理系統(RDBMS)是建立在關係模型基礎上的資料庫,主要代表有:Microsoft SQL Server,Oracle,MySQL(開源)。 非關係型資料庫(NoSQL),主要代表有:MongoDB,Redis。   ACID vs BASE AC

JDBC--資料庫管理系統

1-JDBC概述 序言:資料持久化 持久化(persistence):把資料儲存到可掉電式儲存裝置中以供之後使用。大多數情況下,特別是企業級應用,資料持久化意味著將記憶體中的資料儲存到硬碟上加以”固化”,而持久化的實現過程大多通過各種關係資料庫來完成。持久化的主要應用是將記

Anti-Caching:一種新型資料庫管理系統架構

1.寫在前面 之前的三篇博文主要介紹了NVM(Non-Volatile Memory)和資料庫相關的內容。NVM因其讀寫效能接近DRAM、可位元組定址、非易失、大容量等特點,在電腦科學的許多領域都具有非常身後的發掘潛力。而我目前研究的資料庫方向只是NVM所應用