Để đảm bảo an toàn cho việc backup/restore databse, chuyển server mà ít bị lỗi font tiếng Việt trong MySQL, ta thực hiện các bước sau:
Bước 1. Export CSDL
Ta sử dụng công cụ phpMyAdmin để tiến hành export và import CSDL.
- Chọn Export > Custom - display all possible options.
- Ở phần character set of file chọn utf8, khi đó tất cả các table được export đều có character-set là utf8.
- Click Go để tiến hành export CSDL.
Bước 2. Import CSDLChọn tab Import, chọn file CSDL cần upload, chọn character set of the file là utf-8.
Sau đó nhấn Go để tiến hành import.
Related Posts:
MySQL Basics
Install MySQL Server
Debian/Ubuntu
[mitesh@Matrix ~]$ sudo apt-get update && sudo apt-get install -y mysql-server
Redhat/CentOS
[mitesh@Matrix ~]$ sudo yum install -y mysql-server
Important Files
Configuratio… Read More
Restoring Database Privileges
I’ve seen several cases in the last few months where database users seemingly “disappear” or privileges appear to become invalid when restoring MySQL data or an entire server from raw backups. This may commonly be attributed… Read More
How to Change the Location of MySQL on cPanel
There may be some situations where you have to move the location of MySQL, for example, if you’re out of disk space or perhaps looking to host it on another device to increase performance. Whatever the reason, moving MySQL i… Read More
Backup và Restore MySQL Database bằng lệnh
Nếu bạn đang sử dụng MySQL database, chắc chắn bạn sẽ không mong muốn dữ liệu của bạn bị mât. Do vậy việc backup MySQL database thường xuyên là cần thiết. Bạn có thể đơn giản hóa bằng cách sử dụng lệnh tr… Read More
Disk Space for MySQL Databases in cPanel Show as 0MB
When you upgrade from cPanel 11.24 to 11.25, your users may notice that in cPanel, their MySQL databases show 0MB of disk space used, when they know their databases are much larger. This is due to an option in cPanel that yo… Read More
0 comments:
Post a Comment