Friday, August 23, 2019

Re: Django with mysql

Hi!

If you don't have internet you will have to download the package from another computer where you have internet from the original repository  (https://pypi.org/project/mysqlclient/#files) and move them with a USB or whatever you want to the offline computer.

And manually install the package. Some sources have a README file or any kind of instructions and others have a regular installation process. Normally you just go into the sources folder and type python setup.py install but you can follow those steps here: https://docs.python.org/2/install/ and read a bit more about it.

cheers,



El vie., 23 ago. 2019 a las 11:56, Amit Samanta (<amitsamanta46@gmail.com>) escribió:
Hi,

I am facing issue while downloading mysql client
Here i am using linux server and i do not have internet connection
Also downloaded all the packages from https://www.pypi.org
We have created user,password and database for django in a different mysql server 5.6

Things i have done:
First of all i do not have internet connection in linux server where i have installed django


i am using python 3.6.8
django 1.11
 dependencies -> pytz
                        ->sqlparse

then i started the server and it started.
installed python3-devel and mysql-devel from rhel repo

Then installed through pip3 install mysql-connector-python.whl
dependencies -> protobuf >=3.0.0
                       ->six >=1.9

from setting.py
I configured the databases

tried to runserver
ERROR:mysqldb console

Now found no mysql client
thought install mysql client 5.6 from os level but no luck

got mysql client 1.4.4 in pypi but all in windows os

googled and search many site but everywhere it is "pip install mysql client" but no internet.

Please help! As now the goal is change django from sqllite3 to mysql.


Thanks and Regards
Amit Samanta







--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/bb37fac6-f9a7-4c1b-b563-a7557222b6a4%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAF6hzDOw282GC67M3S2U20CKXmNCdJn6703AVUrHDgm5eyV98A%40mail.gmail.com.

No comments:

Post a Comment