permission-denied

java.sql.SQLException: Access denied for user

こ雲淡風輕ζ 提交于 2019-12-02 01:14:44
I want to create an user that can access from any hosts to Mysql server I use create user abc@10.10.131.17 identified by 'abc123' and grant all privileges mydb.* to 'abc'@'%'; But when i run client,the error occurs: "java.sql.SQLException: Access denied for user 'abc'@'10.10.0.7' (using password: YES) help me,please! One obvious guess would be that you didn't do FLUSH PRIVILEGES; after issuing GRANT statement. Another obvious guess (not sure if typo in the question) is that syntax of GRANT is GRANT ALL PRIVILEGES ON mydb.* TO 'abc'@'%'; , with ON in it. You have created an user with allowing

gke cant disable Transparent Huge Pages… permission denied

无人久伴 提交于 2019-12-01 18:05:36
I am trying to run a redis image in gke. It works except I get the dreaded "Transparent Huge Pages" warning: WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled. Redis is currently too slow to be useful... So I tied turning off THP: sheena@gke-projectwaxd-cluster-default-pool-23593a74

using shutil.copyfile I get a Python IOError: [Errno 13] Permission denied:

可紊 提交于 2019-12-01 16:13:39
I have some python code using shutil.copyfile: import os import shutil src='C:\Documents and Settings\user\Desktop\FilesPy' des='C:\Documents and Settings\user\Desktop\\tryPy\Output' x=os.listdir(src) a=os.path.join(src,x[1]) shutil.copyfile(a,des) print a It gives me an error: IOError: [Errno 13] Permission denied: 'C:\\Documents and Settings\\user\\Desktop\\tryPy\\Output' Why don't I have permission to copy the file? From the documentation of shutil.copyfile : Copy the contents (no metadata) of the file named src to a file named dst. dst must be the complete target file name; look at shutil

Encountered errors while bringing up the project

梦想与她 提交于 2019-12-01 13:36:27
I have a problem when I am installing odoo 10 by docker. I can't compose up docker.error while creating mount source path. People can help me! Thanks! ERROR: for dockercomposeodoo100_odoo10_1 Cannot start service odoo10: b"error while creating mount source path '/host_mnt/c/Users/hoang/Downloads/docker-compose-odoo-10.0/o_etc': mkdir /host_mnt/c/Users/hoang/Downloads: permission denied" ERROR: for odoo10 Cannot start service odoo10: b"error while creating mount source path '/host_mnt/c/Users/hoang/Downloads/docker-compose-odoo-10.0/o_etc': mkdir /host_mnt/c/Users/hoang/Downloads: permission

Android Permission Denial: forceStopPackage()

风流意气都作罢 提交于 2019-12-01 11:40:17
问题 I am try to kill another application using forceStopPackage() . But my application shows runtime error. Error : java.lang.SecurityException: Permission Denial: forceStopPackage() from pid=10377, uid=10200 requires android.permission.FORCE_STOP_PACKAGES In my manifest file i added the following permissions. <uses-permission android:name="android.permission.GET_TASKS" /> <uses-permission android:name="android.permission.KILL_BACKGROUND_PROCESSES" /> <permission android:name="android.permission

How can I allow the TTS to write files to my app's directories?

拥有回忆 提交于 2019-12-01 11:18:07
I want to write output from the TextToSpeech engine to my app's cache directory. In order to for the TTS to write there I first have to give it permissions to do so. But I don't know how. I understand that normally such problems can be solved by handing a FileDescriptor over thus giving permissions to access a specific file. But I can't do that with TTS, as the TextToSpeech.synthesizeToFile method only accepts the file path as a String, no FileDescriptor . So what to do? To make my point that TTS really hasn't permissions to write to my app's directories, here's the code...: TextToSpeech mTts

Compiling with GCC on windows 7: \\mingw32\\bin\\ld.exe: cannot open output file a.exe

对着背影说爱祢 提交于 2019-12-01 09:34:10
This is what I get when trying to compile a simple hello world program with gcc. c:\>gcc hello.c hello.c:9:2: warning: no newline at end of file C:\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe: cannot open output file a.exe : Permission denied collect2: ld returned 1 exit status Does it have something to do with windows 7 administrative privileges? If the output file is being created but cannot be opened, where is it located? Sorry if this is too much of a noobie question. I have been using Dev-C++ for compiling my source code till now. I tried googling around the error

PHP - rmdir (permission denied)

与世无争的帅哥 提交于 2019-12-01 09:29:45
I have an easy script to create and delete a folder, but when I try to delete a folder, it brings up and error. The code: <?php if ($_POST['hidden']) { $key = "../g_test/uploads"; $new_folder = $_POST['nazevS']; $new_dir_path = $key."/".$new_folder; $dir = mkdir($new_dir_path); if($dir) chmod ($new_dir_path, 0777); } if ($_POST['hiddenSS']) { $key = "../g_test/uploads"; $new_folder = $_POST['nazevS']; rmdir($key."/".$new_folder); } ?> The error msg: Warning: rmdir(../g_test/uploads/) [function.rmdir]: Permission denied in /home/free/howto.cz/m/mousemys/root/www/g_test/upload.php on line 51

Compiling with GCC on windows 7: \mingw32\bin\ld.exe: cannot open output file a.exe

╄→гoц情女王★ 提交于 2019-12-01 06:53:24
问题 This is what I get when trying to compile a simple hello world program with gcc. c:\>gcc hello.c hello.c:9:2: warning: no newline at end of file C:\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe: cannot open output file a.exe : Permission denied collect2: ld returned 1 exit status Does it have something to do with windows 7 administrative privileges? If the output file is being created but cannot be opened, where is it located? Sorry if this is too much of a noobie question

java.lang.SecurityException: Permission Denial: opening provider

左心房为你撑大大i 提交于 2019-12-01 06:35:31
I start image picker intent using: final Intent pickIntent = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.EXTERNAL_CONTENT_URI); pickIntent.putExtra(Intent.EXTRA_ALLOW_MULTIPLE, true); startActivityForResult(intent, PICK_IMAGE); and in onActivityResult() I get uris of all picked images and start Jobs which run in background and upload those images ( https://github.com/yigit/android-priority-jobqueue ). But if I press back button and exit out of activity then any job that was not started, can't access picked image when it runs and throws an exception: java.lang.SecurityException: