Important info first: I am on OS X 10.7.5 and trying to work with the newest version of MySQL.
I try to start the MySQL server and I've been getting the error code
ERROR! The server quit without updating PID file (/usr/local/mysql/data/<insert my
username here>.local.pid).
I found a website that says that this just says, in essence "Hey, there's an error here and it's in the error file."
Trouble is, I can't seem to actually read the !*%?!# error file. I used sudo chmod u+x to alter the file to give me the permission to open it (I couldn't before), but it's a .exe now and there isn't actually a program to open it to read it, even though the "kind", as the finder calls it, is actually a document.
I have tried easily 20+ tricks to try and grant the permissions correctly, and still I can't seem to figure out what's wrong. I'm assuming the actual answer is in the error log. How do I open it? And then what do I do when I've actually opened the log?
Related
I'm using tt-RSS as an rss reader running on a raspberry pi. Lately it's been running really slowly so I checked the logs to see the below error appear when starting mysql
Can't open and lock privilege tables: Incorrect file format 'servers'
So I googled it and found a post saying to use the skip-grant-tables option and repair the database(s) Post. I got as far as running the first command in the answer and now mysql doesn't work. It appears to be running but whenever I run mysql I get the following message mysql: unknown option '--skip-grant-tables' before being sent back to the prompt.
I cant seem to find any reference to this error anywhere and I cant seem to disable the skip grant tables option to go back.
I've rebooted the machine, restarted mysql and mysqld services and looked in the my.cnf file, where it does say [client server]
skip-grant-tables
If I remove that option and restarted the computer/services then mysql fails to start completely. Otherwise I'm stuck at the above error.
Any help in fixing the error and getting mysql working again would be much appreciated.
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.
Let me start of by saying what I have done:
I changed the directory to talk to C: bin\mysql\mysql5.1.53\bin while also moving the Northwind bak file to said location.
At first I tried using mysql.exe -u root -p databasename < databasename.bk
however I kept getting an error saying the file could not be found.
After a bit of research I found a similar script that did not give me the "file could not be found" error, however it did tell me "Access Denied". I apologize I can't seem to find, or remember the exact script I used.
After further research, I did a number of different things such as FLUSH HOST/FLUSH PRIVILEGES but to no avail the "Access Denied" error continues to pop up.
One other thing that I did (trying to import the Northwind bak file directly to phpmyadmin) was change the values in the php.ini folder for maxium_file_size etc etc because of an error I received in phpmyadmin saying the file was too large.
I may have accidentally missed a step or set of instructions, but I am very new to MySQL and WAMP in general. Thanks.
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 have a web application that runs queries on the database. The application is trying to run a query, and send the results to the an output file. I have confirmed that the issue is actually a permission denied (error 13) problem, not an issue with any other part of the query. A simplified form of the query follows:
SELECT 'anything'
INTO OUTFILE '/var/www/html/sl/filestore/dbadpt_database.tmp'
FROM INFORMATION_SCHEMA.TABLES;
This query runs fine when I remove the INTO OUTFILE line. I have tried every permissions setting for this dir that I can think of. I have even changed the permission to 777, and gotten the same results. (Yes, I know 777 is not secure. Just did it for testing) I have tried every ownership combination of 'root', 'apache', and 'mysql' that I could think to try for this dir. I have pasted the above query into the MySQL command-line tool, and it has produced the same results.
We are running CentOS 5.5. The web server running the application is Apache 2. I cannot create the file ahead of time, nor can I change the directory that the program is trying to write to.
I would hazard a guess that problem is with SELinux.
The first thing I would try would be setenforce 0 and see if that fixed it. It will only fix the symptoms (you still need to reconfigure SELinux to allow what you need), but it will at least confirm whether that's the problem or not.