I cannot use mysqlclient package in the hosting server because it is a shared hosting server and they would not let me have a root privilige!! so I found about the mysql-connector adapter, I guess it is developed by MySQL but I could not find anyone using it to connect to the database, does someone know how to use it?? please help
How to use mysql-connector mysql adapter with django??/
287 Views Asked by Omar Redwan At
1
There are 1 best solutions below
Related Questions in DJANGO
- Display images on Django Template Site
- Protractor did not run properly when using browser.wait, msg: "Wait timed out after XXXms"
- Django invalid literal for int() with base 10:
- Removing URL features from tokens in NLTK
- Django Noob URL to from Root Page to sub Page
- Django Admin tables not displaying correctly
- Django with chartkick
- Django urls.py not rendering correct template
- django form errors before submit
- django admin: custom app_index with context
- Display multiple models in one view in Django
- Unexpected NoReverseMatch error when using include() in urls patterns
- Search for a key in django.core.cache
- Django webapp (on an Apache2 server) hangs indefintely when importing nltk in views.py
- Django flush won't load fixtures
Related Questions in PIP
- Strange behaviour with pip install
- Can't install anything with pip2 on Windows 7 due to UnicodeDecodeError
- Unicode error from pip install
- UnicodeDecodeError in pip install flake8 on Windows 8.1
- Uninstall unused packages with pip
- Automate Python application installation
- Having trouble installing Django 1.8 in virtualenv
- how do I specify in my pip requirements.txt to install from git repository
- easy_install unmet dependencies which already exist
- Error after installing pip with easy install (on mac)
- Pointing pip to the correct Python interpreter on Windows
- Python: pip install lxml from source using pip and cython
- Zurb Foundation Tooltip: bottom tooltip, but have pip on the right
- "Access is denied" while upgrading pip.exe on Windows
- How to specify versions on PIP when installing a python package with it's dependencies
Related Questions in MYSQL-CONNECTOR
- Generic try block in a class for multiple uses around a program (VB.net)
- Fresh Ruby on Rails Install on Windows: MSQL Gem Not Working
- Not able to connect Mysql database to presto - No factory for connector mysql
- Entity Framework error with MySql Provider
- MySQL C++ Connector installation
- Hibernate, Tomcat hangs after a while
- MySQLSyntaxErrorException in SQL syntax
- Ambiguity issue with Vb.Net and MySql Connector
- Connect database using VS Express 2013, MySQL Connector 1.1, C++
- I have created a MySQL database in MySQL Workbench but am unable to use in C#
- Access denied error with MySQL Connector/NET 6.9.9
- How to fix multiple error inserting in Python?
- MySQL Connector C/C API - Query with special characters
- mysql.connector for python commit() does not work
- The entity type 'IdentityUser' is part of a hierarchy, but does not have a discriminator value configured
Related Questions in DJANGO-MYSQL
- Django - Time aggregates of DatetimeField across queryset
- How to use mysql-connector mysql adapter with django??/
- Multiple databases in same MySQL server
- Python - Django, Cannot install mysqlclient using pip
- Facing problem in installing mysqlclient in python
- JsonField in Django for MySQL
- Django Annotate ExpressionWrapper Does not Return Expected Type
- How can I get an old Django project back and running like it was before?
- Is it possible to connect local django project to MySql running on AWS EC2? How?
- my user_id profile database is null, how i insert the value in user_id?
- Django configuring different databases
- Django Query Annotation Does Not Support math.tan() Calculation
- Install mysqlclient for Django in MacOs
- Django - MySQL (1170, "BLOB/TEXT column 'my_column' used in key specification without a key length
- How to store array in mysql database using django model?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
First of all you have to run the command
pip install mysqlclientafter that change your settings.py file with this code.DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME': 'DB_NAME', 'USER': 'root', 'PASSWORD': 'root', 'HOST': 'Your host', 'PORT': 3306 } }
I think it should work for you. But would like to inform you that some of the hosting servers mostly support the Postgresql rather than the MySQL DB.