I try to create a database file. I've checked the route and everything, I've tried several times to create the tablespace (I've changed to capital letter, the ' for "...) like this...
create tablespace uinstitucion datafile 'C:\app\uinstitucion\oradata\uinstitucion\uinstitucion.dbf' size 500M ;
file create error, unable to create file", "unable to open file", "(OS 5) access denied" (but I am logged as SYSTEM!)
... as you can see, I was just lead to several errors. What can I do? What am I doing wrong? I'm desperate since yesterday, and my teacher does not seem to notice the exact error.
I've also tried the order like
CREATE TABLESPACE lmtbsb DATAFILE 'file_path/lmtbsb01.dbf' SIZE 50M
EXTENT MANAGEMENT LOCAL AUTOALLOCATE;
but it leads me to the same error.
I'm sorry I cannot post a picture, it would be more descriptive, but I am not allowed yet.
Please run your SQLplus as an administrator and then connect and try to execute it.
You error says that you have no privileges to create file. This comes from operating system. Path looks for Windows so please try right click on SQLplus (or any other client you're using), choose run as administrator and then continue.
Related
I am trying to view the MySQL binlog files to trace down the source of a particular query. I used the SHOW BINARY LOGS query to get the names of the existing log files, but when trying to access using the mysqlbinlog command, I keep getting an error: "File 'xxxx' not found (Errocode: 2 "No such file or directory")".
I also tried accessing the file using the full path /mysql/binlog/mysql-bin/file-name and with double forward slashes and back slashes, but just got the same error. I tried a couple of different files, all gave the same error.
If anyone can explain what I am doing wrong, that would be appreciated.
Mysqlbinlog utility checks your local file system, in this case. For remote server connection, you should use the --read-from-remote-server option in your command line. You can read related detail on the "4.6.8 mysqlbinlog — Utility for Processing Binary Log Files" page.
it started out with a mysqldump not making a good file so importing to another server would bomb. The last line of the sql file has this text in it:
mysqldump: Couldn't execute 'show events': Cannot proceed because system tables used by Event Scheduler were found damaged at server start (1577)
I then searched on this site for some other options and found the option of jsut grabbing the folder that contains the database and moving it to the other server. I tried that but then i get:
SQL show index from archived_import_log failed : Table 'cgaxf_800080.archived_import_log' doesn't exist
Now i am at a loss..any ideas?
I was getting an "Illegal mix of collations" error on my database, so I figured I should go ahead and set my database and all tables to UTF-8.
I found the command on how to do that () but I got the following error:
1 - Can't create/write to file './databasename/db.opt' (Errcode: 2)
I then found this to help: MySQL Error 1 (HY000) Trouble creating file Errcode 2 but the solution didn't work. I still get the same error.
I don't know what to do other than to drop the database and restore it, but that seems like a bit of an extreme solution. I'm also struggling to figure out how I can alter all the tables in the database, again short of a dump and restore.
Does anyone have suggestions on how I can fix this bug? Is dropping the database my only option? Is there some permission I'm unaware of?
This question is quite old, but putting this answer here for future reference.
The way I was able to resolve it was by logging into the mysql instance with root user credentials.
The reason the above error occurs (1 - Can't create/write to file './databasename/db.opt' (Errcode: 2) is a result of a permissions issue. The currently logged in mysql user doesn't have write permissions for modifying that directory.
Using the 'root' user account resolved this error message.
I cannot log in to my mySQL database server anymore.
I am currently using WAMP 2.2 on Windows 8.1 64 bits.
I tried reinstalling WAMP server but the problem still persists.
I have also edited the config.inc.php file and changed the host name from 'localhost' to '127.0.0.1'; however the problem still exists.
I found the problem, eventually. It had nothing to do with any of the configuration files though.
My ESET Smart Security antivirus updated silently and blocked the mysql application. I did not even get a notification for it!
I figured it out when I tried logging in to phpMyadmin after turning off my antivirus.
I had to allow communication for mysqld.exe in the antivirus settings.
Using the Wampmanager menus take a look at the mysql error log.
left click wampmanager -> MySQL -> MySQL log
If that does not show any [error] messages then also have a look at the 'Windows Event Viewer' in the 'Application' section for messages from MySQL.
The normal problem is a rogue 'my.ini' or 'my.cnf' file on your system. Search for these 2 files in the C;\windows folder, if you find any then delete them.
DO NOT DELETE THE my.ini FILE FREOM ANYWHERE IN THE C;\WAMP folder structure.
Recently I encountered a problem with MySQL, It was showing an error “Error : 1067 the process terminated unexpectedly” when I tried to start the service in services.msc
So I googled it but didn’t found the perfect solution. I will show how can you debug the issue. First look for file my.ini which can be found in “C:\wamp\bin\mysql\mysql5.6.17″ , open that file on look for “log-error”, this will show you the path where error log is stored. In my case it is, “c:/wamp/logs/mysql.log”.
Open the log file and look for last error you got, you should be today’s date when you tried to start the wampmysqld from services. At this stage, you will get error and understand what it say. In my case it is,
enter image description here
The folders for all databases are in “C:\wamp\bin\mysql\mysql5.6.17\data”. To fix I moved kmk folder to some other place. After this, wampmysqld in services.msc is getting started without any error.
I am trying to dump a table from MySQL database into a text file by running the following query
SELECT fields FROM text_file_table INTO OUTFILE 'C:\\Program Files\\textfile.text'
But it gives me the error
Cant create/write to file "C:\Program Files\textfile.text"
I think it is due to security issue, that it is not allowing the DBMS to write the file on that directory. If there can be any other issue, please let me know, and also help me finding solution to the problem. And I am doing this on Windows Server 2008. Thanks!
There could be two issues. The command runs in the operating system as 'mysql' so the 'mysql' user may not have permission to write in c:\Program Files. It shouldn't, so that's good. If you change your target path to somewhere that you can write to, this problem will go away.
The other issue is that the user you are logged in as inside mysql may not have the privilege to read and write files - see http://dev.mysql.com/doc/refman/5.1/en/privileges-provided.html#priv_file. If this is the problem, you'll have to GRANT the privilege to your user.
I think problem is with the path . if you are using windows
the filepath sould be like this in the query
'C:/Program Files/textfile.txt'
OR try this , i am not sure
'C:\Program Files\textfile.txt'
also use txt inside of text in the file name => textfile.text