I have seen Brian suggested to check the database name and table name. Mine are database: weather, table: wx_data. So they are not similar so shouldn’t be an issue. Also the schema for the wx_data table i found on the forums. Not sure it is correct but couldn’t find anything about that in readme as config file says.
The Mysql version i was trying this was 5.5, so i thought maybe trying older version of mysql with consolewd. Well, plan didnt work so well, getting this error:
root@raspberrypi:/home/pi# apt-get install mysql-server-5.1
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
mysql-server-5.1 : Depends: mysql-client-5.1 (>= 5.1.62-1) but it is not going to be installed
Depends: libmysqlclient16 (>= 5.1.50-1) but it is not going to be installed
PreDepends: mysql-common (>= 5.1.62-1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
I have same problem. It used to work but abruptly stopped. At that time, it was said it was probably my fault by adding a year column, reading this makes me think this is not the case.
I have re-installed my raspberry and consolewd for pi. I get the same issue :(. If I rename config.txt to config.old, I get the same error message. If I put right or wrong database information in config.txt file, I get the same issue too. I think config.txt is not correctly read by cronmysql.
Brian, could you confirm we can run cronmysql directly or is it a “sub-program” of consolewd ? Is there any debug option we can put to get more details on this problem ? How can we be sure config.txt is correctly read ? What is the difference between cronmysql and cronmysql2 ? Have you any idea how to solve this issue ?
@stuartturrell: You are lucky. It worked. For me it has never worked. My SQL server is remote and the version is 5.1 (I can’t upgrade the server version - Synology server). Did you solve the issue ? What is your configuration (mysql version/db name/user) ? Is your database remote as well ? If you create a new database without year column, does it work ? Did you change the user/password/table name/etc… ? Did you upgrade the raspberry OS ? Did you install mysql-client on the raspberry ?
@soend: Did you find a solution to install mysql-client-5.1 on raspberry ? Is the issue solved for you ?
@Brian: Any idea ? Is cronmysql working on remote mysql 5.1 ?
I have installed mysql 5.5 server on another system and mysql client 5.5 on raspberry but I still get the same issue
Is anybody confirm that the latest version of cronmysql (Build Version on 29 October 2013) works ?
Brian, please please please, could you anwser to my previous questions and assist me to determine the cause of this issue ?
Could you give me more information how cronmysql connects to a remote db ? Does it use 3306 default mysql server port ? Do I need to configure anything on the mysql client ? Do I need mysql-client on pi ? Also I have edited /etc/mysql/my.cnf and put the same information as config.txt but without any success. Is cronmysql use any other config file ?
I have had alot of trouble with my raspberr pi…wont start up…etc
so I have purchased a new SD card (16GB)
to replace the old 4GB one I had
so just re setting up everthing again…
have run into a snag
I have mysql installed
I set up a password too
I can start it OK via
mysql
it does not ask for password though…and I end up with the mysql> prompt
when I use
CREATE DATABASE [name];
i get an access denied for user ‘’@localhost’ to database ‘[name]’