Closed Mila432 closed 8 years ago
there is already #47 which will fix this one.
Or you can use something different than SQLite. I think it's not safe for multithreaded access, is it?
I'm using MySQL personally and it's working like a charm.
@modrzew can you add that to the guide? you clearly suggest using SQLite in the Readme
Can we also get quick directions on how to switch?
Is all we have to do swap it out and it's instantly thread safe?
I am also having these errors, and I am pretty clueless when it comes to switching over to mysql. Can anyone make a guide an update? Please :)
So I'm a complete novice at python, only just started fiddling with it because of pokemongo, but I got mysql working. This is what I did. I am running my miner on Ubuntu 16.04 so it may not work for your operating system
apt-get install libmysqlclient-dev
to install mysql_config which is required. I got an error without having this installed and this fixed it for mepip install mysql-python
. This will install the python mysql connectormysql -u root
. You will then get a prompt for a password. Enter the password you choose when setting up MySQL. The password won't show when typing so just enter it then press entercreate database pokemon;
. This will create the database we are going to store all our sightings inexit
cd /path/to/directory
DB_ENGINE = 'mysql+mysqldb://root:PASSWORD@localhost/pokemon'
and then savepython -i
import db
and db.Base.metadata.create_all(db.get_engine())
. This will create the required database table we need.alter table sightings modify column lat varchar(128);
and alter table sightings modify column lon varchar(128);
Hopefully this works for you guys. These steps worked for me.
Awesome, thanks. Now to merge all of the sqlite db records over...
Yeah same. I'm a php developer so I'll probably just write a script in PHP to pull it all from sqlite and into mysql
On 29 Jul 2016 01:12, "fu20161234" notifications@github.com wrote:
Awesome, thanks. Now to merge all of the sqlite db records over...
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/modrzew/pokeminer/issues/52#issuecomment-235925588, or mute the thread https://github.com/notifications/unsubscribe-auth/AHQfrRLr8GLHlvu7s_VmLjsGmKik-Xg8ks5qaMb3gaJpZM4JWeyN .
Feel free to share that if you want. Otherwise I'll be doing a bash equivalent.
Does /report work normally for you after switching to mysql?
Yeah, seems to. You'll need to wait an hour for it to gather data.
On 29 Jul 2016 10:53, "suppoo" notifications@github.com wrote:
Does /report work normally for you after switching to mysql?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/modrzew/pokeminer/issues/52#issuecomment-236067210, or mute the thread https://github.com/notifications/unsubscribe-auth/AHQfrdVoyNam5ohaFF1hCkSvxDdMz6huks5qaU8YgaJpZM4JWeyN .
fixed with lots of try's
i am a complete newbie to this so can anyone plz help me on how i can shift to MySQL on 32bit win7!! i am new to all these things and just doing it cause of pokemon go..so plz help!!
Running more then 500 workers and using a changed version of this without problems, now upgraded to the latest commit and have this: