About 5,140,000 results
Open links in new tab
  1. Difference between User.objects.create_user () vs User.objects.create ...

    Jul 23, 2020 · User.objects.create_user() is a helper function that provides helpful utilities to create a user that otherwise you would have to do yourself. As per the documentation: Creates, saves and …

  2. User manager methods create () and create_user () - Stack Overflow

    Apr 18, 2016 · In case when you use create_user method and don't specify password it creates User with unusable password (through to set_unusable_password()). I am not sure why create() method …

  3. Create new user in MySQL and give it full access to one database

    Oct 21, 2023 · I want to create a new user in MySQL and give it full access only to one database, say dbTest that I create with a command like create database dbTest;. What would be the MySQL …

  4. ERROR 1396 (HY000): Operation CREATE USER failed

    Jan 10, 2015 · ERROR 1396 (HY000): Operation CREATE USER failed for 'aquaman'@'localhost' anyone please help me how to resolve it

  5. ERROR 1396 (HY000): Operation CREATE USER failed for …

    Apr 5, 2011 · I seem to be unable to re-create a simple user I've deleted, even as root in MySQL. My case: user 'jack' existed before, but I deleted it from mysql.user in order to recreate it. I see no …

  6. python - How to create a user in Django? - Stack Overflow

    May 14, 2016 · 273 The correct way to create a user in Django is to use the create_user function. This will handle the hashing of the password, etc..

  7. postgresql - How to create a user for Postgres from the command line ...

    For future reference. When running the command, postgres needs a user from which to execute the query. To set a user different than the logged user (in this case khophi), you should use the -U flag. …

  8. Create PostgreSQL ROLE (user) if it doesn't exist

    Nov 11, 2011 · IF NOT EXISTS (SELECT * FROM pg_user WHERE username = 'my_user') BEGIN CREATE ROLE my_user LOGIN PASSWORD 'my_password'; END; ... but that doesn't work - IF …

  9. sql - Create a Superuser in postgres - Stack Overflow

    Sep 17, 2019 · Do it in a single statement within psql: CREATE ROLE username WITH LOGIN SUPERUSER PASSWORD 'password'; e.g CREATE ROLE dummy WITH LOGIN SUPERUSER …

  10. MySQL 8 create new user with password not working

    May 18, 2018 · CREATE USER 'newuser1'@'localhost' IDENTIFIED WITH mysql_native_password BY 'Password@123'; GRANT ALL ON *.* TO 'newuser1'@'localhost'; This is two lines code to create a …