Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Mysql #374

Closed
scopus-ru opened this issue Aug 29, 2016 · 6 comments
Closed

Mysql #374

scopus-ru opened this issue Aug 29, 2016 · 6 comments

Comments

@scopus-ru
Copy link

Tell me how to connect your database mysql
I specify paratmetry
--db-type mysql --db-name pogo --db-user pogo --db-pass pogo18407506 --db-host 127.0.0.1 --db-port 3306
error: unrecognized arguments: --db-type mysql --db-name pogo --db-user pogo --db-pass pogo18407506 --db-host 127.0.0.1 --db-port 3306

@smartcuc
Copy link

As per documentation:
mysql://user_id:passwd@ip:port/db_name
Have fun!

@scopus-ru
Copy link
Author

if not difficult to tell where to insert it exactly?

@Jordan-TE
Copy link

Optional: You can tell PoGoMap to use MySQL or PostgreSQL. You will need to install a python interface for the database system of your choice (i.e. pip install mysqlclient for MySQL or pip install psycopg2 for PostgreSQL). You will also need to specify the --db flag when starting runserver.py and pass it a valid database url string as specified in the Peewee docs.

@smartcuc
Copy link

python ./runserver.py -H 0.0.0.0 -P 5000 --db mysql://user_id:passwd@ip_addr:3306/db_name

@scopus-ru
Copy link
Author

many thanks. Tell me you're planning to add support for pokestop?

@luzannew
Copy link
Contributor

You can use this pull request to add pokestops to your map: #362

@favll favll closed this as completed Sep 6, 2016
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants