You should specify an explicit version, for example mysql-client To download and install, including any dependencies, use the apt-get command, specifying the packages that you want to install. Before installing, make sure that you update your apt-get index files to ensure you are downloading the latest available version.
The apt-get command installs a number of packages, including the MySQL server, in order to provide the typical tools and application environment. This can mean that you install a large number of packages in addition to the main MySQL package. During installation, the initial database is created, and you are prompted for the MySQL root password and confirmation. The server should already be started. If you choose to install the minimal install distribution, remember to adjust for the difference in file name format in the instructions that follow.
If you have previously installed MySQL using your operating system native package management system, such as Yum or APT, you may experience problems installing using a native binary.
Make sure your previous MySQL installation has been removed entirely using your package management system , and that any additional files, such as old versions of your data files, have also been removed.
MySQL has a dependency on the libaio library. Data directory initialization and subsequent server startup steps fail if this library is not installed locally. If necessary, install it using the appropriate package manager. For example, on Yum-based systems:. To work around this issue, install the ncurses-compat-libs package:. This creates the directories shown in the following table. 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.
This procedure assumes that you have root administrator access to your system. Alternatively, you can prefix each command using the sudo Linux or pfexec Solaris command.
See Section 5. A more detailed version of the preceding description for installing a binary distribution follows. 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 mysql group and the mysql user. You might want to call the user and group something else instead of mysql. If so, substitute the appropriate name in the following instructions.
Omit these options if your useradd does not support them. Pick the directory under which you want to unpack the distribution and change location into it. 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. 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. If your tar does not support the xz format then use the xz command to unpack the distribution and tar to unpack it. Replace the preceding tar command with the following alternative command to uncompress and extract the distribution:. Next, create a symbolic link to the installation directory created by tar :.
The ln command makes a symbolic link to the installation directory. The 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. Initializing the Data Directory.
MySQL 8. Table 1.
0コメント