操作系统ubuntu9.10,虚拟机
下载mysql-5.0.56.tar.gz,解压在目录tmp下:
#cd /tmp
#tar -zxvf mysql-5.0.56.tar.gz
将解压的文件夹复制到/usr/local/下
#cp -rf /tmp/mysql-5.0.56 /usr/local/
连接到 mysql
#cd /tmp/mysql
#ln -s mysql-5.0.56 /usr/local/mysql
初始化表
#cd /usr/local/mysql
#./scripts/mysql_install_db.sh --user=mysql
执行最后一句时报错:
bash: ./scripts/mysql_install_db.sh Permission denied
说明:
我用的是root账号,添加了mysql组
groupadd mysql
useradd mysql -g mysql
请详细点,我是linux新手,谢谢
13 个解决方案
#1
ll ./scripts/mysql_install_db.sh
看一下权限。
看一下权限。
#2
怎么看权限啊?
#3
ll ./scripts/mysql_install_db.sh
你对LINUX熟悉吗?
#4
第一天用 。。。
#5
那建议先找本 24 小时熟悉LINUX看一下,了解一些操作系统的基本指令和概念,这样会比较容易。
#6
解决这个问题需要什么命令啊?
#7
ll ./scripts/mysql_install_db.sh
#8
谢谢
ubuntus9.10不支持ll,用下面命令查
ls -l ./scripts/mysql_install_db.sh
得到如下结果,我知道w是写,r是读,不过不知道这个结果是什么意思,通过这个结果怎么解决权限问题:
-rw-r--r-- 1 root root 13667 2009-12-10 ./scripts/mysql_install_db.sh
ubuntus9.10不支持ll,用下面命令查
ls -l ./scripts/mysql_install_db.sh
得到如下结果,我知道w是写,r是读,不过不知道这个结果是什么意思,通过这个结果怎么解决权限问题:
-rw-r--r-- 1 root root 13667 2009-12-10 ./scripts/mysql_install_db.sh
#9
zai xian deng...
#10
chmod +777 ./scripts/mysql_install_db.sh
#11
非常感谢,增加权限之后,错误变成了:
could not find @bindir@/my_print_defaults
If you are using a binary release ,you must run this script from
within the directory the archive extracted into. If you compiled
MySQL yourself you must run 'make install' first.
我执行make之后会提示我
no targets specified and no makefiles found.stop
could not find @bindir@/my_print_defaults
If you are using a binary release ,you must run this script from
within the directory the archive extracted into. If you compiled
MySQL yourself you must run 'make install' first.
我执行make之后会提示我
no targets specified and no makefiles found.stop
#12
make install
#13
make install会提示
no rule to make target 'install'. stop
no rule to make target 'install'. stop
#1
ll ./scripts/mysql_install_db.sh
看一下权限。
看一下权限。
#2
怎么看权限啊?
#3
ll ./scripts/mysql_install_db.sh
你对LINUX熟悉吗?
#4
第一天用 。。。
#5
那建议先找本 24 小时熟悉LINUX看一下,了解一些操作系统的基本指令和概念,这样会比较容易。
#6
解决这个问题需要什么命令啊?
#7
ll ./scripts/mysql_install_db.sh
#8
谢谢
ubuntus9.10不支持ll,用下面命令查
ls -l ./scripts/mysql_install_db.sh
得到如下结果,我知道w是写,r是读,不过不知道这个结果是什么意思,通过这个结果怎么解决权限问题:
-rw-r--r-- 1 root root 13667 2009-12-10 ./scripts/mysql_install_db.sh
ubuntus9.10不支持ll,用下面命令查
ls -l ./scripts/mysql_install_db.sh
得到如下结果,我知道w是写,r是读,不过不知道这个结果是什么意思,通过这个结果怎么解决权限问题:
-rw-r--r-- 1 root root 13667 2009-12-10 ./scripts/mysql_install_db.sh
#9
zai xian deng...
#10
chmod +777 ./scripts/mysql_install_db.sh
#11
非常感谢,增加权限之后,错误变成了:
could not find @bindir@/my_print_defaults
If you are using a binary release ,you must run this script from
within the directory the archive extracted into. If you compiled
MySQL yourself you must run 'make install' first.
我执行make之后会提示我
no targets specified and no makefiles found.stop
could not find @bindir@/my_print_defaults
If you are using a binary release ,you must run this script from
within the directory the archive extracted into. If you compiled
MySQL yourself you must run 'make install' first.
我执行make之后会提示我
no targets specified and no makefiles found.stop
#12
make install
#13
make install会提示
no rule to make target 'install'. stop
no rule to make target 'install'. stop