Find the answer to your Linux question:
Results 1 to 4 of 4
Please I am installing MySQL Community version 5.0 on CentOS Linux version 4. I got the following error: bash: scripts/mysql_install_db: No such file or directory [root@isxp1315c mysql]# There is no ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2007
    Posts
    3

    MySQL Installation


    Please I am installing MySQL Community version 5.0 on CentOS Linux version 4. I got the following error:

    bash: scripts/mysql_install_db: No such file or directory
    [root@isxp1315c mysql]#

    There is no mysql_install_db but there is mysql_install_db.sh in scripts directory. I used mysql_install_db.sh but it gave this error:

    [root@isxp1315c mysql]# scripts/mysql_install_db.sh --user=mysql
    bash: scripts/mysql_install_db.sh: Permission denied


    I then ran the command as mysql user and I still got this:

    [mysql@isxp1315c mysql]$ scripts/mysql_install_db.sh
    -bash: scripts/mysql_install_db.sh: Permission denied

    Please any help? Why is the scripts/mysql_install_db file not available?

    Any help is appreciated
    Regards
    Gokop

  2. #2
    Linux Engineer Thrillhouse's Avatar
    Join Date
    Jun 2006
    Location
    Arlington, VA, USA
    Posts
    1,377
    Welcome to the forums, gokop. Are you sure the file is executable? What happens if you run:
    Code:
    chmod +x mysql_install_db.sh
    and then try running the script again like this:
    Code:
    ./mysql_install_db.sh

  3. #3
    Just Joined!
    Join Date
    Nov 2007
    Posts
    3

    MyAQL Installation

    Dear All,

    Thanks for the help. I chmod the mysql_install_db.sh file and ran ./mysql_install_db.sh but got this error again:

    -bash: makeinstall: command not found
    [mysql@isxp1315c scripts]$ ./mysql_install_db.sh
    ./mysql_install_db.sh: line 118: my_print_defaults: command not found
    FATAL ERROR Didn't find @libexecdir@/mysqld
    You should do a 'make install' before executing this script


    I tried the make and makeinstall commands but also failed.

    Any help is appreciated
    regards
    Gokop

  4. #4
    Linux Engineer Thrillhouse's Avatar
    Join Date
    Jun 2006
    Location
    Arlington, VA, USA
    Posts
    1,377
    Is there a configure script in that directory? Usually, that has to be run before make or make install.
    Code:
    ./configure
    I think configure and make can be run as a normal user but make install requires root privileges.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •