Django with mysql

24 views
Skip to first unread message

Amit Samanta

unread,
Aug 23, 2019, 10:55:47 AM8/23/19
to Django users
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







Gabo LaTo

unread,
Aug 23, 2019, 2:14:55 PM8/23/19
to django...@googlegroups.com
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,



--
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...@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.

Khalifa Gueye

unread,
Aug 23, 2019, 5:28:39 PM8/23/19
to django...@googlegroups.com
Hi, 
With python 3.6, you have To install mysqlclient 1.3.14. I try with others version of mysqlclient but no result

Ahlam Abdurahman

unread,
Aug 23, 2019, 6:55:55 PM8/23/19
to django...@googlegroups.com
I downloaded the mysql client wheel for the version that I am using ,
then worked fine. But you will need internet.

On 8/23/19, Khalifa Gueye <khalif...@gmail.com> wrote:
> Hi,
> With python 3.6, you have To install mysqlclient 1.3.14. I try with others
> version of mysqlclient but no result
>
> Le ven. 23 août 2019 à 14:55, Amit Samanta <amitsa...@gmail.com> a
> écrit :
>
>> 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
>> <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...@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
>> <https://groups.google.com/d/msgid/django-users/bb37fac6-f9a7-4c1b-b563-a7557222b6a4%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>
> --
> 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...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAEqgwix4Asazapv%2BOn8F_1GbE7n5YAAdavOnoCav6x-s2jFANA%40mail.gmail.com.
>

Amit Samanta

unread,
Aug 24, 2019, 12:34:42 AM8/24/19
to Django users
@Gobo Lato
Sir with searching mysqlclient all are for windows not in linux

@khalifa gueye
sir where can i get the version? pypi?

@Ahlam
sir i am working on my office network that is the issue.


i have tried pymysql it worked xan anyone help me with the differents between pymysql and mysqlclient
Reply all
Reply to author
Forward
0 new messages