content_image/792033.jpg content_image/792046.jpg
<img src='content_image/792033.jpg'>

## Warnings 

•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. You should also check for configuration files such as /etc/ my.cnf  or the /etc/mysql  directory and delete them. 

For information about replacing third-party packages with official MySQL packages, see the related APT guide or Yum guide. 

•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: 

shell> yum search libaio # search for info shell> yum install libaio # install library 

Or, on APT-based systems: 

shell> apt-cache search libaio # search for info shell> apt-get install libaio1 # install library 

• Oracle Linux 8 / Red Hat 8  (EL8): These platforms by default do not install the file /lib64/libtinfo.so.5 , which is required by the MySQL client bin/ mysql  for packages mysql-VERSION-el7-x86_64.tar.gz  and mysql- VERSION-linux-glibc2.12-x86_64.tar.xz . To work around this issue, install the ncurses-compat-libs  package: 

shell> yum install ncurses-compat-libs 

To install a compressed tar  file binary distribution, unpack it at the installation location you choose (typically /usr/local/mysql ). This creates the directories shown in the following table. 

<img src='content_image/792046.jpg'>

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 Section 2.9, “Installing MySQL from Source” . 

To install and use a MySQL binary distribution, the command sequence looks like this: 

