<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>MariaDB &#8211; NhanVPH&#039;s Blog</title>
	<atom:link href="https://blntech.io.vn/tag/mariadb/feed/" rel="self" type="application/rss+xml" />
	<link>https://blntech.io.vn</link>
	<description></description>
	<lastBuildDate>Thu, 26 Mar 2026 08:23:08 +0000</lastBuildDate>
	<language>vi</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>

<image>
	<url>https://blntech.io.vn/wp-content/uploads/2026/04/cropped-cropped-Logo-BLN-32x32.jpg</url>
	<title>MariaDB &#8211; NhanVPH&#039;s Blog</title>
	<link>https://blntech.io.vn</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Cài Đặt WordPress (Phần 2)</title>
		<link>https://blntech.io.vn/huong-dan-cai-dat-wordpress-phan-2/</link>
		
		<dc:creator><![CDATA[nhanvph]]></dc:creator>
		<pubDate>Thu, 26 Mar 2026 08:13:11 +0000</pubDate>
				<category><![CDATA[Xpenology]]></category>
		<category><![CDATA[MariaDB]]></category>
		<category><![CDATA[PhpMyAdmin]]></category>
		<category><![CDATA[Synology]]></category>
		<category><![CDATA[Web Station]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[xpenology]]></category>
		<guid isPermaLink="false">https://blntech.io.vn/?p=4224</guid>

					<description><![CDATA[Note này mình sẽ giới thiệu Phần 2: Cài thủ công. Đây là phương pháp cài WordPress trên Synology NAS [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Note này mình sẽ giới thiệu Phần 2: Cài thủ công. Đây là phương pháp cài WordPress trên Synology NAS hoặc XPEnology mình khuyên các bạn nên dùng.</p>



<h3 class="wp-block-heading" id="ftoc-heading-1">Chuẩn bị</h3>



<p class="wp-block-paragraph"><strong>Trước hết bạn cần phải xem qua các bài viết và làm các việc sau:</strong></p>



<ul class="wp-block-list">
<li>Hướng dẫn cài đặt Web Station.</li>



<li>Hướng dẫn DDNS cho Domain (tên miền).</li>



<li>Tạo chứng chỉ SSL cho Domain</li>



<li><a href="https://blntech.io.vn/cai-dat-wordpress-phan-1/" data-type="post" data-id="4226" target="_blank" rel="noreferrer noopener">Cài đặt WordPress tự động qua Package Center</a>.</li>
</ul>



<h3 class="wp-block-heading" id="ftoc-heading-2">Phần 2: Cài đặt thủ công</h3>



<ul class="wp-block-list">
<li><strong>Ưu điểm:</strong>
<ul class="wp-block-list">
<li>Chạy full toàn bộ các chức năng của WordPress.</li>



<li>Phù hợp cho chạy online (internet). Bản thân trang này của mình đang dùng.</li>
</ul>
</li>



<li><strong>Nhược điểm:</strong>
<ul class="wp-block-list">
<li>Khó cài đặt hơn so với cách cài qua Package Center.</li>



<li>Không có Photo Station Tinymce Plugin và Photo Station WordPress Plugin. Mình không dùng nên cũng không quan tâm&nbsp;<img decoding="async" src="blob:https://blntech.io.vn/befdb56f-669d-4b74-b028-d3f8eb5e113e" alt=":mrgreen:"></li>
</ul>
</li>
</ul>



<h4 class="wp-block-heading" id="ftoc-heading-3">B1: Tải mã nguồn WordPress.</h4>



<ul class="wp-block-list">
<li>Bạn truy cập vào trang chủ của&nbsp;<a href="https://wordpress.org/" target="_blank" rel="noreferrer noopener">WordPress</a>&nbsp;để tải bản mới nhất.
<ul class="wp-block-list">
<li>Bản tiếng Việt:&nbsp;<a href="https://vi.wordpress.org/download/" target="_blank" rel="noreferrer noopener">https://vi.wordpress.org/download/</a></li>



<li>Bản tiếng Anh:&nbsp;<a href="https://wordpress.org/download/" target="_blank" rel="noreferrer noopener">https://wordpress.org/download/</a></li>
</ul>
</li>
</ul>



<figure class="wp-block-image size-full"><img fetchpriority="high" decoding="async" width="1024" height="665" src="https://blntech.io.vn/wp-content/uploads/2025/10/image-38.png" alt="" class="wp-image-5304" srcset="https://blntech.io.vn/wp-content/uploads/2025/10/image-38.png 1024w, https://blntech.io.vn/wp-content/uploads/2025/10/image-38-300x195.png 300w, https://blntech.io.vn/wp-content/uploads/2025/10/image-38-768x499.png 768w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph"><a href="https://nguyenvinh.net/wp-content/uploads/2020/05/DSM-WordPress-TC.png"></a></p>



<p class="wp-block-paragraph" id="caption-attachment-2277">Thông thường thì bản tiếng Việt sẽ chưa được cập nhật mới nhất ngay. Để đỡ phải mất công cập nhật sau khi cài xong thì bạn tải bản tiếng Anh về cài. Sau đó vào Settings chuyển ngôn ngữ thành tiếng Việt là được.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="1024" height="565" src="https://blntech.io.vn/wp-content/uploads/2025/10/image-39.png" alt="" class="wp-image-5305" srcset="https://blntech.io.vn/wp-content/uploads/2025/10/image-39.png 1024w, https://blntech.io.vn/wp-content/uploads/2025/10/image-39-300x166.png 300w, https://blntech.io.vn/wp-content/uploads/2025/10/image-39-768x424.png 768w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph" id="caption-attachment-2279">Sau khi tải xong bạn tiến hành gải nén và copy vào thư mục&nbsp;<strong>web</strong>. Mặc định khi giải nén ra tên thư mục là&nbsp;<strong>wordpress</strong>, bạn có thể đổi lại thành bất kỳ tên gì. Ở đây mình đổi thành&nbsp;<strong>blog</strong>.</p>



<h4 class="wp-block-heading" id="ftoc-heading-4">B2: Tạo CSDL trong phpMyAdmin.</h4>



<p class="wp-block-paragraph">Bạn vào&nbsp;<strong>Main Menu</strong>&nbsp;mở ứng dụng&nbsp;<strong>phpMyAdmin</strong>.&nbsp;Xem hướng dẫn tại đây&nbsp;nếu bạn chưa cài phpMyAdmin.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="1024" height="392" src="https://blntech.io.vn/wp-content/uploads/2025/10/image-40.png" alt="" class="wp-image-5306" srcset="https://blntech.io.vn/wp-content/uploads/2025/10/image-40.png 1024w, https://blntech.io.vn/wp-content/uploads/2025/10/image-40-300x115.png 300w, https://blntech.io.vn/wp-content/uploads/2025/10/image-40-768x294.png 768w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1022" height="557" src="https://blntech.io.vn/wp-content/uploads/2025/10/image-43.png" alt="" class="wp-image-5309" srcset="https://blntech.io.vn/wp-content/uploads/2025/10/image-43.png 1022w, https://blntech.io.vn/wp-content/uploads/2025/10/image-43-300x164.png 300w, https://blntech.io.vn/wp-content/uploads/2025/10/image-43-768x419.png 768w" sizes="auto, (max-width: 1022px) 100vw, 1022px" /></figure>



<p class="wp-block-paragraph" id="caption-attachment-2283">Đăng nhập vào phpMyAdmin với tài khoản&nbsp;<strong>root</strong></p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1024" height="508" src="https://blntech.io.vn/wp-content/uploads/2025/10/image-44.png" alt="" class="wp-image-5310" srcset="https://blntech.io.vn/wp-content/uploads/2025/10/image-44.png 1024w, https://blntech.io.vn/wp-content/uploads/2025/10/image-44-300x149.png 300w, https://blntech.io.vn/wp-content/uploads/2025/10/image-44-768x381.png 768w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph" id="caption-attachment-2287">Tạo mới một CSDL</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1024" height="483" src="https://blntech.io.vn/wp-content/uploads/2025/10/image-45.png" alt="" class="wp-image-5311" srcset="https://blntech.io.vn/wp-content/uploads/2025/10/image-45.png 1024w, https://blntech.io.vn/wp-content/uploads/2025/10/image-45-300x142.png 300w, https://blntech.io.vn/wp-content/uploads/2025/10/image-45-768x362.png 768w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph" id="caption-attachment-2286">Nhập tên CSDL cần tạo, ở đây mình để là&nbsp;<strong>blog</strong></p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1024" height="473" src="https://blntech.io.vn/wp-content/uploads/2025/10/image-46.png" alt="" class="wp-image-5312" srcset="https://blntech.io.vn/wp-content/uploads/2025/10/image-46.png 1024w, https://blntech.io.vn/wp-content/uploads/2025/10/image-46-300x139.png 300w, https://blntech.io.vn/wp-content/uploads/2025/10/image-46-768x355.png 768w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph" id="caption-attachment-2285">Như vậy là tạo xong CSDL</p>



<p class="wp-block-paragraph">Nếu bạn không dùng tên miền riêng để truy câp hoặc để trang offline (trong mạng Lan) thì truy cập vào địa chỉ&nbsp;<strong>/blog</strong>&nbsp;để cài đặt WordPress (bỏ qua bước 3). Trong trường hợp bạn có domain, sub domain và muốn trang WordPress truy cập bằng domain, sub domain thì làm bước 3.</p>



<h4 class="wp-block-heading" id="ftoc-heading-5">B3: Tạo Virtual Host – Truy cập trang web bằng domain.</h4>



<ul class="wp-block-list">
<li><strong>Trỏ tên miền về IP.</strong>
<ul class="wp-block-list">
<li>Vào trang quản lý tên miền trỏ về IP của bạn. Nếu mạng internet nhà bạn có ip tĩnh.</li>



<li>Trường hợp không có IP tĩnh thì bạn tham khảo bài viết&nbsp;Hướng dẫn DDNS cho Domain (tên miền).</li>
</ul>
</li>
</ul>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1024" height="405" src="https://blntech.io.vn/wp-content/uploads/2025/10/image-47.png" alt="" class="wp-image-5313" srcset="https://blntech.io.vn/wp-content/uploads/2025/10/image-47.png 1024w, https://blntech.io.vn/wp-content/uploads/2025/10/image-47-300x119.png 300w, https://blntech.io.vn/wp-content/uploads/2025/10/image-47-768x304.png 768w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<ul class="wp-block-list">
<li><strong>Tạo Virtual Host trong Web Station.</strong>
<ul class="wp-block-list">
<li>Bạn xem qua bài viết&nbsp;Hướng dẫn cài đặt Web Station.</li>
</ul>
</li>
</ul>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="937" height="591" src="https://blntech.io.vn/wp-content/uploads/2025/10/image-48.png" alt="" class="wp-image-5314" srcset="https://blntech.io.vn/wp-content/uploads/2025/10/image-48.png 937w, https://blntech.io.vn/wp-content/uploads/2025/10/image-48-300x189.png 300w, https://blntech.io.vn/wp-content/uploads/2025/10/image-48-768x484.png 768w" sizes="auto, (max-width: 937px) 100vw, 937px" /></figure>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1024" height="505" src="https://blntech.io.vn/wp-content/uploads/2025/10/image-49.png" alt="" class="wp-image-5315" srcset="https://blntech.io.vn/wp-content/uploads/2025/10/image-49.png 1024w, https://blntech.io.vn/wp-content/uploads/2025/10/image-49-300x148.png 300w, https://blntech.io.vn/wp-content/uploads/2025/10/image-49-768x379.png 768w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph" id="caption-attachment-2293">Lưu ý: bạn cần cấu hình&nbsp;<strong>PHP 7.3</strong>&nbsp;nếu chưa làm. Xem hướng dẫn&nbsp;tại đây.</p>



<p class="wp-block-paragraph">Xem cấu hình PHP tối ưu cho WordPress trên Synology NAS&nbsp;tại đây.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="941" height="595" src="https://blntech.io.vn/wp-content/uploads/2025/10/image-50.png" alt="" class="wp-image-5316" srcset="https://blntech.io.vn/wp-content/uploads/2025/10/image-50.png 941w, https://blntech.io.vn/wp-content/uploads/2025/10/image-50-300x190.png 300w, https://blntech.io.vn/wp-content/uploads/2025/10/image-50-768x486.png 768w" sizes="auto, (max-width: 941px) 100vw, 941px" /></figure>



<p class="wp-block-paragraph">Nếu bạn không dùng SSL – HTTPS đến đây là xong bước này.</p>



<ul class="wp-block-list">
<li><strong>Cấu hình SSL.</strong>
<ul class="wp-block-list">
<li>Bạn xem bài viết&nbsp;Tạo chứng chỉ SSL cho Domian.</li>



<li>Nếu tên miền của bạn đã tạo SSL và đặt là chứng chỉ mặc định thì xong, không phải thao tác gì nữa. Vì Synology DSM sẽ tự add về chứng chỉ mặc định. Trong trường hợp không phải chứng chỉ mặc định bạn cần phải cấu hình lại như sau.</li>
</ul>
</li>
</ul>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1024" height="602" src="https://blntech.io.vn/wp-content/uploads/2025/10/image-51.png" alt="" class="wp-image-5317" srcset="https://blntech.io.vn/wp-content/uploads/2025/10/image-51.png 1024w, https://blntech.io.vn/wp-content/uploads/2025/10/image-51-300x176.png 300w, https://blntech.io.vn/wp-content/uploads/2025/10/image-51-768x452.png 768w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph" id="caption-attachment-2297">Bạn vào&nbsp;<strong>Control Panel</strong>&nbsp;=&gt;&nbsp;<strong>Security</strong>&nbsp;=&gt;&nbsp;<strong>Certificate</strong></p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1024" height="601" src="https://blntech.io.vn/wp-content/uploads/2025/10/image-52.png" alt="" class="wp-image-5318" srcset="https://blntech.io.vn/wp-content/uploads/2025/10/image-52.png 1024w, https://blntech.io.vn/wp-content/uploads/2025/10/image-52-300x176.png 300w, https://blntech.io.vn/wp-content/uploads/2025/10/image-52-768x451.png 768w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1024" height="605" src="https://blntech.io.vn/wp-content/uploads/2025/10/image-53.png" alt="" class="wp-image-5319" srcset="https://blntech.io.vn/wp-content/uploads/2025/10/image-53.png 1024w, https://blntech.io.vn/wp-content/uploads/2025/10/image-53-300x177.png 300w, https://blntech.io.vn/wp-content/uploads/2025/10/image-53-768x454.png 768w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<h4 class="wp-block-heading" id="ftoc-heading-6">B4: Cài đặt WordPress.</h4>



<p class="wp-block-paragraph">Bạn truy cập vào địa chỉ tên miền vừa thêm vào Virtual Host hoặc&nbsp;<strong>/blog</strong>&nbsp;nếu bạn không dùng Virtual Host để tiến hành cài đặt WordPress.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1024" height="525" src="https://blntech.io.vn/wp-content/uploads/2025/10/image-54.png" alt="" class="wp-image-5320" srcset="https://blntech.io.vn/wp-content/uploads/2025/10/image-54.png 1024w, https://blntech.io.vn/wp-content/uploads/2025/10/image-54-300x154.png 300w, https://blntech.io.vn/wp-content/uploads/2025/10/image-54-768x394.png 768w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="926" height="614" src="https://blntech.io.vn/wp-content/uploads/2025/10/image-55.png" alt="" class="wp-image-5321" srcset="https://blntech.io.vn/wp-content/uploads/2025/10/image-55.png 926w, https://blntech.io.vn/wp-content/uploads/2025/10/image-55-300x199.png 300w, https://blntech.io.vn/wp-content/uploads/2025/10/image-55-768x509.png 768w" sizes="auto, (max-width: 926px) 100vw, 926px" /></figure>



<ul class="wp-block-list">
<li><strong>Database Name</strong>:&nbsp;<em>blog</em>&nbsp;– tên CSDL bạn vừa tạo ở bước 2.</li>



<li><strong>Username</strong>:&nbsp;<em>root</em>&nbsp;– tên tài khoản đăng nhập vào CSDL.</li>



<li><strong>Password</strong>:&nbsp;<em>mật khẩu tài khoản đăng nhập vào CSDL</em>.</li>



<li><strong>Database Host</strong>:&nbsp;<em>localhost:/run/mysqld/mysqld10.sock</em></li>



<li><strong>Table Prefix</strong>:&nbsp;<em>wp_</em>&nbsp;– bạn có thể thay đổi túy ý. (mục đích để phân biệt khi dùng chung CSDL cho nhiều trang).</li>
</ul>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="927" height="429" src="https://blntech.io.vn/wp-content/uploads/2025/10/image-56.png" alt="" class="wp-image-5322" srcset="https://blntech.io.vn/wp-content/uploads/2025/10/image-56.png 927w, https://blntech.io.vn/wp-content/uploads/2025/10/image-56-300x139.png 300w, https://blntech.io.vn/wp-content/uploads/2025/10/image-56-768x355.png 768w" sizes="auto, (max-width: 927px) 100vw, 927px" /></figure>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1024" height="682" src="https://blntech.io.vn/wp-content/uploads/2025/10/image-57.png" alt="" class="wp-image-5323" srcset="https://blntech.io.vn/wp-content/uploads/2025/10/image-57.png 1024w, https://blntech.io.vn/wp-content/uploads/2025/10/image-57-300x200.png 300w, https://blntech.io.vn/wp-content/uploads/2025/10/image-57-768x512.png 768w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="899" height="496" src="https://blntech.io.vn/wp-content/uploads/2025/10/image-58.png" alt="" class="wp-image-5324" srcset="https://blntech.io.vn/wp-content/uploads/2025/10/image-58.png 899w, https://blntech.io.vn/wp-content/uploads/2025/10/image-58-300x166.png 300w, https://blntech.io.vn/wp-content/uploads/2025/10/image-58-768x424.png 768w" sizes="auto, (max-width: 899px) 100vw, 899px" /></figure>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1024" height="468" src="https://blntech.io.vn/wp-content/uploads/2025/10/image-59.png" alt="" class="wp-image-5325" srcset="https://blntech.io.vn/wp-content/uploads/2025/10/image-59.png 1024w, https://blntech.io.vn/wp-content/uploads/2025/10/image-59-300x137.png 300w, https://blntech.io.vn/wp-content/uploads/2025/10/image-59-768x351.png 768w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<ul class="wp-block-list">
<li>Đến đây cơ bản là xong. Tiếp theo bạn cần chỉnh sửa file&nbsp;<strong><em>wp-config.php</em></strong>&nbsp;để có thể upload, update mà không cần đến ftp.</li>
</ul>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1024" height="832" src="https://blntech.io.vn/wp-content/uploads/2025/10/image-60.png" alt="" class="wp-image-5326" srcset="https://blntech.io.vn/wp-content/uploads/2025/10/image-60.png 1024w, https://blntech.io.vn/wp-content/uploads/2025/10/image-60-300x244.png 300w, https://blntech.io.vn/wp-content/uploads/2025/10/image-60-768x624.png 768w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph" id="caption-attachment-2304">Nếu chưa cài&nbsp;<strong><em>Text Editor</em></strong>, bạn vào Package Center để cài</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1024" height="703" src="https://blntech.io.vn/wp-content/uploads/2025/10/image-61.png" alt="" class="wp-image-5327" srcset="https://blntech.io.vn/wp-content/uploads/2025/10/image-61.png 1024w, https://blntech.io.vn/wp-content/uploads/2025/10/image-61-300x206.png 300w, https://blntech.io.vn/wp-content/uploads/2025/10/image-61-768x527.png 768w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Bạn thêm dòng sau vào cuối file&nbsp;<strong><em>wp-config.php</em></strong>.</p>



<pre class="wp-block-code has-subtle-background-background-color has-background"><code>//**The next line allows direct downloads*/
define('FS_METHOD', 'direct');</code></pre>



<p class="wp-block-paragraph"><strong>Vậy là xong !</strong>&nbsp;<img decoding="async" src="blob:https://blntech.io.vn/702b069f-eb00-42b8-9078-10da3dd4dcd6" alt=":mrgreen:"></p>



<h3 class="wp-block-heading" id="ftoc-heading-7">Kết !</h3>



<p class="wp-block-paragraph">Như vậy là mình đã chia sẻ xong hai cách cơ bản để cài WordPress trên Synology NAS hoặc XPEnology. Trên thực tế để chạy ổn định thì bạn lên cài thủ công và dùng Virtual Host. Như vậy giúp bạn dễ dàng quản lý và chia sẻ nếu cần 😀</p>



<p class="wp-block-paragraph"><em><strong>Chúc các bạn thành công !</strong></em></p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<p class="wp-block-paragraph">Nguồn: nguyenvinh.net</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Cài Đặt WordPress (Phần 1)</title>
		<link>https://blntech.io.vn/cai-dat-wordpress-phan-1/</link>
		
		<dc:creator><![CDATA[nhanvph]]></dc:creator>
		<pubDate>Thu, 26 Mar 2026 07:59:28 +0000</pubDate>
				<category><![CDATA[Xpenology]]></category>
		<category><![CDATA[MariaDB]]></category>
		<category><![CDATA[PhpMyAdmin]]></category>
		<category><![CDATA[Synology]]></category>
		<category><![CDATA[Web Station]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[xpenology]]></category>
		<guid isPermaLink="false">https://blntech.io.vn/?p=4226</guid>

					<description><![CDATA[Note này mình sẽ chia sẻ cách làm một website bằng WordPress Chuẩn bị. Trước hết bạn cần phải xem [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Note này mình sẽ chia sẻ cách làm một website bằng WordPress</p>



<ol class="wp-block-list">
<li>Cài đặt tự động qua Package Center.</li>



<li><a href="https://blntech.io.vn/huong-dan-cai-dat-wordpress-phan-2/" data-type="post" data-id="4224" target="_blank" rel="noreferrer noopener">Cài đặt thủ công (khuyên dùng).</a></li>
</ol>



<h3 class="wp-block-heading" id="ftoc-heading-1">Chuẩn bị.</h3>



<p class="wp-block-paragraph"><strong>Trước hết bạn cần phải xem qua các bài viết và làm các việc sau:</strong></p>



<ul class="wp-block-list">
<li>Hướng dẫn cài đặt Web Station.</li>



<li>Hướng dẫn DDNS cho Domain (tên miền).</li>



<li>Tạo chứng chỉ SSL cho Domain</li>
</ul>



<h3 class="wp-block-heading" id="ftoc-heading-2">Phần 1: Cài đặt qua Package Center.</h3>



<ul class="wp-block-list">
<li><strong>Ưu điểm:</strong>
<ul class="wp-block-list">
<li>Dễ dàng cài đặt.</li>



<li>Đã được Synology tùy chỉnh qua để phù hợp với HĐH Synology DSM.</li>



<li>Có Photo Station Tinymce Plugin và Photo Station WordPress Plugin</li>



<li>Phù hợp cho chạy offline (localhost) phục cho nghiên cứu, phát triển trước.</li>
</ul>
</li>



<li><strong>Nhược điểm:</strong>
<ul class="wp-block-list">
<li>Không update được phiên bản mới nhất nếu như Synology chưa update trong Package Center</li>



<li>Không linh hoạt.</li>
</ul>
</li>
</ul>



<h4 class="wp-block-heading" id="ftoc-heading-3">B1: Tải và cài đặt trong Package Center</h4>



<p class="wp-block-paragraph">Bạn vào&nbsp;<strong>Package Center</strong>&nbsp;tìm kiếm cới từ khóa&nbsp;<strong>WordPress</strong>.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="915" height="574" src="https://blntech.io.vn/wp-content/uploads/2025/10/image-19.png" alt="" class="wp-image-5270" srcset="https://blntech.io.vn/wp-content/uploads/2025/10/image-19.png 915w, https://blntech.io.vn/wp-content/uploads/2025/10/image-19-300x188.png 300w, https://blntech.io.vn/wp-content/uploads/2025/10/image-19-768x482.png 768w" sizes="auto, (max-width: 915px) 100vw, 915px" /></figure>



<p class="wp-block-paragraph">Thời điểm này WordPress phiên bản mới nhất 5.4.1 nhưng trong Package Center vẫn bản 5.2.4</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="915" height="574" src="https://blntech.io.vn/wp-content/uploads/2025/10/image-20.png" alt="" class="wp-image-5271" srcset="https://blntech.io.vn/wp-content/uploads/2025/10/image-20.png 915w, https://blntech.io.vn/wp-content/uploads/2025/10/image-20-300x188.png 300w, https://blntech.io.vn/wp-content/uploads/2025/10/image-20-768x482.png 768w" sizes="auto, (max-width: 915px) 100vw, 915px" /></figure>



<p class="wp-block-paragraph" id="caption-attachment-2242">Bản WordPress trong Package Center sẽ chạy với PHP 7.2. Nếu bạn chưa cài sẽ yêu cầu cài thêm.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="917" height="575" src="https://blntech.io.vn/wp-content/uploads/2025/10/image-21.png" alt="" class="wp-image-5272" srcset="https://blntech.io.vn/wp-content/uploads/2025/10/image-21.png 917w, https://blntech.io.vn/wp-content/uploads/2025/10/image-21-300x188.png 300w, https://blntech.io.vn/wp-content/uploads/2025/10/image-21-768x482.png 768w" sizes="auto, (max-width: 917px) 100vw, 917px" /></figure>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="915" height="574" src="https://blntech.io.vn/wp-content/uploads/2025/10/image-22.png" alt="" class="wp-image-5273" srcset="https://blntech.io.vn/wp-content/uploads/2025/10/image-22.png 915w, https://blntech.io.vn/wp-content/uploads/2025/10/image-22-300x188.png 300w, https://blntech.io.vn/wp-content/uploads/2025/10/image-22-768x482.png 768w" sizes="auto, (max-width: 915px) 100vw, 915px" /></figure>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="914" height="575" src="https://blntech.io.vn/wp-content/uploads/2025/10/image-23.png" alt="" class="wp-image-5274" srcset="https://blntech.io.vn/wp-content/uploads/2025/10/image-23.png 914w, https://blntech.io.vn/wp-content/uploads/2025/10/image-23-300x189.png 300w, https://blntech.io.vn/wp-content/uploads/2025/10/image-23-768x483.png 768w" sizes="auto, (max-width: 914px) 100vw, 914px" /></figure>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="912" height="575" src="https://blntech.io.vn/wp-content/uploads/2025/10/image-24.png" alt="" class="wp-image-5275" srcset="https://blntech.io.vn/wp-content/uploads/2025/10/image-24.png 912w, https://blntech.io.vn/wp-content/uploads/2025/10/image-24-300x189.png 300w, https://blntech.io.vn/wp-content/uploads/2025/10/image-24-768x484.png 768w" sizes="auto, (max-width: 912px) 100vw, 912px" /></figure>



<p class="wp-block-paragraph" id="caption-attachment-2238">Quá trình cài đặt trong 1-3 phút</p>



<h4 class="wp-block-heading" id="ftoc-heading-4">B2: Cài đặt WordPress</h4>



<p class="wp-block-paragraph">Tới đây coi như cơ bản đã hoàn thành. Việc tiếp theo tiến hành cài đặt WordPress.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1024" height="575" src="https://blntech.io.vn/wp-content/uploads/2025/10/image-25.png" alt="" class="wp-image-5276" srcset="https://blntech.io.vn/wp-content/uploads/2025/10/image-25.png 1024w, https://blntech.io.vn/wp-content/uploads/2025/10/image-25-300x168.png 300w, https://blntech.io.vn/wp-content/uploads/2025/10/image-25-768x431.png 768w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph" id="caption-attachment-2237">Vào&nbsp;<strong>Main Menu</strong>&nbsp;mở ứng dụng&nbsp;<strong>WordPress</strong>&nbsp;vừa cài xong. Địa chỉ trang&nbsp;<strong>/wordpress</strong></p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="854" height="702" src="https://blntech.io.vn/wp-content/uploads/2025/10/image-26.png" alt="" class="wp-image-5277" srcset="https://blntech.io.vn/wp-content/uploads/2025/10/image-26.png 854w, https://blntech.io.vn/wp-content/uploads/2025/10/image-26-300x247.png 300w, https://blntech.io.vn/wp-content/uploads/2025/10/image-26-768x631.png 768w" sizes="auto, (max-width: 854px) 100vw, 854px" /></figure>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1024" height="682" src="https://blntech.io.vn/wp-content/uploads/2025/10/image-27.png" alt="" class="wp-image-5278" srcset="https://blntech.io.vn/wp-content/uploads/2025/10/image-27.png 1024w, https://blntech.io.vn/wp-content/uploads/2025/10/image-27-300x200.png 300w, https://blntech.io.vn/wp-content/uploads/2025/10/image-27-768x512.png 768w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="899" height="496" src="https://blntech.io.vn/wp-content/uploads/2025/10/image-28.png" alt="" class="wp-image-5279" srcset="https://blntech.io.vn/wp-content/uploads/2025/10/image-28.png 899w, https://blntech.io.vn/wp-content/uploads/2025/10/image-28-300x166.png 300w, https://blntech.io.vn/wp-content/uploads/2025/10/image-28-768x424.png 768w" sizes="auto, (max-width: 899px) 100vw, 899px" /></figure>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="920" height="609" src="https://blntech.io.vn/wp-content/uploads/2025/10/image-29.png" alt="" class="wp-image-5280" srcset="https://blntech.io.vn/wp-content/uploads/2025/10/image-29.png 920w, https://blntech.io.vn/wp-content/uploads/2025/10/image-29-300x199.png 300w, https://blntech.io.vn/wp-content/uploads/2025/10/image-29-768x508.png 768w" sizes="auto, (max-width: 920px) 100vw, 920px" /></figure>



<p class="wp-block-paragraph" id="caption-attachment-2233">Chỉ cập nhật được&nbsp;<strong>Plugins</strong>&nbsp;và&nbsp;<strong>Theme</strong></p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1024" height="545" src="https://blntech.io.vn/wp-content/uploads/2025/10/image-30.png" alt="" class="wp-image-5281" srcset="https://blntech.io.vn/wp-content/uploads/2025/10/image-30.png 1024w, https://blntech.io.vn/wp-content/uploads/2025/10/image-30-300x160.png 300w, https://blntech.io.vn/wp-content/uploads/2025/10/image-30-768x409.png 768w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph" id="caption-attachment-2250">Thư mục lưu trữ trong File Satation =&gt;&nbsp;<strong>web/wordpress</strong></p>



<p class="wp-block-paragraph">Như vậy là chúng ta đã cài xong WordPress, nhanh chóng và dễ dàng chỉ trong vòng có 5 phút. Nếu bạn nào để chạy offline hoặc chạy dạng&nbsp;<strong><em>http:///wordpress</em></strong>&nbsp;đến đây là xong. Trong trường hợp bạn có domain, sub domain và muốn trang WordPress truy cập bằng domain, sub domain thì đến với bước 3.</p>



<h4 class="wp-block-heading" id="ftoc-heading-5">B3: Truy cập trang web bằng domain (tên miền)</h4>



<ul class="wp-block-list">
<li><strong>Trỏ tên miền về IP.</strong>
<ul class="wp-block-list">
<li>Vào trang quản lý tên miền trỏ về IP của bạn. Nếu mạng internet nhà bạn có ip tĩnh.</li>



<li>Trường hợp không có IP tĩnh thì bạn tham khảo bài viết&nbsp;Hướng dẫn DDNS cho Domain (tên miền).</li>
</ul>
</li>
</ul>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1024" height="362" src="https://blntech.io.vn/wp-content/uploads/2025/10/image-31.png" alt="" class="wp-image-5282" srcset="https://blntech.io.vn/wp-content/uploads/2025/10/image-31.png 1024w, https://blntech.io.vn/wp-content/uploads/2025/10/image-31-300x106.png 300w, https://blntech.io.vn/wp-content/uploads/2025/10/image-31-768x272.png 768w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<ul class="wp-block-list">
<li><strong>Tạo Virtual Host trong Web Station.</strong>
<ul class="wp-block-list">
<li>Bạn xem qua bài viết&nbsp;Hướng dẫn cài đặt Web Station.</li>
</ul>
</li>
</ul>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1024" height="551" src="https://blntech.io.vn/wp-content/uploads/2025/10/image-32.png" alt="" class="wp-image-5283" srcset="https://blntech.io.vn/wp-content/uploads/2025/10/image-32.png 1024w, https://blntech.io.vn/wp-content/uploads/2025/10/image-32-300x161.png 300w, https://blntech.io.vn/wp-content/uploads/2025/10/image-32-768x413.png 768w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph" id="caption-attachment-2258">Lưu ý: bạn cần cấu hình&nbsp;<strong>PHP 7.2</strong>&nbsp;nếu chưa làm. Xem hướng dẫn&nbsp;tại đây.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="931" height="584" src="https://blntech.io.vn/wp-content/uploads/2025/10/image-33.png" alt="" class="wp-image-5284" srcset="https://blntech.io.vn/wp-content/uploads/2025/10/image-33.png 931w, https://blntech.io.vn/wp-content/uploads/2025/10/image-33-300x188.png 300w, https://blntech.io.vn/wp-content/uploads/2025/10/image-33-768x482.png 768w" sizes="auto, (max-width: 931px) 100vw, 931px" /></figure>



<p class="wp-block-paragraph">Nếu bạn không dùng SSL – HTTPS đến đây là xong bước này.</p>



<ul class="wp-block-list">
<li><strong>Cấu hình SSL.</strong>
<ul class="wp-block-list">
<li>Bạn xem bài viết&nbsp;Tạo chứng chỉ SSL cho Domian.</li>



<li>Nếu tên miền của bạn đã tạo SSL và đặt là chứng chỉ mặc định thì xong, không phải thao tác gì nữa. Vì Synology DSM sẽ tự add về chứng chỉ mặc định. Trong trường hợp không phải chứng chỉ mặc định bạn cần phải cấu hình lại như sau.</li>
</ul>
</li>
</ul>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1024" height="479" src="https://blntech.io.vn/wp-content/uploads/2025/10/image-34.png" alt="" class="wp-image-5285" srcset="https://blntech.io.vn/wp-content/uploads/2025/10/image-34.png 1024w, https://blntech.io.vn/wp-content/uploads/2025/10/image-34-300x140.png 300w, https://blntech.io.vn/wp-content/uploads/2025/10/image-34-768x359.png 768w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph" id="caption-attachment-2266">Bạn vào&nbsp;<strong>Control Panel</strong>&nbsp;=&gt;&nbsp;<strong>Security</strong>&nbsp;=&gt;&nbsp;<strong>Certificate</strong></p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1024" height="478" src="https://blntech.io.vn/wp-content/uploads/2025/10/image-35.png" alt="" class="wp-image-5286" srcset="https://blntech.io.vn/wp-content/uploads/2025/10/image-35.png 1024w, https://blntech.io.vn/wp-content/uploads/2025/10/image-35-300x140.png 300w, https://blntech.io.vn/wp-content/uploads/2025/10/image-35-768x359.png 768w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1024" height="479" src="https://blntech.io.vn/wp-content/uploads/2025/10/image-36.png" alt="" class="wp-image-5287" srcset="https://blntech.io.vn/wp-content/uploads/2025/10/image-36.png 1024w, https://blntech.io.vn/wp-content/uploads/2025/10/image-36-300x140.png 300w, https://blntech.io.vn/wp-content/uploads/2025/10/image-36-768x359.png 768w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<h4 class="wp-block-heading" id="ftoc-heading-6">B4: Thay đổi lại địa chỉ truy cập trong WordPress Settings</h4>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1024" height="476" src="https://blntech.io.vn/wp-content/uploads/2025/10/image-37.png" alt="" class="wp-image-5288" srcset="https://blntech.io.vn/wp-content/uploads/2025/10/image-37.png 1024w, https://blntech.io.vn/wp-content/uploads/2025/10/image-37-300x139.png 300w, https://blntech.io.vn/wp-content/uploads/2025/10/image-37-768x357.png 768w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<h3 class="wp-block-heading" id="ftoc-heading-7">Tạm kết !</h3>



<p class="wp-block-paragraph">Trên thực tế nếu dùng Synology NAS làm máy chủ web thì không mấy ai dùng cách này. Như trang này của mình cũng không dùng theo cách này. Mình cài thủ công, tải mã nguồn về rồi tự cấu hình để cài</p>



<p class="wp-block-paragraph"><strong><em>Chúc các bạn thành công !</em></strong></p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<p class="wp-block-paragraph">Nguồn: nguyenvinh.net</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Truy Cập PhpMyAdmin Bằng Tên Miền</title>
		<link>https://blntech.io.vn/truy-cap-phpmyadmin-bang-ten-mien/</link>
		
		<dc:creator><![CDATA[nhanvph]]></dc:creator>
		<pubDate>Wed, 25 Mar 2026 07:43:33 +0000</pubDate>
				<category><![CDATA[Xpenology]]></category>
		<category><![CDATA[MariaDB]]></category>
		<category><![CDATA[PhpMyAdmin]]></category>
		<category><![CDATA[Synology]]></category>
		<category><![CDATA[Web Station]]></category>
		<category><![CDATA[xpenology]]></category>
		<guid isPermaLink="false">https://blntech.io.vn/?p=68</guid>

					<description><![CDATA[Note này mình sẽ chia sẻ – hướng dẫn các bạn tạo tên miền để truy cập vào phpMyAdmin. Thông [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Note này mình sẽ chia sẻ – hướng dẫn các bạn tạo tên miền để truy cập vào phpMyAdmin. Thông thường bạn sẽ mở phpMyAdmin từ Main Menu thì nó link ra đường dẫn&nbsp;/phpMyAdmin. Nhìn nó sẽ ko được chuyên nghiệp 😀 , hoặc trong trường hợp bạn tạo tên miền truy cập tên DSM thì khi bạn truy cập phpMyAdmin từ Main Menu sẽ bị lỗi 404. (Vì sao lại có lỗi này, bạn chỉ cần hiểu đơn giản là lúc này tên miền truy cập DSM nó không index thư mục&nbsp;<strong><em>web</em></strong>, chính vì vậy khi chạy đường dẫn /phpMyAdmin sẽ bị lỗi 404).</p>



<p class="wp-block-paragraph">Để khắc phục thì đơn giản thôi, hãy tạo một tên miền để truy cập nó 😀 . Tiến hành thôi nào.</p>



<h3 class="wp-block-heading" id="ftoc-heading-1">Chuẩn bị</h3>



<p class="wp-block-paragraph">Bạn cần trỏ IP của bạn về tên miền cần miền mà bạn định làm tên miền (hoặc subdomain) truy cập phpMyAdmin.</p>



<ul class="wp-block-list">
<li>Bạn có thể xem qua các bài viết sau:
<ul class="wp-block-list">
<li>Cấu hình DDNS tên miền bất kỳ</li>



<li>Tạo chứng chỉ SSL cho Domain miễn phí</li>
</ul>
</li>



<li>Xem hướng dẫn cài đặt và sử dụng phpMyAdmin:
<ul class="wp-block-list">
<li>Thiết lập Web Server dễ dàng với Web Station</li>



<li>Hướng dẫn sử dụng MariaBD và phpMyAdmin</li>
</ul>
</li>
</ul>



<p class="wp-block-paragraph">Sau khi cài đặt xong&nbsp;<strong><em>phpMyAdmin</em></strong>&nbsp;tại thư mục&nbsp;<strong><em>web</em></strong>&nbsp;sẽ có thêm một thư mục&nbsp;<strong><em>phpMyAdmin</em></strong>.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1024" height="457" src="https://blntech.io.vn/wp-content/uploads/2025/07/image-195.png" alt="" class="wp-image-5013" srcset="https://blntech.io.vn/wp-content/uploads/2025/07/image-195.png 1024w, https://blntech.io.vn/wp-content/uploads/2025/07/image-195-300x134.png 300w, https://blntech.io.vn/wp-content/uploads/2025/07/image-195-768x343.png 768w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<h3 class="wp-block-heading" id="caption-attachment-3807">Tạo Virtual Host cho phpMyAdmin.</h3>



<p class="wp-block-paragraph">Bạn vào ứng dụng&nbsp;<em><strong>Web Station</strong></em>&nbsp;=&gt;&nbsp;<strong><em>Virtual Host</em></strong>. Bạn tạo mới một Vitrual Host như hình dưới.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1024" height="456" src="https://blntech.io.vn/wp-content/uploads/2025/07/image-196.png" alt="" class="wp-image-5014" srcset="https://blntech.io.vn/wp-content/uploads/2025/07/image-196.png 1024w, https://blntech.io.vn/wp-content/uploads/2025/07/image-196-300x134.png 300w, https://blntech.io.vn/wp-content/uploads/2025/07/image-196-768x342.png 768w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1024" height="455" src="https://blntech.io.vn/wp-content/uploads/2025/07/image-197.png" alt="" class="wp-image-5015" srcset="https://blntech.io.vn/wp-content/uploads/2025/07/image-197.png 1024w, https://blntech.io.vn/wp-content/uploads/2025/07/image-197-300x133.png 300w, https://blntech.io.vn/wp-content/uploads/2025/07/image-197-768x341.png 768w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<ul class="wp-block-list">
<li><strong>Hostname:</strong> Bạn nhập tên miền để truy cập phpMyAdmin.</li>



<li><strong>Document root:</strong> Bạn trỏ về thư mục <strong><em>web/phpMyAdmin</em></strong>.</li>
</ul>



<p class="wp-block-paragraph">Như vậy là xong, giờ bạn có thể truy cập vào phpMyAdmin với tên miền của bạn</p>



<h3 class="wp-block-heading" id="ftoc-heading-3">Sửa lỗi phân quyền thư mục phpMyAdmin.</h3>



<p class="wp-block-paragraph">Thường khi bạn tạo Virtual Host trỏ về thư mục nào thì thư mục ấy sẽ bị thây đổi phân quyền đọc ghi dữ liệu. Trong trường hợp bạn truy cập phpMyAdmin bị lỗi phân quyền đọc ghi dữ liệu thì bạn tiến hành lại phân quyền như sau.</p>



<p class="wp-block-paragraph">Quay lại với thư mục&nbsp;<strong><em>web/phpMyAdmin</em></strong>&nbsp;ở bước 1. Click phải chuột vào thư mục&nbsp;<strong><em>phpMyAdmin</em></strong>&nbsp;chọn&nbsp;<strong><em>Properties</em></strong>, chọn sang thẻ&nbsp;<strong><em>Permission</em></strong>. Bạn vào&nbsp;<strong><em>Advanced options tick</em></strong>&nbsp;chọn&nbsp;<strong><em>Exclude inherited permissions</em></strong>.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="749" height="589" src="https://blntech.io.vn/wp-content/uploads/2025/07/image-198.png" alt="" class="wp-image-5016" srcset="https://blntech.io.vn/wp-content/uploads/2025/07/image-198.png 749w, https://blntech.io.vn/wp-content/uploads/2025/07/image-198-300x236.png 300w" sizes="auto, (max-width: 749px) 100vw, 749px" /></figure>



<p class="wp-block-paragraph">Sau khi tick chọn Exclude inherited permissions bạn hãy xóa hết những phân quyền nếu còn.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="749" height="588" src="https://blntech.io.vn/wp-content/uploads/2025/07/image-199.png" alt="" class="wp-image-5017" srcset="https://blntech.io.vn/wp-content/uploads/2025/07/image-199.png 749w, https://blntech.io.vn/wp-content/uploads/2025/07/image-199-300x236.png 300w" sizes="auto, (max-width: 749px) 100vw, 749px" /></figure>



<p class="wp-block-paragraph">Sau khi xóa hết các phân quyền nếu có bạn tiến hành tạo mới 3 phân quyền sau.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="746" height="588" src="https://blntech.io.vn/wp-content/uploads/2025/07/image-200.png" alt="" class="wp-image-5018" srcset="https://blntech.io.vn/wp-content/uploads/2025/07/image-200.png 746w, https://blntech.io.vn/wp-content/uploads/2025/07/image-200-300x236.png 300w" sizes="auto, (max-width: 746px) 100vw, 746px" /></figure>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="748" height="589" src="https://blntech.io.vn/wp-content/uploads/2025/07/image-201.png" alt="" class="wp-image-5019" srcset="https://blntech.io.vn/wp-content/uploads/2025/07/image-201.png 748w, https://blntech.io.vn/wp-content/uploads/2025/07/image-201-300x236.png 300w" sizes="auto, (max-width: 748px) 100vw, 748px" /></figure>



<p class="wp-block-paragraph">Với phân quyền tài khoản&nbsp;<em><strong>admin</strong></em>&nbsp;bạn phân quyền như sau.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="761" height="594" src="https://blntech.io.vn/wp-content/uploads/2025/07/image-202.png" alt="" class="wp-image-5020" srcset="https://blntech.io.vn/wp-content/uploads/2025/07/image-202.png 761w, https://blntech.io.vn/wp-content/uploads/2025/07/image-202-300x234.png 300w" sizes="auto, (max-width: 761px) 100vw, 761px" /></figure>



<p class="wp-block-paragraph" id="caption-attachment-3819"><strong>Read:</strong>&nbsp;Bạn tick full luôn.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="749" height="594" src="https://blntech.io.vn/wp-content/uploads/2025/07/image-203.png" alt="" class="wp-image-5021" srcset="https://blntech.io.vn/wp-content/uploads/2025/07/image-203.png 749w, https://blntech.io.vn/wp-content/uploads/2025/07/image-203-300x238.png 300w" sizes="auto, (max-width: 749px) 100vw, 749px" /></figure>



<p class="wp-block-paragraph" id="caption-attachment-3820"><strong>Write:</strong>&nbsp;Bạn bỏ tick mục Delete dưới cùng.</p>



<p class="wp-block-paragraph">Còn với 2 phân quyền nhóm <strong><em>administration</em></strong> và <strong><em>Everyone</em> </strong>bạn chỉ tick full Read.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="749" height="593" src="https://blntech.io.vn/wp-content/uploads/2025/07/image-204.png" alt="" class="wp-image-5022" srcset="https://blntech.io.vn/wp-content/uploads/2025/07/image-204.png 749w, https://blntech.io.vn/wp-content/uploads/2025/07/image-204-300x238.png 300w" sizes="auto, (max-width: 749px) 100vw, 749px" /></figure>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="750" height="590" src="https://blntech.io.vn/wp-content/uploads/2025/07/image-205.png" alt="" class="wp-image-5023" srcset="https://blntech.io.vn/wp-content/uploads/2025/07/image-205.png 750w, https://blntech.io.vn/wp-content/uploads/2025/07/image-205-300x236.png 300w" sizes="auto, (max-width: 750px) 100vw, 750px" /></figure>



<p class="wp-block-paragraph">Sau khi tạo 3 phân quyền xong. Bạn tick vào&nbsp;<strong><em>Apply to this folder…</em></strong>&nbsp;=&gt;&nbsp;<strong>OK</strong>&nbsp;là xong.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="746" height="588" src="https://blntech.io.vn/wp-content/uploads/2025/07/image-206.png" alt="" class="wp-image-5024" srcset="https://blntech.io.vn/wp-content/uploads/2025/07/image-206.png 746w, https://blntech.io.vn/wp-content/uploads/2025/07/image-206-300x236.png 300w" sizes="auto, (max-width: 746px) 100vw, 746px" /></figure>



<p class="wp-block-paragraph">Bây giờ bạn có thể truy cập vào phpMyAdmin mà không còn lỗi liên quan đến phân quyền nữa.</p>



<h3 class="wp-block-heading" id="ftoc-heading-4">Update DSM 7.</h3>



<p class="wp-block-paragraph">Với DSM 6 để truy cập phpMyAdmin bằng tên miền thì bạn hiểu rằng là chúng ta tạo Virtual Host và index thư mục phpMyAdmin chính vì vậy sẽ xảy ra lỗi phân quyền dẫn đến việc có thể chạy thiếu ổn định hoặc phát sinh lỗi. Còn với DSM 7 thì việc tạo tên miền truy cập quá là đơn giản mà không lo bị lỗi. Vì giờ đây phpMyAdmin là một gói dịch vụ (Package Service) nằm trong Web Station và có thể tùy biến tên miền để truy cập cực kỳ dễ dàng.</p>



<p class="wp-block-paragraph">Bạn mở&nbsp;<strong><em>Web Station</em></strong>&nbsp;=&gt;&nbsp;<strong><em>Web Service Portal</em></strong>&nbsp;=&gt;&nbsp;<strong><em>Create Service Portal</em></strong>&nbsp;=&gt;&nbsp;<strong><em>Package Service Portal</em></strong>&nbsp;=&gt; chọn&nbsp;<strong><em>phpMyAdmin</em></strong>&nbsp;và tiến hành thiết lập.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1024" height="531" src="https://blntech.io.vn/wp-content/uploads/2025/07/image-207.png" alt="" class="wp-image-5025" srcset="https://blntech.io.vn/wp-content/uploads/2025/07/image-207.png 1024w, https://blntech.io.vn/wp-content/uploads/2025/07/image-207-300x156.png 300w, https://blntech.io.vn/wp-content/uploads/2025/07/image-207-768x398.png 768w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="596" height="595" src="https://blntech.io.vn/wp-content/uploads/2025/07/image-208.png" alt="" class="wp-image-5026" srcset="https://blntech.io.vn/wp-content/uploads/2025/07/image-208.png 596w, https://blntech.io.vn/wp-content/uploads/2025/07/image-208-300x300.png 300w, https://blntech.io.vn/wp-content/uploads/2025/07/image-208-150x150.png 150w" sizes="auto, (max-width: 596px) 100vw, 596px" /></figure>





<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="587" height="593" src="https://blntech.io.vn/wp-content/uploads/2025/07/image-210.png" alt="" class="wp-image-5028" srcset="https://blntech.io.vn/wp-content/uploads/2025/07/image-210.png 587w, https://blntech.io.vn/wp-content/uploads/2025/07/image-210-297x300.png 297w" sizes="auto, (max-width: 587px) 100vw, 587px" /></figure>



<p class="wp-block-paragraph" id="caption-attachment-4173"><strong><em>Hostname</em></strong>: Bạn điền tên miền muốn dùng để truy cập vào phpMyAdmin</p>



<p class="wp-block-paragraph"><strong><em>Chúc các bạn thành công !</em></strong></p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<p class="wp-block-paragraph">Nguồn: nguyenvinh.net</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Hướng Dẫn Về MariaBD và phpMyAdmin</title>
		<link>https://blntech.io.vn/huong-dan-ve-mariabd-va-phpmyadmin/</link>
		
		<dc:creator><![CDATA[nhanvph]]></dc:creator>
		<pubDate>Mon, 14 Jul 2025 09:19:42 +0000</pubDate>
				<category><![CDATA[Xpenology]]></category>
		<category><![CDATA[MariaDB]]></category>
		<category><![CDATA[Synology]]></category>
		<category><![CDATA[xpenology]]></category>
		<guid isPermaLink="false">https://blntech.io.vn/?p=98</guid>

					<description><![CDATA[Note này mình chia sẻ cách dùng MariaDB và phpMyAdmin. Đây là hai thành phần quan trọng đối với Web [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Note này mình chia sẻ cách dùng MariaDB và phpMyAdmin. Đây là hai thành phần quan trọng đối với Web server trên mọi nền tảng nói chung và trên Synology NAS (hoặc XPEnology) nói riêng. Về cở bản nó là cơ sở dữ liệu (CSDL) của trang web của bạn </p>



<h3 class="wp-block-heading" id="ftoc-heading-1">Hướng dẫn sử dụng MariaDB</h3>



<p class="wp-block-paragraph"><strong>MariaDB</strong>&nbsp;là một sản phẩm mã nguồn mở tách ra từ mã mở do cộng đồng phát triển của hệ quản trị cơ sở dữ liệu quan hệ MySQL nhằm theo hướng không phải trả phí với GNU GPL. MariaDB được phát triển từ sự dẫn dắt của những nhà phát triển ban đầu của MySQL, do lo ngại khi MySQL bị Oracle Corporation mua lại. Những người đóng góp được yêu cầu chia sẻ quyền tác giả của họ với MariaDB Foundation.</p>



<p class="wp-block-paragraph">MariaDB được định hướng để duy trì khả năng tương thích cao với MySQL, để đảm bảo khả năng hỗ trợ về thư viện đồng thời kết hợp một cách tốt nhất với các API và câu lệnh của MySQL. MariaDB đã có công cụ hỗ lưu trữ XtraDB thay cho InnoDB, cũng như một công cụ lưu trữ mới, Aria, dự định sẽ là một công cụ giao dịch và phi giao dịch thậm chí có thể bao gồm trong các phiên bản MySQL trong tương lai.</p>



<p class="wp-block-paragraph">Nhà phát triển chính của MariDB là Michael “Monty” Widenius, một trong những người sáng lập của MySQL AB và là người sáng lập Chương trình Monty AB. Vào ngày 16 tháng 1 năm 2008, MySQL AB thông báo rằng họ đã đồng ý để Sun Microsystems mua lại với giá xấp xỉ 1 tỷ USD. Việc mua lại hoàn thành vào ngày 26 tháng 2 năm 2008. MariaDB được đặt tên theo con gái của Monty, Maria, tương tự như cách MySQL được đặt tên theo con gái của ông là My. Xem thêm tại&nbsp;<a href="https://vi.wikipedia.org/wiki/MariaDB" target="_blank" rel="noreferrer noopener">Wikipedia</a>.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1024" height="392" src="https://blntech.io.vn/wp-content/uploads/2025/07/image-119.png" alt="" class="wp-image-4865" srcset="https://blntech.io.vn/wp-content/uploads/2025/07/image-119.png 1024w, https://blntech.io.vn/wp-content/uploads/2025/07/image-119-300x115.png 300w, https://blntech.io.vn/wp-content/uploads/2025/07/image-119-768x294.png 768w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph" id="caption-attachment-2085">Vào&nbsp;<strong>Main Menu</strong>&nbsp;=&gt;&nbsp;<strong>MariaDB 10</strong></p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="599" height="497" src="https://blntech.io.vn/wp-content/uploads/2025/07/image-120.png" alt="" class="wp-image-4866" srcset="https://blntech.io.vn/wp-content/uploads/2025/07/image-120.png 599w, https://blntech.io.vn/wp-content/uploads/2025/07/image-120-300x249.png 300w" sizes="auto, (max-width: 599px) 100vw, 599px" /></figure>



<ul class="wp-block-list">
<li>(1) Thay đổi mật khẩu tài khoản root.</li>



<li>(2) Đặt lại mật khẩu trong trường hợp bạn không nhớ mật khẩu.</li>



<li>(3) Đặt lại toàn bộ dữ liệu (xóa toàn bộ 😈 ), lưu ý khi dùng.</li>



<li>(4) Chọn phân vần lưu trữ CSDL.</li>



<li>(5) Cổng của MariaDB – mặc định 3307.</li>
</ul>



<h3 class="wp-block-heading" id="ftoc-heading-2">Hướng dẫn sử dụng phpMyAdmin.</h3>



<p class="wp-block-paragraph"><strong>phpMyAdmin</strong>&nbsp;là một công cụ nguồn mở miễn phí được viết bằng PHP dự định để xử lý quản trị của MySQL thông qua một trình duyệt web. Nó có thể thực hiện nhiều tác vụ như tạo, sửa đổi hoặc xóa bỏ cơ sở dữ liệu, bảng, các trường hoặc bản ghi; thực hiện báo cáo SQL; hoặc quản lý người dùng và cấp phép. Xem thêm tại&nbsp;<a href="https://vi.wikipedia.org/wiki/PhpMyAdmin" target="_blank" rel="noreferrer noopener">Wikipedia</a>.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1024" height="392" src="https://blntech.io.vn/wp-content/uploads/2025/07/image-121.png" alt="" class="wp-image-4867" srcset="https://blntech.io.vn/wp-content/uploads/2025/07/image-121.png 1024w, https://blntech.io.vn/wp-content/uploads/2025/07/image-121-300x115.png 300w, https://blntech.io.vn/wp-content/uploads/2025/07/image-121-768x294.png 768w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph" id="caption-attachment-2086">Vào&nbsp;<strong>Main Menu</strong>&nbsp;=&gt;&nbsp;<strong>phpMyAdmin</strong>&nbsp;hoặc truy cập địa chỉ&nbsp;<strong>ip-nas/phpMyAdmin</strong></p>



<h4 class="wp-block-heading" id="ftoc-heading-3">1. Chọn ngôn ngữ</h4>



<p class="wp-block-paragraph" id="ftoc-heading-3"></p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="662" height="770" src="https://blntech.io.vn/wp-content/uploads/2025/07/image-122.png" alt="" class="wp-image-4868" srcset="https://blntech.io.vn/wp-content/uploads/2025/07/image-122.png 662w, https://blntech.io.vn/wp-content/uploads/2025/07/image-122-258x300.png 258w" sizes="auto, (max-width: 662px) 100vw, 662px" /></figure>



<p class="wp-block-paragraph" id="caption-attachment-2080">Chọn ngôn ngữ trong phpMyAdmin khi chưa đăng nhập</p>



<ul class="wp-block-list">
<li>(1) Chọn ngôn ngữ.</li>



<li>(2) Username: <strong>root</strong>.</li>



<li>(3) Password: được tạo trong quá trình cài MariaDB10.</li>
</ul>



<h4 class="wp-block-heading" id="ftoc-heading-4">2. Tạo Database</h4>



<p class="wp-block-paragraph" id="ftoc-heading-4"></p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="672" height="320" src="https://blntech.io.vn/wp-content/uploads/2025/07/image-123.png" alt="" class="wp-image-4869" srcset="https://blntech.io.vn/wp-content/uploads/2025/07/image-123.png 672w, https://blntech.io.vn/wp-content/uploads/2025/07/image-123-300x143.png 300w" sizes="auto, (max-width: 672px) 100vw, 672px" /></figure>



<p class="wp-block-paragraph" id="caption-attachment-2078">Tạo Database</p>



<ul class="wp-block-list">
<li>(1) Quay trở về giao diện trang chủ phpMyAdmin.</li>



<li>(2) Đi đến màn hình quản lý danh sách database.</li>



<li>(3) Nhập tên cơ sở dữ liệu.</li>



<li>(4) Chọn mã kí tự (charset) cho cơ sở dữ liệu hiện tại.</li>



<li>(5) Tiến hành tạo database.</li>
</ul>



<h4 class="wp-block-heading" id="ftoc-heading-5">3. Truy cập Database</h4>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="951" height="387" src="https://blntech.io.vn/wp-content/uploads/2025/07/image-124.png" alt="" class="wp-image-4870" srcset="https://blntech.io.vn/wp-content/uploads/2025/07/image-124.png 951w, https://blntech.io.vn/wp-content/uploads/2025/07/image-124-300x122.png 300w, https://blntech.io.vn/wp-content/uploads/2025/07/image-124-768x313.png 768w" sizes="auto, (max-width: 951px) 100vw, 951px" /></figure>



<p class="wp-block-paragraph" id="ftoc-heading-5"><a href="https://nguyenvinh.net/wp-content/uploads/2020/05/DSM-HD-phpMyAdmin-4.png"></a>Cơ sở dữ liệu đã được tạo</p>



<ul class="wp-block-list">
<li>(1) Tìm kiếm cơ sở dữ liệu theo tên (ví dụ: tên cơ sở dữ liệu vừa tạo).</li>



<li>(2) Kết quả tìm kiếm sẽ được hiển thị bên dưới, click vào cơ sở dữ liệu đi đến màn hình quản lý cơ sở dữ liệu hiện tại.</li>



<li>(3) Đi đến màn hình quản lý cơ sở dữ liệu hiện tại.</li>
</ul>



<h4 class="wp-block-heading" id="ftoc-heading-6">4. Tạo bảng trong cơ sở dữ liệu.</h4>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="758" height="429" src="https://blntech.io.vn/wp-content/uploads/2025/07/image-125.png" alt="" class="wp-image-4871" srcset="https://blntech.io.vn/wp-content/uploads/2025/07/image-125.png 758w, https://blntech.io.vn/wp-content/uploads/2025/07/image-125-300x170.png 300w" sizes="auto, (max-width: 758px) 100vw, 758px" /></figure>



<p class="wp-block-paragraph"><a href="https://nguyenvinh.net/wp-content/uploads/2020/05/DSM-HD-phpMyAdmin-5.png"></a>Tạo bảng trong cơ sở dữ liệu</p>



<ul class="wp-block-list">
<li>(1) Đi đến màn hình quản lý cơ sở dữ liệu hiện tại.</li>



<li>(2) Đặt tên cho bảng.</li>



<li>(3) Nhập số cột của bảng.</li>



<li>(4) Tạo bảng.</li>
</ul>



<h4 class="wp-block-heading" id="ftoc-heading-7">5. Nhập thông tin cột trong bảng</h4>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="582" height="579" src="https://blntech.io.vn/wp-content/uploads/2025/07/image-126.png" alt="" class="wp-image-4872" srcset="https://blntech.io.vn/wp-content/uploads/2025/07/image-126.png 582w, https://blntech.io.vn/wp-content/uploads/2025/07/image-126-300x298.png 300w, https://blntech.io.vn/wp-content/uploads/2025/07/image-126-150x150.png 150w" sizes="auto, (max-width: 582px) 100vw, 582px" /></figure>



<p class="wp-block-paragraph" id="ftoc-heading-7"><a href="https://nguyenvinh.net/wp-content/uploads/2020/05/DSM-HD-phpMyAdmin-6.png"></a>Nhập thông tin cột trong bảng</p>



<ul class="wp-block-list">
<li>(1) Bảng cần nhập thông tin cột.</li>



<li>(2) + (3) + (4) Nhập tên cột, kiểu giá trị (số: INT, chuỗi: VARCHAR) và chiều dài giá trị.</li>
</ul>



<h4 class="wp-block-heading" id="ftoc-heading-8">6. Tạo khóa chính của bảng.</h4>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1024" height="506" src="https://blntech.io.vn/wp-content/uploads/2025/07/image-127.png" alt="" class="wp-image-4873" srcset="https://blntech.io.vn/wp-content/uploads/2025/07/image-127.png 1024w, https://blntech.io.vn/wp-content/uploads/2025/07/image-127-300x148.png 300w, https://blntech.io.vn/wp-content/uploads/2025/07/image-127-768x380.png 768w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph"><a href="https://nguyenvinh.net/wp-content/uploads/2020/05/DSM-HD-phpMyAdmin-7.png"></a>Tạo khóa chính cho bảng</p>



<ul class="wp-block-list">
<li>(1) Tại cột chọn làm khóa chính, chọn mục A_I (Auto Increment). Ý nghĩa: cột này có giá trị tự tăng dần khi thêm dữ liệu vào bảng. Ví dụ: thêm dòng đầu tiên sẽ có giá trị 1, dòng thứ 2 sẽ có giá trị 2, … Chú ý rằng: cột này không được tự ý nhập vào.</li>



<li>(2) Tuyệt đối không được chỉnh gì trong họp thoại này. Chỉ chọn <strong>Go</strong> để tiến hành chọn khóa chính.</li>
</ul>



<h4 class="wp-block-heading" id="ftoc-heading-9">7. Tổng quan tạo cột trong bảng.</h4>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1024" height="469" src="https://blntech.io.vn/wp-content/uploads/2025/07/image-128.png" alt="" class="wp-image-4874" srcset="https://blntech.io.vn/wp-content/uploads/2025/07/image-128.png 1024w, https://blntech.io.vn/wp-content/uploads/2025/07/image-128-300x137.png 300w, https://blntech.io.vn/wp-content/uploads/2025/07/image-128-768x352.png 768w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph"><a href="https://nguyenvinh.net/wp-content/uploads/2020/05/DSM-HD-phpMyAdmin-8.png"></a>Tổng quan tạo cột trong bảng</p>



<h4 class="wp-block-heading" id="ftoc-heading-10">8. Xem cấu trúc của 1 bảng.</h4>



<p class="wp-block-paragraph">Khi đã tạo bảng thành công, muốn xem lại cấu trúc của bảng, xem lại bảng đó gồm có những cột nào, xem lại bảng đó khóa chính là cột nào, … hoặc là muốn chỉnh sửa lại tên cột, giá trị, … thì thực hành như hình.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1024" height="384" src="https://blntech.io.vn/wp-content/uploads/2025/07/image-129.png" alt="" class="wp-image-4875" srcset="https://blntech.io.vn/wp-content/uploads/2025/07/image-129.png 1024w, https://blntech.io.vn/wp-content/uploads/2025/07/image-129-300x113.png 300w, https://blntech.io.vn/wp-content/uploads/2025/07/image-129-768x288.png 768w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph" id="caption-attachment-2072">Xem cấu trúc của 1 bảng đã tạo trước đó</p>



<ul class="wp-block-list">
<li>(1) Chọn bảng cần xem cấu trúc. Chú ý rằng, trước đó phải chọn database chứa bảng cần xem.</li>



<li>(2) Chọn <strong>Structure</strong>.</li>



<li>(3) Danh sách các cột đã tạo.</li>



<li>(4) Sửa thông tin cột (tên cột, kiểu giá trị, khóa chính, …).</li>



<li>(5) Xóa cột.</li>



<li>(6) Thêm cột mới vào trong bảng. Nhập số cột cần thêm, vị trí cột thêm vào nằm tại vị trí nào. Màn hình thêm cột mới như tạo cột mới cho bảng lúc đầu.</li>
</ul>



<h4 class="wp-block-heading" id="ftoc-heading-11">9. Thêm 1 dòng dữ liệu vào bảng.</h4>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1024" height="339" src="https://blntech.io.vn/wp-content/uploads/2025/07/image-130.png" alt="" class="wp-image-4876" srcset="https://blntech.io.vn/wp-content/uploads/2025/07/image-130.png 1024w, https://blntech.io.vn/wp-content/uploads/2025/07/image-130-300x99.png 300w, https://blntech.io.vn/wp-content/uploads/2025/07/image-130-768x254.png 768w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph" id="caption-attachment-2071">Thêm 1 dòng dữ liệu vào bảng</p>



<ul class="wp-block-list">
<li>(1) Chọn bảng cần thêm dữ liệu, chọn <strong>Insert </strong>để thêm dữ liệu.</li>



<li>(2) + (3) Nhập giá trị cho cột.</li>



<li>(4) Chọn <strong>Go</strong> để thêm dữ liệu.</li>
</ul>



<h4 class="wp-block-heading" id="ftoc-heading-12">10. Xem dữ liệu đã nhập vào trong bảng.</h4>



<p class="wp-block-paragraph">Một bảng gồm nhiều dòng dữ liệu, hiển thị danh sách dữ liệu trong bảng được thực hiện như hình sau.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="801" height="581" src="https://blntech.io.vn/wp-content/uploads/2025/07/image-131.png" alt="" class="wp-image-4877" srcset="https://blntech.io.vn/wp-content/uploads/2025/07/image-131.png 801w, https://blntech.io.vn/wp-content/uploads/2025/07/image-131-300x218.png 300w, https://blntech.io.vn/wp-content/uploads/2025/07/image-131-768x557.png 768w" sizes="auto, (max-width: 801px) 100vw, 801px" /></figure>



<p class="wp-block-paragraph" id="caption-attachment-2070">Xem dữ liệu đã nhập trong bảng</p>



<ul class="wp-block-list">
<li>(1) Chọn bảng cần xem dữ liệu.</li>



<li>(2) Chọn <strong>Browse.</strong></li>



<li>(3) Vùng hiển thị các dòng trong bảng.</li>
</ul>



<h4 class="wp-block-heading" id="ftoc-heading-13">11. Dùng MD5 để mã hóa dữ liệu.</h4>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1024" height="339" src="https://blntech.io.vn/wp-content/uploads/2025/07/image-132.png" alt="" class="wp-image-4878" srcset="https://blntech.io.vn/wp-content/uploads/2025/07/image-132.png 1024w, https://blntech.io.vn/wp-content/uploads/2025/07/image-132-300x99.png 300w, https://blntech.io.vn/wp-content/uploads/2025/07/image-132-768x254.png 768w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph" id="caption-attachment-2069">Mã hóa dữ liệu nhập vào</p>



<ul class="wp-block-list">
<li>(1) Chọn bảng cần thêm dữ liệu, sau đó chọn <strong>Insert</strong> để thêm dữ liệu.</li>



<li>(2) Nhập giá trị cho cột.</li>



<li>(3) Chọn <strong>MD5</strong> (MD5 là giải thuật mã hóa 1 chuỗi đầu vào sang 1 chuỗi mới mà con người không thể biết được).</li>



<li>(4) Giá trị cần mã hóa.</li>



<li>(5) Chọn <strong>Go</strong>.</li>
</ul>



<h4 class="wp-block-heading" id="ftoc-heading-14">12. Xem sự khác biệt giữa giá trị mã hóa và chưa mã hóa.</h4>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="783" height="550" src="https://blntech.io.vn/wp-content/uploads/2025/07/image-133.png" alt="" class="wp-image-4879" srcset="https://blntech.io.vn/wp-content/uploads/2025/07/image-133.png 783w, https://blntech.io.vn/wp-content/uploads/2025/07/image-133-300x211.png 300w, https://blntech.io.vn/wp-content/uploads/2025/07/image-133-768x539.png 768w" sizes="auto, (max-width: 783px) 100vw, 783px" /></figure>



<p class="wp-block-paragraph" id="caption-attachment-2068">Xem sự khác biệt giữa giá trị mã hóa và chưa mã hóa</p>



<ul class="wp-block-list">
<li><strong>Chú ý:</strong> nhờ có mã hóa dữ liệu mới bảo vệ được password của người dùng.</li>
</ul>



<h4 class="wp-block-heading" id="ftoc-heading-15">13. Lưu dữ liệu database về file.</h4>



<p class="wp-block-paragraph">Lưu dữ liệu về file, công việc này mang lại nhiều lợi ích: backup dữ liệu, phòng hờ dữ liệu có bị mất mát,…</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="683" height="348" src="https://blntech.io.vn/wp-content/uploads/2025/07/image-134.png" alt="" class="wp-image-4880" srcset="https://blntech.io.vn/wp-content/uploads/2025/07/image-134.png 683w, https://blntech.io.vn/wp-content/uploads/2025/07/image-134-300x153.png 300w" sizes="auto, (max-width: 683px) 100vw, 683px" /></figure>



<p class="wp-block-paragraph" id="caption-attachment-2067">Lưu dữ liệu database về file</p>



<ul class="wp-block-list">
<li>(1) Chọn cơ sở dữ liệu.</li>



<li>(2) Chọn Export.</li>



<li>(3) Chọn mục custom. Chọn mục này để thiết lập thêm 1 số tùy chọn. Nếu muốn những tùy chọn mặc định có thể chọn <strong>Quick</strong>. Tiếp tục xem thêm phần cấu hình trong các mục sau.</li>
</ul>



<h4 class="wp-block-heading" id="ftoc-heading-16">14. Chọn cấu hình lưu dữ liệu về file.</h4>



<p class="wp-block-paragraph">Khi lưu dữ liệu về file, cần cấu hình một số thông tin.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1024" height="527" src="https://blntech.io.vn/wp-content/uploads/2025/07/image-135.png" alt="" class="wp-image-4881" srcset="https://blntech.io.vn/wp-content/uploads/2025/07/image-135.png 1024w, https://blntech.io.vn/wp-content/uploads/2025/07/image-135-300x154.png 300w, https://blntech.io.vn/wp-content/uploads/2025/07/image-135-768x395.png 768w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph" id="caption-attachment-2066">Chọn cấu hình lưu dữ liệu về file</p>



<ul class="wp-block-list">
<li>(1) Chọn cơ sở dữ liệu cần lưu.</li>



<li>(2) Chọn <strong>Export</strong>.</li>



<li>(3) Tại mục <strong>Object creation options</strong>.</li>



<li>(4) Thêm câu lệnh tạo database.</li>



<li>(5) Thêm câu lệnh tạo table.</li>
</ul>



<h4 class="wp-block-heading" id="ftoc-heading-17">15. Lưu dữ liệu về file.</h4>



<p class="wp-block-paragraph">Tất cả dữ liệu trong cơ sở dữ liệu sẽ được lưu thành 1 file, file này có phần mở rộng là *.sql.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1024" height="779" src="https://blntech.io.vn/wp-content/uploads/2025/07/image-136.png" alt="" class="wp-image-4882" srcset="https://blntech.io.vn/wp-content/uploads/2025/07/image-136.png 1024w, https://blntech.io.vn/wp-content/uploads/2025/07/image-136-300x228.png 300w, https://blntech.io.vn/wp-content/uploads/2025/07/image-136-768x584.png 768w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph" id="caption-attachment-2065">Lưu dữ liệu về file</p>



<p class="wp-block-paragraph">Sau khi đã thiết lập trong các bước trên, nhấn&nbsp;<strong>Go</strong>&nbsp;tại vị trí (3) để lưu thành file. Gợi ý: cách đặt tên file trùng với tên cơ sở dữ liệu. Ví dụ: demo.sql.</p>



<h4 class="wp-block-heading" id="ftoc-heading-18">16. Xóa bảng trong cơ sở dữ liệu.</h4>



<p class="wp-block-paragraph">Một cơ sở dữ liệu có thể có nhiều bảng, tại vị trí bảng cần xóa chọn như hình sau.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1024" height="225" src="https://blntech.io.vn/wp-content/uploads/2025/07/image-137.png" alt="" class="wp-image-4883" srcset="https://blntech.io.vn/wp-content/uploads/2025/07/image-137.png 1024w, https://blntech.io.vn/wp-content/uploads/2025/07/image-137-300x66.png 300w, https://blntech.io.vn/wp-content/uploads/2025/07/image-137-768x169.png 768w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph" id="caption-attachment-2064">Xóa bảng</p>



<ul class="wp-block-list">
<li>(1) Chọn cơ sở dữ liệu chứa bảng cần xóa.</li>



<li>(2) Tại vị trí bảng cần xóa.</li>



<li>(3) Chọn <strong>Drop</strong> để xóa bảng.</li>
</ul>



<h4 class="wp-block-heading" id="ftoc-heading-19">17. Màn hình kiểm tra sau khi đã xóa bảng trong cơ sở dữ liệu.</h4>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="892" height="384" src="https://blntech.io.vn/wp-content/uploads/2025/07/image-138.png" alt="" class="wp-image-4884" srcset="https://blntech.io.vn/wp-content/uploads/2025/07/image-138.png 892w, https://blntech.io.vn/wp-content/uploads/2025/07/image-138-300x129.png 300w, https://blntech.io.vn/wp-content/uploads/2025/07/image-138-768x331.png 768w" sizes="auto, (max-width: 892px) 100vw, 892px" /></figure>



<p class="wp-block-paragraph" id="caption-attachment-2063">Bảng đã được xóa</p>



<ul class="wp-block-list">
<li>(1) Chọn cơ sở dữ liệu cần xem.</li>



<li>(2) Danh sách bảng trong cơ sở dữ liệu. Đã xóa nên không có bảng nào trong cơ sở dữ liệu.</li>
</ul>



<h4 class="wp-block-heading" id="ftoc-heading-20">18. Màn hình chọn file để cài đặt dữ liệu.</h4>



<p class="wp-block-paragraph">Tạo database để cài đặt, có thể không cần tạo cũng được (trong trường hợp nếu làm đúng như bài viết này hướng dẫn).</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="788" height="440" src="https://blntech.io.vn/wp-content/uploads/2025/07/image-139.png" alt="" class="wp-image-4885" srcset="https://blntech.io.vn/wp-content/uploads/2025/07/image-139.png 788w, https://blntech.io.vn/wp-content/uploads/2025/07/image-139-300x168.png 300w, https://blntech.io.vn/wp-content/uploads/2025/07/image-139-768x429.png 768w" sizes="auto, (max-width: 788px) 100vw, 788px" /></figure>



<p class="wp-block-paragraph" id="caption-attachment-2062">Cài đặt dữ liệu từ file đã lưu trước đó</p>



<ul class="wp-block-list">
<li>(1) Tạo và chọn database cần cài đặt dữ liệu.</li>



<li>(2) Chọn <strong>Import</strong>.</li>



<li>(3) Chọn file cài đặt.</li>
</ul>



<h4 class="wp-block-heading" id="ftoc-heading-21">19. Xem dữ liệu sau khi cài đặt từ file.</h4>



<p class="wp-block-paragraph">Kiểm tra dữ liệu sau khi cài đặt từ file.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1024" height="261" src="https://blntech.io.vn/wp-content/uploads/2025/07/image-140.png" alt="" class="wp-image-4886" srcset="https://blntech.io.vn/wp-content/uploads/2025/07/image-140.png 1024w, https://blntech.io.vn/wp-content/uploads/2025/07/image-140-300x76.png 300w, https://blntech.io.vn/wp-content/uploads/2025/07/image-140-768x196.png 768w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph" id="caption-attachment-2061">Dữ liệu đã được cài đặt thành công từ file</p>



<h4 class="wp-block-heading" id="ftoc-heading-22">20. Sửa tên bảng.</h4>



<p class="wp-block-paragraph">Trong trường hợp muốn sửa tên bảng trong cơ sở dữ liệu.</p>





<p class="wp-block-paragraph" id="caption-attachment-2060">Sửa tên bảng</p>



<ul class="wp-block-list">
<li>(1) Chọn bảng cần sửa tên (chọn cơ sở dữ liệu -> chọn bảng).</li>



<li>(2) Chọn <strong>Operations</strong>.</li>



<li>(3) Nhập tên mới của bảng.</li>



<li>(4) Chọn <strong>Go</strong>.</li>
</ul>



<h4 class="wp-block-heading" id="ftoc-heading-23">21. Sửa tên Database.</h4>



<p class="wp-block-paragraph">Trong trường hợp muốn sửa tên của database.</p>



<p class="wp-block-paragraph">Ví dụ: sửa tên <strong>demo</strong> thành <strong>tailieuweb</strong>.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1024" height="416" src="https://blntech.io.vn/wp-content/uploads/2025/07/image-142.png" alt="" class="wp-image-4888" srcset="https://blntech.io.vn/wp-content/uploads/2025/07/image-142.png 1024w, https://blntech.io.vn/wp-content/uploads/2025/07/image-142-300x122.png 300w, https://blntech.io.vn/wp-content/uploads/2025/07/image-142-768x312.png 768w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph" id="caption-attachment-2059">Sửa tên Database</p>



<ul class="wp-block-list">
<li>(1) Chọn database cần sửa tên.</li>



<li>(2) Chọn <strong>Operations</strong>.</li>



<li>(3) Nhập tên mới của database (ví dụ: tailieuweb).</li>



<li>(4) Chọn <strong>Go</strong>.</li>
</ul>



<h3 class="wp-block-heading" id="ftoc-heading-24">Kết !</h3>



<p class="wp-block-paragraph">Quá dễ dàng phải không&nbsp;<img decoding="async" src="blob:https://blntech.io.vn/55d56d46-0ee0-47d7-91cb-9d8ad842744d" alt=":mrgreen:">&nbsp;. Những gì mà Synology DSM mang lại cho ta thấy dễ dùng, đơn giản mà vẫn đủ dùng. Phần hướng dẫn sử dụng phpMyAdmin thì mình tham khảo trên mạng rồi đưa vào để cho biết thôi. Chứ các mã nguồn như WordPress, phpBB… nó cài đặt auto hết 😀</p>



<p class="wp-block-paragraph"><strong><em>Chúc các bạn thành công !</em></strong></p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<p class="wp-block-paragraph">Nguồn : vinhnguyen.net</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
