Installing MySQL on Unix/Linux Using Generic Binaries 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. •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: • 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: For information about replacing third-party packages with official MySQL packages, see the related APT guide or Yum guide. Or, on APT-based systems: shell>  yum search libaio # search for info shell>  yum install libaio # install library shell>  apt-cache search libaio # search for info shell>  apt-get install libaio1 # install library 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. Table 2.3 MySQL Installation Layout for Generic Unix/Linux Binary Package Directory Contents of Directory bin mysqld  server, client and utility programs docs MySQL manual in Info format man Unix manual pages include Include (header) files lib Libraries share Error messages, dictionary, and SQL for database installation support-files Miscellaneous support files 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: 112