Mysql linux generic là gì
Đôi khi cần import nhưng file lớn tới vài trăm MB mà bạn sử dụng giao diện để export/import sẽ mất thời gian và thao tác dễ fail, khó đó bạn nên sử dụng cmd của linux để xử lý cho nhanh và an toàn. Để thực hiện được AZDIGI xin hướng dẫn bạn như sau. Đầu tiên thì bạn cần
đăng nhập vào VPS Linux với giao thức SSH. Sau đó sử dụng các lệnh tương ứng như dưới đây để backup và restore database. Để backup database, bạn cần có đầy đủ thông tin của database cần backup gồm : user , database name, password của database. Khi có đầy đủ thông tin các
bạn chạy lệnh: Trong đó:
Lệnh mysql để restore databaseĐể restore database, bạn cần tạo mới một database gồm: user database, database name, pass. Khi có đầy đủ thông tin các bạn chạy lệnh: mysql -u admin_azdigi1 -p admin_azdigi1 < tenfile.sql Trong đó:
Cảm ơn bạn đã theo dõi bài viết, để hỗ trợ xử lý bạn có thể liên hệ với kỹ thuật AZDIGI tại 2 kênh bên dưới. • Hotline 247: 028 730 24768 (Ext 0) Author Bio
Mình là Quân, hiện đang công tác tại AZDIGI với vị trí là SysAdmin. Mình đam mê viết Blog. Vì viết Blog giúp mình trau dồi được nhiều kỹ năng. Học hỏi thêm nhiều kiến thức mới, từ đó mình có thể chia sẻ đến các bạn các bài viết tài liệu bổ ích hơn. Hiện mình đang là Admin của Nhóm Hỗ Trợ Hosting VPS: Và đây là Blog cá nhân của mình: https://dotrungquan.info/ Articles by Đỗ Trung Quân Oracle provides a set of binary distributions of MySQL. These include generic binary distributions in the form of compressed tar files (files with a This section covers the installation of MySQL from a compressed tar file binary distribution on Unix/Linux platforms. For Linux-generic binary distribution installation instructions with a focus on MySQL security features, refer to the Secure Deployment Guide. For other platform-specific binary package formats, see the other platform-specific sections in this manual. For example, for Windows distributions, see Installing MySQL on Microsoft Windows. See How to Get MySQL on how to obtain MySQL in different distribution formats. MySQL compressed tar file binary distributions have names of the form There is also a “minimal install” version of the MySQL compressed tar file for the Linux generic binary distribution, which has a name of the form Warnings
To install a compressed tar file binary distribution, unpack it at the installation location you choose (typically Table 1.1 MySQL Installation Layout for Generic Unix/Linux Binary Package
Debug versions of the mysqld binary are available as mysqld-debug. To compile your own debug version of MySQL from a source distribution, use the appropriate configuration options to enable debugging support. See Installing MySQL from Source. To install and use a MySQL binary distribution, the command sequence looks like this:
Note This procedure assumes that you have The A more detailed version of the preceding description for installing a binary distribution follows. Create a mysql User and Group If your system does not already have a user and group to use for running mysqld, you may need to create them. The following commands add the
Note Because the user is required only for ownership purposes, not login purposes, the useradd command uses the Obtain and Unpack the Distribution Pick the directory under which you want to unpack the distribution
and change location into it. The example here unpacks the distribution under
Obtain a distribution file using the instructions in How to Get MySQL. For a given release, binary distributions for all platforms are built from the same MySQL source distribution. Unpack the distribution, which creates the installation directory. tar can uncompress and unpack the distribution if it has
The tar command creates a directory named To install MySQL from a compressed tar file binary distribution, your system must have
GNU Note The compression algorithm changed from Gzip to XZ in MySQL Server 8.0.12; and the generic binary's file extension changed from .tar.gz to .tar.xz. GNU tar is known to work. The standard tar provided with some operating systems is not able to unpack the long file names in the MySQL
distribution. You should download and install GNU tar, or if available, use a preinstalled version of GNU tar. Usually this is available as gnutar, gtar, or as tar within a GNU or Free Software directory, such as If your tar does not support the
Next, create a symbolic link to the installation directory created by tar:
The
Perform Postinstallation SetupThe remainder of the installation process involves setting distribution ownership and access permissions, initializing the data directory, starting the MySQL server, and setting up the configuration file. For instructions, see Postinstallation Setup and Testing. |