-
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
-
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
-
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
-
Is there a configure script in that directory? Usually, that has to be run before make or make install.
I think configure and make can be run as a normal user but make install requires root privileges.