LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   mysql permission denied. but i am root... (https://www.linuxquestions.org/questions/linux-server-73/mysql-permission-denied-but-i-am-root-800647/)

oznola 04-07-2010 03:06 PM

mysql permission denied. but i am root...
 
hi,

i am trying to setup a new database on my debian etch server using the following command line...

Quote:

/usr/share/doc/wordpress/examples/setup-mysql -n example example.com
but when i run it i get the following error even though i am root...

Quote:

bubba:/var/www# /usr/share/doc/wordpress/examples/setup-mysql -n alonzofretwell alonzofretwell.com
bash: /usr/share/doc/wordpress/examples/setup-mysql: Permission denied
bubba:/var/www#
:scratch:

please advise.

nonamenobody 04-07-2010 04:58 PM

Quote:

Originally Posted by oznola (Post 3927806)
hi,

i am trying to setup a new database on my debian etch server using the following command line...



but when i run it i get the following error even though i am root...

:scratch:

please advise.

What does the following output:
Code:

ls -l /usr/share/doc/wordpress/examples/setup-mysql
My guess is that there are no execute permissions on the file and you will need to make it executable.

oznola 04-07-2010 05:22 PM

hi,

here is that output...

Quote:

bubba:/home/af# ls -l /usr/share/doc/wordpress/examples/setup-mysql
-rw-r--r-- 1 root root 3401 2008-07-03 11:46 /usr/share/doc/wordpress/examples/setup-mysql
bubba:/home/af#
it appears you are correct. what should the permissions be please?

(i am going to try chmod 700)

thank you.


All times are GMT -5. The time now is 12:52 AM.