J
J
Jekson2019-10-21 15:14:04
MySQL
Jekson, 2019-10-21 15:14:04

Django + MySQL access database/create new one?

I connect the MySQl database to the project. Installed all the dependencies, now I want to create a new database and user in accordance with the values ​​specified in settins.py.
I try to connect with
mysql -u root -p
and without a password
mysql -u root
But in both cases
Access denied for user 'root'@'localhost'
I look in the manuals everywhere the same - enter the root access password. Tell me how to do it right?
p/s/ Tried ubuntu root password - no match.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
J
Jekson, 2019-10-21
@Lepilov

default password for mysql is ""

L
latush, 2019-10-21
@latush

mysql_secure_installation

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question