Saturday, 15 August 2015

python - Connect MySQL Workbench with Django in Eclipse in a mac -


itemprop = "text">

I am a new question on this so that I am trying to create a demo website using Django for which I the wanted. Download and install MySQL workspace for the same. But I do not know how to setup it, thank you in advance :) I tried googling stuff, but did not get any correct solution for the same. Please help

I from the problem with adding'm a Mac user I fortunately mysql workbench to Django is. I think that you have already installed, MySite has created your project directory

  1. After initially setting up MySQL workbench, I have created a database: Create Database Dosas;
  2. Go to mysite / settings.py and edit the following section of the block. Note: When using the MySQL server, keep the name of the engine "django.db.backends.mysql". And stop the other Django MySQL service which may happen.

data = { 'default': { 'ENGINE': 'django.db.backends.mysql', # Add 'Postgresql_psycopg2' Maiscl 'Sclait 3' or 'Oracle '' NAME ': Dijo', # or database file path that sqlite3 are not using # using the following settings with sqlite3 is: 'USER', 'root' password '' ** ** ', replace with *** set with your set password. 'HOST': '127.0.0.1', # Local sockets for localhost or '127.0.0.1' to empty the localhost through TCP. 'Port': '3306', set to empty string for # default. }}

  1. Now run manage.py to sync your database: Making $ python mysite / manage.py syncdb bash-3.2 $ python manage.py syncdb table. .. build table to table auth_permission auth_group_permitions tabulate auth_group tabulate auth_user_groups tabulate auth_user_user_permissions tabulate make auth_user table to table django_content_type make django_session table django_site

After you have installed only auth system Django , Which means that you did not define any superusers Have you ever wanted to make one? (Yes / No): Yes username (Please use "Mbershe 'Leave blank to): root email address: Ambershe@netappkcom / user / Mberseyr / Library / Containers / com. Betammy DJ ango / Data / App / Python / Lib / Python2.7 / getpass.py: 83: GetPass Warning: Resonance can not be controlled at the terminal. Passwd = fallback_getpass (prompt, stream)

WARNING: Password input can be resized password: ****

WARNING: Password input can be resized password ( Again): ****

Super user successfully installed custom SQL ... Installing the index ... 0 objects with 0 fixtures (s) installed


No comments:

Post a Comment